From 7c6c412420546ca4ada42f9a65fd5f006a20b764 Mon Sep 17 00:00:00 2001 From: Marcel Telka Date: Mon, 28 Oct 2002 11:35:30 +0000 Subject: [PATCH] Added cfi_query_identification_string_t structure. git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@231 b68d4a1b-bc3d-0410-92ed-d4ac073336b7 --- include/device/flash/cfi.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/device/flash/cfi.h b/include/device/flash/cfi.h index 7ae75507..5e74d0b7 100644 --- a/include/device/flash/cfi.h +++ b/include/device/flash/cfi.h @@ -55,6 +55,15 @@ #define ALT_VENDOR_ID_OFFSET 0x17 #define ALT_VENDOR_TABLE_ADR_OFFSET 0x19 +#if LANGUAGE == C +typedef struct cfi_query_identification_string_t { + uint16_t pri_id_code; + void *pri_vendor_tbl; + uint16_t alt_id_code; + void *alt_vendor_tbl; +} cfi_query_identification_string_t; +#endif /* LANGUAGE == C */ + /* Algorithm command set & control interface ID codes - see Table 1 in [2] */ #define CFI_VENDOR_NULL 0x0000 @@ -135,10 +144,9 @@ struct cfi_erase_block_region_t { #if LANGUAGE == C typedef struct cfi_query_structure_t { + cfi_query_identification_string_t identification_string; cfi_query_system_interface_information_t system_interface_info; cfi_device_geometry_t device_geometry; - void *pri_vendor_tbl; - void *alt_vendor_tbl; } cfi_query_structure_t; #endif /* LANGUAGE == C */