aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2018-05-26 20:09:22 +0100
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>2018-05-26 20:09:22 +0100
commite713e732c4c0a23677aaf47d476f857e316b4fdd (patch)
treeaf8ae557a2e2912063d730b86e90c7b152397564 /include
parente004edf2e6164610bf2e38c68b91c1c09640cdc4 (diff)
downloadopenbios-e713e732c4c0a23677aaf47d476f857e316b4fdd.zip
openbios-e713e732c4c0a23677aaf47d476f857e316b4fdd.tar.gz
openbios-e713e732c4c0a23677aaf47d476f857e316b4fdd.tar.bz2
pci: add driver for LSI 53C810 SCSI controller
This is to enable booting PReP machines in OpenBIOS. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Diffstat (limited to 'include')
-rw-r--r--include/drivers/drivers.h4
-rw-r--r--include/drivers/pci.h3
2 files changed, 7 insertions, 0 deletions
diff --git a/include/drivers/drivers.h b/include/drivers/drivers.h
index 64824e4..38efcc8 100644
--- a/include/drivers/drivers.h
+++ b/include/drivers/drivers.h
@@ -60,6 +60,10 @@ int macio_ide_init(const char *path, uint32_t addr, int nb_channels);
int ob_esp_init(unsigned int slot, uint64_t base, unsigned long espoffset,
unsigned long dmaoffset);
#endif
+#ifdef CONFIG_DRIVER_LSI_53C810
+/* drivers/lsi.c */
+int ob_lsi_init(const char *path, uint64_t mmio, uint64_t ram);
+#endif
#ifdef CONFIG_DRIVER_OBIO
/* drivers/obio.c */
int ob_obio_init(uint64_t slavio_base, unsigned long fd_offset,
diff --git a/include/drivers/pci.h b/include/drivers/pci.h
index b70eb3a..fc7573a 100644
--- a/include/drivers/pci.h
+++ b/include/drivers/pci.h
@@ -182,6 +182,9 @@ extern const pci_arch_t *arch;
/* Vendors and devices. */
+#define PCI_VENDOR_ID_LSI_LOGIC 0x1000
+#define PCI_DEVICE_ID_LSI_53C810 0x0001
+
#define PCI_VENDOR_ID_ATI 0x1002
#define PCI_DEVICE_ID_ATI_RAGE128_PF 0x5046