X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=blobdiff_plain;f=src%2Fflash%2Fcfi.h;h=d55fd34ef5f2335a0f18615d6979c19954ec1603;hp=eab2dcdcb9a469aef0806d4925e80dfbfbf9d5a9;hb=96b62996d2d81b09a48bf253bc9e60e637f687bd;hpb=1840226d555b9863a2315bcc6218671fdfa2af32 diff --git a/src/flash/cfi.h b/src/flash/cfi.h index eab2dcdcb9..d55fd34ef5 100644 --- a/src/flash/cfi.h +++ b/src/flash/cfi.h @@ -25,9 +25,9 @@ #define CFI_STATUS_POLL_MASK_DQ5_DQ6_DQ7 0xE0 /* DQ5..DQ7 */ #define CFI_STATUS_POLL_MASK_DQ6_DQ7 0xC0 /* DQ6..DQ7 */ -typedef struct cfi_flash_bank_s +struct cfi_flash_bank { - working_area_t *write_algorithm; + struct working_area *write_algorithm; int x16_as_x8; int jedec_probe; @@ -70,13 +70,13 @@ typedef struct cfi_flash_bank_s void *pri_ext; void *alt_ext; -} cfi_flash_bank_t; +}; /* Intel primary extended query table * as defined for the Advanced+ Boot Block Flash Memory (C3) * and used by the linux kernel cfi driver (as of 2.6.14) */ -typedef struct cfi_intel_pri_ext_s +struct cfi_intel_pri_ext { char pri[3]; uint8_t major_version; @@ -91,12 +91,12 @@ typedef struct cfi_intel_pri_ext_s uint8_t fact_prot_reg_size; uint8_t user_prot_reg_size; uint8_t extra[0]; -} cfi_intel_pri_ext_t; +}; /* Spansion primary extended query table as defined for and used by * the linux kernel cfi driver (as of 2.6.15) */ -typedef struct cfi_spansion_pri_ext_s +struct cfi_spansion_pri_ext { uint8_t pri[3]; uint8_t major_version; @@ -115,12 +115,12 @@ typedef struct cfi_spansion_pri_ext_s int _reversed_geometry; uint32_t _unlock1; uint32_t _unlock2; -} cfi_spansion_pri_ext_t; +}; /* Atmel primary extended query table as defined for and used by * the linux kernel cfi driver (as of 2.6.20+) */ -typedef struct cfi_atmel_pri_ext_s +struct cfi_atmel_pri_ext { uint8_t pri[3]; uint8_t major_version; @@ -129,26 +129,26 @@ typedef struct cfi_atmel_pri_ext_s uint8_t bottom_boot; uint8_t burst_mode; uint8_t page_mode; -} cfi_atmel_pri_ext_t; +}; enum { CFI_UNLOCK_555_2AA, CFI_UNLOCK_5555_2AAA, }; -typedef struct cfi_unlock_addresses_s +struct cfi_unlock_addresses { uint32_t unlock1; uint32_t unlock2; -} cfi_unlock_addresses_t; +}; -typedef struct cfi_fixup_s +struct cfi_fixup { uint16_t mfr; uint16_t id; - void (*fixup)(flash_bank_t *flash, void *param); + void (*fixup)(struct flash_bank *flash, void *param); void *param; -} cfi_fixup_t; +}; #define CFI_MFR_AMD 0x0001 #define CFI_MFR_FUJITSU 0x0004