Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/bhnd/cores/chipc/chipc_slicer.h
| Show All 28 Lines | |||||
| * $FreeBSD$ | * $FreeBSD$ | ||||
| */ | */ | ||||
| #ifndef _BHND_CORES_CHIPC_CHIPC_SLICER_H_ | #ifndef _BHND_CORES_CHIPC_CHIPC_SLICER_H_ | ||||
| #define _BHND_CORES_CHIPC_CHIPC_SLICER_H_ | #define _BHND_CORES_CHIPC_CHIPC_SLICER_H_ | ||||
| #include <sys/slicer.h> | #include <sys/slicer.h> | ||||
| #include "chipcvar.h" | |||||
| #define TRX_MAGIC 0x30524448 | #define TRX_MAGIC 0x30524448 | ||||
| #define CFE_MAGIC 0x43464531 | #define CFE_MAGIC 0x43464531 | ||||
| #define NVRAM_MAGIC 0x48534C46 | #define NVRAM_MAGIC 0x48534C46 | ||||
| void chipc_register_slicer(chipc_flash flash_type); | |||||
| int chipc_slicer_spi(device_t dev, struct flash_slice *slices, | int chipc_slicer_spi(device_t dev, struct flash_slice *slices, | ||||
| int *nslices); | int *nslices); | ||||
| int chipc_slicer_cfi(device_t dev, struct flash_slice *slices, | int chipc_slicer_cfi(device_t dev, struct flash_slice *slices, | ||||
| int *nslices); | int *nslices); | ||||
| #endif /* _BHND_CORES_CHIPC_CHIPC_SLICER_H_ */ | #endif /* _BHND_CORES_CHIPC_CHIPC_SLICER_H_ */ | ||||