path: root/flash.h
diff options
authorUwe Hermann <>2009-05-16 21:39:19 +0000
committerUwe Hermann <>2009-05-16 21:39:19 +0000
commit8403ccb49f98d1583736984c92d62735d9d466b5 (patch)
tree464c74c283c1800bb426667b9e2f1277bd743fc5 /flash.h
parent5820f42ef209cfa0d4070fa9be96c9c91123a93f (diff)
Add proper workaround for 3COM 3C90xB cards, which need special fixups (the 3C90xC ones don't)
This is tested on hardware. Also, add initial support for the Atmel AT29C010A chip (which I inserted in a 3COM 3C90xB card for testing). It can be detected, read works, erase works, but write will need some additional code (will post in another patch later). Corresponding to flashrom svn r520. Signed-off-by: Uwe Hermann <> Acked-by: Carl-Daniel Hailfinger <>
Diffstat (limited to 'flash.h')
1 files changed, 3 insertions, 0 deletions
diff --git a/flash.h b/flash.h
index b980cba..2a9b9bb 100644
--- a/flash.h
+++ b/flash.h
@@ -193,6 +193,7 @@ struct flashchip {
#define TEST_OK_ERASE (1<<2)
#define TEST_OK_WRITE (1<<3)
#define TEST_OK_MASK 0x0f
@@ -258,6 +259,7 @@ extern struct flashchip flashchips[];
#define AT_26DF321 0x4700 /* also 25DF321 */
#define AT_26F004 0x0400
#define AT_29C040A 0xA4
+#define AT_29C010A 0xD5
#define AT_29C020 0xDA
#define AT_45BR3214B /* No ID available */
#define AT_45CS1282 0x2920
@@ -559,6 +561,7 @@ struct pci_dev *pci_card_find(uint16_t vendor, uint16_t device,
extern uint32_t io_base_addr;
extern struct pci_access *pacc;
extern struct pci_filter filter;
+extern struct pci_dev *pcidev_dev;
struct pcidev_status {
uint16_t vendor_id;
uint16_t device_id;
OpenPOWER on IntegriCloud