summaryrefslogtreecommitdiffstats
path: root/flash.h
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2010-02-21 21:17:00 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2010-02-21 21:17:00 +0000
commitddd5c9e147e99430ed031cbf20380d745850c046 (patch)
tree523c9d402056eebfa075643e8cce2ca2853ca32c /flash.h
parent6e0b912f469a5595c138b3f7ddad77d691330e2f (diff)
downloadast2050-flashrom-ddd5c9e147e99430ed031cbf20380d745850c046.zip
ast2050-flashrom-ddd5c9e147e99430ed031cbf20380d745850c046.tar.gz
Add initial (non-working) code for Highpoint ATA/RAID controllers
It's disabled by default. The current status is detailed at: http://www.flashrom.org/pipermail/flashrom/2010-January/001828.html Corresponding to flashrom svn r908. Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Diffstat (limited to 'flash.h')
-rw-r--r--flash.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/flash.h b/flash.h
index 1378b61..c73dbb5 100644
--- a/flash.h
+++ b/flash.h
@@ -55,6 +55,9 @@ enum programmer {
#if SATASII_SUPPORT == 1
PROGRAMMER_SATASII,
#endif
+#if ATAHPT_SUPPORT == 1
+ PROGRAMMER_ATAHPT,
+#endif
#if INTERNAL_SUPPORT == 1
PROGRAMMER_IT87SPI,
#endif
@@ -328,7 +331,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 (NIC3COM_SUPPORT == 1) || (GFXNVIDIA_SUPPORT == 1) || (DRKAISER_SUPPORT == 1) || (SATASII_SUPPORT == 1)
+#if (NIC3COM_SUPPORT == 1) || (GFXNVIDIA_SUPPORT == 1) || (DRKAISER_SUPPORT == 1) || (SATASII_SUPPORT == 1) || (ATAHPT_SUPPORT == 1)
void print_supported_pcidevs(struct pcidev_status *devs);
#endif
void print_supported_wiki(void);
@@ -466,6 +469,15 @@ uint8_t satasii_chip_readb(const chipaddr addr);
extern struct pcidev_status satas_sii[];
#endif
+/* atahpt.c */
+#if ATAHPT_SUPPORT == 1
+int atahpt_init(void);
+int atahpt_shutdown(void);
+void atahpt_chip_writeb(uint8_t val, chipaddr addr);
+uint8_t atahpt_chip_readb(const chipaddr addr);
+extern struct pcidev_status ata_hpt[];
+#endif
+
/* ft2232_spi.c */
#define FTDI_FT2232H 0x6010
#define FTDI_FT4232H 0x6011
OpenPOWER on IntegriCloud