Revision 81a322d4 hw/grackle_pci.c
b/hw/grackle_pci.c | ||
---|---|---|
152 | 152 |
return d->host_state.bus; |
153 | 153 |
} |
154 | 154 |
|
155 |
static void pci_grackle_init_device(SysBusDevice *dev)
|
|
155 |
static int pci_grackle_init_device(SysBusDevice *dev)
|
|
156 | 156 |
{ |
157 | 157 |
GrackleState *s; |
158 | 158 |
int pci_mem_config, pci_mem_data; |
... | ... | |
171 | 171 |
&s->host_state); |
172 | 172 |
qemu_register_reset(pci_grackle_reset, &s->host_state); |
173 | 173 |
pci_grackle_reset(&s->host_state); |
174 |
return 0; |
|
174 | 175 |
} |
175 | 176 |
|
176 |
static void pci_dec_21154_init_device(SysBusDevice *dev)
|
|
177 |
static int pci_dec_21154_init_device(SysBusDevice *dev)
|
|
177 | 178 |
{ |
178 | 179 |
GrackleState *s; |
179 | 180 |
int pci_mem_config, pci_mem_data; |
... | ... | |
187 | 188 |
&s->host_state); |
188 | 189 |
sysbus_init_mmio(dev, 0x1000, pci_mem_config); |
189 | 190 |
sysbus_init_mmio(dev, 0x1000, pci_mem_data); |
191 |
return 0; |
|
190 | 192 |
} |
191 | 193 |
|
192 |
static void grackle_pci_host_init(PCIDevice *d)
|
|
194 |
static int grackle_pci_host_init(PCIDevice *d)
|
|
193 | 195 |
{ |
194 | 196 |
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_MOTOROLA); |
195 | 197 |
pci_config_set_device_id(d->config, PCI_DEVICE_ID_MOTOROLA_MPC106); |
... | ... | |
197 | 199 |
d->config[0x09] = 0x01; |
198 | 200 |
pci_config_set_class(d->config, PCI_CLASS_BRIDGE_HOST); |
199 | 201 |
d->config[PCI_HEADER_TYPE] = PCI_HEADER_TYPE_NORMAL; // header_type |
202 |
return 0; |
|
200 | 203 |
} |
201 | 204 |
|
202 |
static void dec_21154_pci_host_init(PCIDevice *d)
|
|
205 |
static int dec_21154_pci_host_init(PCIDevice *d)
|
|
203 | 206 |
{ |
204 | 207 |
/* PCI2PCI bridge same values as PearPC - check this */ |
205 | 208 |
pci_config_set_vendor_id(d->config, PCI_VENDOR_ID_DEC); |
... | ... | |
223 | 226 |
d->config[0x25] = 0x84; |
224 | 227 |
d->config[0x26] = 0x00; // prefetchable_memory_limit |
225 | 228 |
d->config[0x27] = 0x85; |
229 |
return 0; |
|
226 | 230 |
} |
227 | 231 |
|
228 | 232 |
static PCIDeviceInfo grackle_pci_host_info = { |
Also available in: Unified diff