]> git.proxmox.com Git - qemu.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 11:55:25 +0000 (12:55 +0100)
commitd27dd7e1a275010a9c94d8d22a0771168ff8b8e5
tree427b6504a1ed751e009d7accae1296f9e4739fb4
parentc3a965c943c97ea659b56c8bade53481f4effcf4
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>
(cherry picked from commit 2c4b9d0ea42c27ec2112e437a0fa954afe73bd23)
hw/ide/ahci.c
hw/ide/ahci.h
hw/ide/ich.c