mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
pci: s/PCI_ADDRESS_SPACE_/PCI_BASE_ADDRESS_SPACE_/ to match pci_regs.h
make constants for pci base address match pci_regs.h by renaming PCI_ADDRESS_SPACE_xxx to PCI_BASE_ADDRESS_SPACE_xxx. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
67a51b48c8
commit
0392a017ae
22 changed files with 53 additions and 51 deletions
|
@ -95,7 +95,7 @@ static int pci_vga_initfn(PCIDevice *dev)
|
|||
|
||||
/* XXX: VGA_RAM_SIZE must be a power of two */
|
||||
pci_register_bar(&d->dev, 0, VGA_RAM_SIZE,
|
||||
PCI_ADDRESS_SPACE_MEM_PREFETCH, vga_map);
|
||||
PCI_BASE_ADDRESS_MEM_PREFETCH, vga_map);
|
||||
|
||||
if (s->bios_size) {
|
||||
unsigned int bios_total_size;
|
||||
|
@ -104,7 +104,7 @@ static int pci_vga_initfn(PCIDevice *dev)
|
|||
while (bios_total_size < s->bios_size)
|
||||
bios_total_size <<= 1;
|
||||
pci_register_bar(&d->dev, PCI_ROM_SLOT, bios_total_size,
|
||||
PCI_ADDRESS_SPACE_MEM_PREFETCH, vga_map);
|
||||
PCI_BASE_ADDRESS_MEM_PREFETCH, vga_map);
|
||||
}
|
||||
|
||||
/* ROM BIOS */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue