summaryrefslogtreecommitdiffstats
path: root/hw/pci_regs.h
diff options
context:
space:
mode:
authorDaniel Verkamp2011-08-27 11:12:28 +0200
committerKevin Wolf2011-09-21 14:32:20 +0200
commit465f1ab16169f5d71e52f11d4c650a50fd681030 (patch)
tree02fee21253c82795551111e8d63f46fd7b2ba8f1 /hw/pci_regs.h
parentnbd: fix non-Linux build failure (diff)
downloadqemu-465f1ab16169f5d71e52f11d4c650a50fd681030.tar.gz
qemu-465f1ab16169f5d71e52f11d4c650a50fd681030.tar.xz
qemu-465f1ab16169f5d71e52f11d4c650a50fd681030.zip
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) */