Revision 57c88866 hw/ide/piix.c
b/hw/ide/piix.c | ||
---|---|---|
160 | 160 |
|
161 | 161 |
/* hd_table must contain 4 block drivers */ |
162 | 162 |
/* NOTE: for the PIIX3, the IRQs and IOports are hardcoded */ |
163 |
void pci_piix3_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn)
|
|
163 |
PCIDevice *pci_piix3_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn)
|
|
164 | 164 |
{ |
165 | 165 |
PCIDevice *dev; |
166 | 166 |
|
167 | 167 |
dev = pci_create_simple(bus, devfn, "piix3-ide"); |
168 | 168 |
pci_ide_create_devs(dev, hd_table); |
169 |
return dev; |
|
169 | 170 |
} |
170 | 171 |
|
171 | 172 |
/* hd_table must contain 4 block drivers */ |
172 | 173 |
/* NOTE: for the PIIX4, the IRQs and IOports are hardcoded */ |
173 |
void pci_piix4_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn)
|
|
174 |
PCIDevice *pci_piix4_ide_init(PCIBus *bus, DriveInfo **hd_table, int devfn)
|
|
174 | 175 |
{ |
175 | 176 |
PCIDevice *dev; |
176 | 177 |
|
177 | 178 |
dev = pci_create_simple(bus, devfn, "piix4-ide"); |
178 | 179 |
pci_ide_create_devs(dev, hd_table); |
180 |
return dev; |
|
179 | 181 |
} |
180 | 182 |
|
181 | 183 |
static PCIDeviceInfo piix_ide_info[] = { |
Also available in: Unified diff