summaryrefslogtreecommitdiff
path: root/src/arch/arm64
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch/arm64')
-rw-r--r--src/arch/arm64/include/arch/pci_ops.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/arch/arm64/include/arch/pci_ops.h b/src/arch/arm64/include/arch/pci_ops.h
index 7c3d4cb105..e6d5206955 100644
--- a/src/arch/arm64/include/arch/pci_ops.h
+++ b/src/arch/arm64/include/arch/pci_ops.h
@@ -16,10 +16,20 @@
#ifndef ARCH_ARM64_PCI_OPS_H
#define ARCH_ARM64_PCI_OPS_H
-/* V8 has PCI in some form. We will need to fill this in. */
-static inline const struct pci_bus_operations *pci_config_default(void)
-{
- return NULL;
-}
+#include <stdint.h>
+
+typedef u32 pci_devfn_t;
+
+#ifdef __SIMPLE_DEVICE__
+// FIXME: Use of device_t is deprecated
+typedef pci_devfn_t device_t;
+
+u8 pci_read_config8(pci_devfn_t dev, unsigned int where);
+u16 pci_read_config16(pci_devfn_t dev, unsigned int where);
+u32 pci_read_config32(pci_devfn_t dev, unsigned int where);
+void pci_write_config8(pci_devfn_t dev, unsigned int where, u8 val);
+void pci_write_config16(pci_devfn_t dev, unsigned int where, u16 val);
+void pci_write_config32(pci_devfn_t dev, unsigned int where, u32 val);
+#endif
#endif