Revision 5fafdf24 hw/prep_pci.c

b/hw/prep_pci.c
2 2
 * QEMU PREP PCI host
3 3
 *
4 4
 * Copyright (c) 2006 Fabrice Bellard
5
 * 
5
 *
6 6
 * Permission is hereby granted, free of charge, to any person obtaining a copy
7 7
 * of this software and associated documentation files (the "Software"), to deal
8 8
 * in the Software without restriction, including without limitation the rights
......
147 147
    register_ioport_read(0xcfc, 4, 2, pci_host_data_readw, s);
148 148
    register_ioport_read(0xcfc, 4, 4, pci_host_data_readl, s);
149 149

  
150
    PPC_io_memory = cpu_register_io_memory(0, PPC_PCIIO_read, 
150
    PPC_io_memory = cpu_register_io_memory(0, PPC_PCIIO_read,
151 151
                                           PPC_PCIIO_write, s);
152 152
    cpu_register_physical_memory(0x80800000, 0x00400000, PPC_io_memory);
153 153

  
154
    /* PCI host bridge */ 
155
    d = pci_register_device(s->bus, "PREP Host Bridge - Motorola Raven", 
154
    /* PCI host bridge */
155
    d = pci_register_device(s->bus, "PREP Host Bridge - Motorola Raven",
156 156
                            sizeof(PCIDevice), 0, NULL, NULL);
157 157
    d->config[0x00] = 0x57; // vendor_id : Motorola
158 158
    d->config[0x01] = 0x10;

Also available in: Unified diff