Revision 0aab0d3a hw/pcnet.c
b/hw/pcnet.c | ||
---|---|---|
2143 | 2143 |
} |
2144 | 2144 |
#endif /* TARGET_SPARC */ |
2145 | 2145 |
|
2146 |
static PCIDeviceInfo pcnet_info = { |
|
2147 |
.qdev.name = "pcnet", |
|
2148 |
.qdev.size = sizeof(PCIPCNetState), |
|
2149 |
.init = pci_pcnet_init, |
|
2150 |
}; |
|
2151 |
|
|
2146 | 2152 |
static void pcnet_register_devices(void) |
2147 | 2153 |
{ |
2148 |
pci_qdev_register("pcnet", sizeof(PCIPCNetState), pci_pcnet_init);
|
|
2154 |
pci_qdev_register(&pcnet_info);
|
|
2149 | 2155 |
#if defined (TARGET_SPARC) && !defined(TARGET_SPARC64) |
2150 | 2156 |
sysbus_register_dev("lance", sizeof(SysBusPCNetState), lance_init); |
2151 | 2157 |
#endif |
Also available in: Unified diff