pci: add pci_register_bar_simple() API
commit17cbcb0bf79c605aecaab3661dc8bad627e4cb3b
authorAvi Kivity <avi@redhat.com>
Mon, 4 Apr 2011 15:27:58 +0000 (4 18:27 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 7 Apr 2011 10:56:45 +0000 (7 13:56 +0300)
treeaaab24f7b5b9667e1711da2f2e55305126734510
parentaf94482bcee9640d9f8a6aa06104d8456bbe0d7f
pci: add pci_register_bar_simple() API

This is similar to pci_register_bar(), but automatically registers a single
memory region spanning the entire BAR.

Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci.c
hw/pci.h