summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorAndrew Morgan <ziltro@ziltro.com>2010-06-07 22:37:54 +0000
committerCarl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>2010-06-07 22:37:54 +0000
commit945f8dd3170709d8349d7a77ca644d297c371ee8 (patch)
treeee5af18227b2ae38200d239b83606aca87c437be /flash.h
parentefa94cfe6399bf2b8f6fca1e8cffe8625c9a6da4 (diff)
downloadflashrom-945f8dd3170709d8349d7a77ca644d297c371ee8.zip
flashrom-945f8dd3170709d8349d7a77ca644d297c371ee8.tar.gz
National Semiconductor DP83815/DP83816 and DP83820 NIC programmer support
Some instability remains, but that may be due to hardware problems in the specific card (Netgear FA311) used for testing. Corresponding to flashrom svn r1039. Signed-off-by: Andrew Morgan <ziltro@ziltro.com> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/flash.h b/flash.h
index 9d92db2..13f7981 100644
--- a/flash.h
+++ b/flash.h
@@ -49,6 +49,9 @@ enum programmer {
PROGRAMMER_NICREALTEK,
PROGRAMMER_NICREALTEK2,
#endif
+#if CONFIG_NICNATSEMI == 1
+ PROGRAMMER_NICNATSEMI,
+#endif
#if CONFIG_GFXNVIDIA == 1
PROGRAMMER_GFXNVIDIA,
#endif
@@ -339,7 +342,7 @@ uint32_t pcidev_init(uint16_t vendor_id, uint32_t bar, struct pcidev_status *dev
/* print.c */
char *flashbuses_to_text(enum chipbustype bustype);
void print_supported(void);
-#if CONFIG_NIC3COM+CONFIG_NICREALTEK+CONFIG_GFXNVIDIA+CONFIG_DRKAISER+CONFIG_SATASII+CONFIG_ATAHPT >= 1
+#if CONFIG_NIC3COM+CONFIG_NICREALTEK+CONFIG_NICNATSEMI+CONFIG_GFXNVIDIA+CONFIG_DRKAISER+CONFIG_SATASII+CONFIG_ATAHPT >= 1
void print_supported_pcidevs(struct pcidev_status *devs);
#endif
void print_supported_wiki(void);
@@ -491,6 +494,14 @@ extern struct pcidev_status nics_realtek[];
extern struct pcidev_status nics_realteksmc1211[];
#endif
+/* nicnatsemi.c */
+#if CONFIG_NICNATSEMI == 1
+int nicnatsemi_init(void);
+int nicnatsemi_shutdown(void);
+void nicnatsemi_chip_writeb(uint8_t val, chipaddr addr);
+uint8_t nicnatsemi_chip_readb(const chipaddr addr);
+extern struct pcidev_status nics_natsemi[];
+#endif
/* satasii.c */
#if CONFIG_SATASII == 1
OpenPOWER on IntegriCloud