]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
ahci: make number of ports runtime determined
authorAlexander Graf <agraf@suse.de>
Tue, 1 Feb 2011 14:51:31 +0000 (15:51 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 7 Feb 2011 10:40:31 +0000 (11:40 +0100)
commit2c4b9d0ea42c27ec2112e437a0fa954afe73bd23
treea89f670d2938ba00365e2a8a5a0b3ac5707e2cc1
parent760c3e44d3a1d8a7e9d22f0429b1805d1c688178
ahci: make number of ports runtime determined

Different AHCI controllers have a different number of ports, so the core
shouldn't care about the amount of ports available.

This patch makes the number of ports available to the AHCI core runtime
configurable, allowing us to have multiple different AHCI implementations
with different amounts of ports.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/ide/ahci.c
hw/ide/ahci.h
hw/ide/ich.c