aboutsummaryrefslogtreecommitdiff
path: root/hw/pci_regs.h
diff options
context:
space:
mode:
authorDaniel Verkamp <daniel@drv.nu>2011-08-27 02:12:28 -0700
committerKevin Wolf <kwolf@redhat.com>2011-09-21 14:32:20 +0200
commit465f1ab16169f5d71e52f11d4c650a50fd681030 (patch)
tree02fee21253c82795551111e8d63f46fd7b2ba8f1 /hw/pci_regs.h
parent8e72506e20d9e606783de1cdb8d60dd9b9241e30 (diff)
ahci: add port I/O index-data pair
Implement an I/O space index-data register pair as defined by the AHCI spec, including the corresponding SATA PCI capability and BAR. This allows real-mode code to access the AHCI registers; real-mode code cannot address the memory-mapped register space because it is beyond the first megabyte. Signed-off-by: Daniel Verkamp <daniel@drv.nu> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'hw/pci_regs.h')
-rw-r--r--hw/pci_regs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/pci_regs.h b/hw/pci_regs.h
index e8840964ac..e8357c3ea6 100644
--- a/hw/pci_regs.h
+++ b/hw/pci_regs.h
@@ -211,6 +211,7 @@
#define PCI_CAP_ID_AGP3 0x0E /* AGP Target PCI-PCI bridge */
#define PCI_CAP_ID_EXP 0x10 /* PCI Express */
#define PCI_CAP_ID_MSIX 0x11 /* MSI-X */
+#define PCI_CAP_ID_SATA 0x12 /* Serial ATA */
#define PCI_CAP_ID_AF 0x13 /* PCI Advanced Features */
#define PCI_CAP_LIST_NEXT 1 /* Next capability in the list */
#define PCI_CAP_FLAGS 2 /* Capability defined flags (16 bits) */