pci: Replace used bitmap with config byte map
commit1f3ef957426124e3e7649ce6766874e3753aa055
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 19 Nov 2010 23:19:49 +0000 (19 16:19 -0700)
committerMarcelo Tosatti <mtosatti@redhat.com>
Tue, 30 Nov 2010 16:17:31 +0000 (30 14:17 -0200)
tree1e920e8ea946c00da586ea36c36ff8a00121706c
parentaaab315bfe74e7081380517b1837d28f40e509e3
pci: Replace used bitmap with config byte map

Capabilities are allocated in bytes, so we can track both whether
a byte is used and by what capability in the same structure.

Remove pci_reserve_capability() as there are no users, remove
pci_access_cap_config() since it's now a trivial lookup.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
hw/device-assignment.c
hw/pci.c
hw/pci.h