Revision 5fafdf24 hw/unin_pci.c

b/hw/unin_pci.c
2 2
 * QEMU Uninorth PCI host (for all Mac99 and newer machines)
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
......
163 163
    s->bus = pci_register_bus(pci_unin_set_irq, pci_unin_map_irq,
164 164
                              pic, 11 << 3, 4);
165 165

  
166
    pci_mem_config = cpu_register_io_memory(0, pci_unin_main_config_read, 
166
    pci_mem_config = cpu_register_io_memory(0, pci_unin_main_config_read,
167 167
                                            pci_unin_main_config_write, s);
168 168
    pci_mem_data = cpu_register_io_memory(0, pci_unin_main_read,
169 169
                                          pci_unin_main_write, s);
170 170
    cpu_register_physical_memory(0xf2800000, 0x1000, pci_mem_config);
171 171
    cpu_register_physical_memory(0xf2c00000, 0x1000, pci_mem_data);
172
    d = pci_register_device(s->bus, "Uni-north main", sizeof(PCIDevice), 
172
    d = pci_register_device(s->bus, "Uni-north main", sizeof(PCIDevice),
173 173
                            11 << 3, NULL, NULL);
174 174
    d->config[0x00] = 0x6b; // vendor_id : Apple
175 175
    d->config[0x01] = 0x10;
......
217 217
#if 0 // XXX: not needed for now
218 218
    /* Uninorth AGP bus */
219 219
    s = &pci_bridge[1];
220
    pci_mem_config = cpu_register_io_memory(0, pci_unin_config_read, 
220
    pci_mem_config = cpu_register_io_memory(0, pci_unin_config_read,
221 221
                                            pci_unin_config_write, s);
222 222
    pci_mem_data = cpu_register_io_memory(0, pci_unin_read,
223 223
                                          pci_unin_write, s);
......
242 242
#if 0 // XXX: not needed for now
243 243
    /* Uninorth internal bus */
244 244
    s = &pci_bridge[2];
245
    pci_mem_config = cpu_register_io_memory(0, pci_unin_config_read, 
245
    pci_mem_config = cpu_register_io_memory(0, pci_unin_config_read,
246 246
                                            pci_unin_config_write, s);
247 247
    pci_mem_data = cpu_register_io_memory(0, pci_unin_read,
248 248
                                          pci_unin_write, s);

Also available in: Unified diff