Lines Matching refs:dev
122 static void via_ide_reset(DeviceState *dev) in via_ide_reset() argument
124 PCIIDEState *d = PCI_IDE(dev); in via_ide_reset()
125 PCIDevice *pd = PCI_DEVICE(dev); in via_ide_reset()
197 static void via_ide_realize(PCIDevice *dev, Error **errp) in via_ide_realize() argument
199 PCIIDEState *d = PCI_IDE(dev); in via_ide_realize()
200 DeviceState *ds = DEVICE(dev); in via_ide_realize()
201 uint8_t *pci_conf = dev->config; in via_ide_realize()
205 dev->wmask[PCI_INTERRUPT_LINE] = 0; in via_ide_realize()
206 dev->wmask[PCI_CLASS_PROG] = 5; in via_ide_realize()
210 pci_register_bar(dev, 0, PCI_BASE_ADDRESS_SPACE_IO, &d->data_bar[0]); in via_ide_realize()
214 pci_register_bar(dev, 1, PCI_BASE_ADDRESS_SPACE_IO, &d->cmd_bar[0]); in via_ide_realize()
218 pci_register_bar(dev, 2, PCI_BASE_ADDRESS_SPACE_IO, &d->data_bar[1]); in via_ide_realize()
222 pci_register_bar(dev, 3, PCI_BASE_ADDRESS_SPACE_IO, &d->cmd_bar[1]); in via_ide_realize()
225 pci_register_bar(dev, 4, PCI_BASE_ADDRESS_SPACE_IO, &d->bmdma_bar); in via_ide_realize()
237 static void via_ide_exitfn(PCIDevice *dev) in via_ide_exitfn() argument
239 PCIIDEState *d = PCI_IDE(dev); in via_ide_exitfn()