ahci: add port I/O index-data pair
authorDaniel Verkamp <daniel@drv.nu>
Sat, 27 Aug 2011 09:12:28 +0000 (02:12 -0700)
committerKevin Wolf <kwolf@redhat.com>
Wed, 21 Sep 2011 12:32:20 +0000 (14:32 +0200)
commit086f3a8a177f2da7b23ce51087e7a8cd9823faa9
tree02fee21253c82795551111e8d63f46fd7b2ba8f1
parent28ba1b2a4db4293c3cbc0d0c349f756c9a7226f4
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>
hw/ide/ahci.c
hw/ide/ahci.h
hw/ide/ich.c
hw/pci_regs.h