]> rtime.felk.cvut.cz Git - jailhouse.git/commitdiff
pci: add a bunch of defines to pci.h
authorHenning Schild <henning.schild@siemens.com>
Mon, 24 Nov 2014 17:54:12 +0000 (18:54 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Wed, 26 Nov 2014 18:20:55 +0000 (19:20 +0100)
Add a few general defines to pci.h. They will be used in a later commit
by the ivshmem virtual PCI device but are not specific to it.

Signed-off-by: Henning Schild <henning.schild@siemens.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/include/jailhouse/pci.h

index d28b96ec88b54d8d4b7e5cdb9d862d0b57215a41..0fa9e5f02e1b221048ca00c2f67e438c8947077c 100644 (file)
 #include <asm/cell.h>
 
 #define PCI_CFG_COMMAND                0x04
+# define PCI_CMD_MEM           (1 << 1)
 # define PCI_CMD_MASTER                (1 << 2)
 # define PCI_CMD_INTX_OFF      (1 << 10)
+#define PCI_CFG_STATUS         0x06
+# define PCI_STS_CAPS          (1 << 4)
+#define PCI_CFG_BAR            0x10
+# define PCI_BAR_64BIT         0x4
+#define PCI_CFG_INT            0x3c
 
 #define PCI_CONFIG_HEADER_SIZE 0x40
 
+#define PCI_DEV_CLASS_MEM      0x05
+
 #define PCI_CAP_MSI            0x05
 #define PCI_CAP_MSIX           0x11