commit | f46739b1a819750c63fb5849844d99cc2ab001e8 | [log] [tgz] |
---|---|---|
author | Kevin O'Connor <kevin@koconnor.net> | Tue Feb 02 22:34:27 2016 -0500 |
committer | Kevin O'Connor <kevin@koconnor.net> | Tue Feb 02 23:16:41 2016 -0500 |
tree | e2aa9fff0258ed3755a09403407097e9a177d62a | |
parent | c53953ac568fa4501f1a619240eecd4bd38cbb21 [diff] |
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>