]> xenbits.xensource.com Git - seabios.git/commit
virtio: Convert to new PCI BAR helper functions
authorKevin O'Connor <kevin@koconnor.net>
Wed, 3 Feb 2016 03:34:27 +0000 (22:34 -0500)
committerKevin O'Connor <kevin@koconnor.net>
Wed, 3 Feb 2016 04:16:41 +0000 (23:16 -0500)
commitf46739b1a819750c63fb5849844d99cc2ab001e8
treee2aa9fff0258ed3755a09403407097e9a177d62a
parentc53953ac568fa4501f1a619240eecd4bd38cbb21
virtio: Convert to new PCI BAR helper functions

Use the pci_enable_x() functions.

This patch also converts cap->addr from a 'u32' to a union storing a
'u32' or a 'void*'.  This makes it more clear when the address is a
virtual memory address.

The virtio controller code will now explicitly set PCI_COMMAND_MEMORY
and/or PCI_COMMAND_IO instead of assuming it has already been enabled.

Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
src/hw/virtio-pci.c
src/hw/virtio-pci.h