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)
commit353e94440ae45db84cb4b5afb0f8a3a215ed0135
treea89f670d2938ba00365e2a8a5a0b3ac5707e2cc1
parent3d7fed93dd266354559dced66aa94c4e1c735c79
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