/openbmc/qemu/hw/usb/ |
H A D | hcd-ehci-pci.c | 37 uint8_t *pci_conf = dev->config; in usb_ehci_pci_realize() local 39 pci_set_byte(&pci_conf[PCI_CLASS_PROG], 0x20); in usb_ehci_pci_realize() 42 pci_set_byte(&pci_conf[PCI_CAPABILITY_LIST], 0x00); in usb_ehci_pci_realize() 45 pci_set_byte(&pci_conf[PCI_INTERRUPT_PIN], 4); /* interrupt pin D */ in usb_ehci_pci_realize() 46 pci_set_byte(&pci_conf[PCI_MIN_GNT], 0); in usb_ehci_pci_realize() 47 pci_set_byte(&pci_conf[PCI_MAX_LAT], 0); in usb_ehci_pci_realize() 51 pci_set_byte(&pci_conf[USB_SBRN], USB_RELEASE_2); /* release # (2.1.4) */ in usb_ehci_pci_realize() 52 pci_set_byte(&pci_conf[0x61], 0x20); /* frame length adjustment (2.1.5) */ in usb_ehci_pci_realize() 53 pci_set_word(&pci_conf[0x62], 0x00); /* port wake up capability (2.1.6) */ in usb_ehci_pci_realize() 55 pci_conf[0x64] = 0x00; in usb_ehci_pci_realize() [all …]
|
H A D | vt82c686-uhci-pci.c | 15 uint8_t *pci_conf = s->dev.config; in usb_uhci_vt82c686b_realize() local 18 pci_set_long(pci_conf + 0x40, 0x00001000); in usb_uhci_vt82c686b_realize() 20 pci_set_long(pci_conf + 0x80, 0x00020001); in usb_uhci_vt82c686b_realize() 22 pci_set_long(pci_conf + 0xc0, 0x00002000); in usb_uhci_vt82c686b_realize()
|
H A D | hcd-uhci-pci.c | 75 uint8_t *pci_conf = dev->config; in usb_uhci_common_realize_pci() local 77 pci_conf[PCI_CLASS_PROG] = 0x00; in usb_uhci_common_realize_pci() 79 pci_conf[USB_SBRN] = USB_RELEASE_1; /* release number */ in usb_uhci_common_realize_pci() 80 pci_config_set_interrupt_pin(pci_conf, u->info.irq_pin + 1); in usb_uhci_common_realize_pci()
|
/openbmc/qemu/hw/isa/ |
H A D | piix.c | 137 uint8_t *pci_conf = d->dev.config; in piix_reset() local 139 pci_conf[0x04] = 0x07; /* master, memory and I/O */ in piix_reset() 140 pci_conf[0x05] = 0x00; in piix_reset() 141 pci_conf[0x06] = 0x00; in piix_reset() 142 pci_conf[0x07] = 0x02; /* PCI_status_devsel_medium */ in piix_reset() 143 pci_conf[0x4c] = 0x4d; in piix_reset() 144 pci_conf[0x4e] = 0x03; in piix_reset() 145 pci_conf[0x4f] = 0x00; in piix_reset() 146 pci_conf[0x60] = 0x80; in piix_reset() 147 pci_conf[0x61] = 0x80; in piix_reset() [all …]
|
H A D | i82378.c | 67 uint8_t *pci_conf; in i82378_realize() local 72 pci_conf = pci->config; in i82378_realize() 73 pci_set_word(pci_conf + PCI_COMMAND, in i82378_realize() 75 pci_set_word(pci_conf + PCI_STATUS, in i82378_realize() 78 pci_config_set_interrupt_pin(pci_conf, 1); /* interrupt pin 0 */ in i82378_realize()
|
H A D | vt82c686.c | 811 uint8_t *pci_conf = s->dev.config; in vt82c686b_isa_reset() local 813 pci_set_long(pci_conf + PCI_CAPABILITY_LIST, 0x000000c0); in vt82c686b_isa_reset() 814 pci_set_word(pci_conf + PCI_COMMAND, PCI_COMMAND_IO | PCI_COMMAND_MEMORY | in vt82c686b_isa_reset() 816 pci_set_word(pci_conf + PCI_STATUS, PCI_STATUS_DEVSEL_MEDIUM); in vt82c686b_isa_reset() 818 pci_conf[0x48] = 0x01; /* Miscellaneous Control 3 */ in vt82c686b_isa_reset() 819 pci_conf[0x4a] = 0x04; /* IDE interrupt Routing */ in vt82c686b_isa_reset() 820 pci_conf[0x4f] = 0x03; /* DMA/Master Mem Access Control 3 */ in vt82c686b_isa_reset() 821 pci_conf[0x50] = 0x2d; /* PnP DMA Request Control */ in vt82c686b_isa_reset() 822 pci_conf[0x59] = 0x04; in vt82c686b_isa_reset() 823 pci_conf[0x5a] = 0x04; /* KBC/RTC Control*/ in vt82c686b_isa_reset() [all …]
|
H A D | lpc_ich9.c | 631 uint8_t *pci_conf; in ich9_lpc_machine_ready() local 633 pci_conf = s->d.config; in ich9_lpc_machine_ready() 636 pci_conf[0x82] |= 0x01; in ich9_lpc_machine_ready() 640 pci_conf[0x82] |= 0x02; in ich9_lpc_machine_ready() 644 pci_conf[0x82] |= 0x04; in ich9_lpc_machine_ready() 648 pci_conf[0x82] |= 0x08; in ich9_lpc_machine_ready()
|
/openbmc/qemu/hw/i386/xen/ |
H A D | xen_pvdevice.c | 89 uint8_t *pci_conf; in xen_pv_realize() local 97 pci_conf = pci_dev->config; in xen_pv_realize() 99 pci_set_word(pci_conf + PCI_VENDOR_ID, d->vendor_id); in xen_pv_realize() 100 pci_set_word(pci_conf + PCI_SUBSYSTEM_VENDOR_ID, d->vendor_id); in xen_pv_realize() 101 pci_set_word(pci_conf + PCI_DEVICE_ID, d->device_id); in xen_pv_realize() 102 pci_set_word(pci_conf + PCI_SUBSYSTEM_ID, d->device_id); in xen_pv_realize() 103 pci_set_byte(pci_conf + PCI_REVISION_ID, d->revision); in xen_pv_realize() 105 pci_set_word(pci_conf + PCI_COMMAND, PCI_COMMAND_MEMORY); in xen_pv_realize() 107 pci_config_set_prog_interface(pci_conf, 0); in xen_pv_realize() 109 pci_conf[PCI_INTERRUPT_PIN] = 1; in xen_pv_realize()
|
H A D | xen_platform.c | 550 uint8_t *pci_conf; in xen_platform_realize() local 558 pci_conf = dev->config; in xen_platform_realize() 560 pci_set_word(pci_conf + PCI_COMMAND, PCI_COMMAND_IO | PCI_COMMAND_MEMORY); in xen_platform_realize() 562 pci_config_set_prog_interface(pci_conf, 0); in xen_platform_realize() 564 pci_conf[PCI_INTERRUPT_PIN] = 1; in xen_platform_realize()
|
/openbmc/qemu/hw/ide/ |
H A D | via.c | 126 uint8_t *pci_conf = pd->config; in via_ide_reset() local 133 pci_config_set_prog_interface(pci_conf, 0x8a); /* legacy mode */ in via_ide_reset() 136 pci_set_word(pci_conf + PCI_COMMAND, PCI_COMMAND_IO | PCI_COMMAND_WAIT); in via_ide_reset() 137 pci_set_word(pci_conf + PCI_STATUS, PCI_STATUS_FAST_BACK | in via_ide_reset() 140 pci_set_byte(pci_conf + PCI_INTERRUPT_LINE, 0xe); in via_ide_reset() 143 pci_set_long(pci_conf + 0x40, 0x0a090600); in via_ide_reset() 145 pci_set_long(pci_conf + 0x44, 0x00c00068); in via_ide_reset() 147 pci_set_long(pci_conf + 0x48, 0xa8a8a8a8); in via_ide_reset() 149 pci_set_long(pci_conf + 0x4c, 0x000000ff); in via_ide_reset() 151 pci_set_long(pci_conf + 0x50, 0x07070707); in via_ide_reset() [all …]
|
H A D | piix.c | 110 uint8_t *pci_conf = pd->config; in piix_ide_reset() local 118 pci_set_word(pci_conf + PCI_COMMAND, 0x0000); in piix_ide_reset() 119 pci_set_word(pci_conf + PCI_STATUS, in piix_ide_reset() 121 pci_set_long(pci_conf + 0x20, 0x1); /* BMIBA: 20-23h */ in piix_ide_reset() 155 uint8_t *pci_conf = dev->config; in pci_piix_ide_realize() local 157 pci_conf[PCI_CLASS_PROG] = 0x80; // legacy ATA mode in pci_piix_ide_realize()
|
H A D | cmd646.c | 254 uint8_t *pci_conf = dev->config; in pci_cmd646_ide_realize() local 257 pci_conf[PCI_CLASS_PROG] = 0x8f; in pci_cmd646_ide_realize() 259 pci_conf[CNTRL] = CNTRL_EN_CH0; // enable IDE0 in pci_cmd646_ide_realize() 262 pci_conf[CNTRL] |= CNTRL_EN_CH1; /* enable IDE1 */ in pci_cmd646_ide_realize() 293 pci_conf[PCI_INTERRUPT_PIN] = 0x01; // interrupt on pin 1 in pci_cmd646_ide_realize()
|
/openbmc/qemu/hw/acpi/ |
H A D | piix4.c | 283 uint8_t *pci_conf = d->config; in piix4_pm_reset() local 285 pci_conf[0x58] = 0; in piix4_pm_reset() 286 pci_conf[0x59] = 0; in piix4_pm_reset() 287 pci_conf[0x5a] = 0; in piix4_pm_reset() 288 pci_conf[0x5b] = 0; in piix4_pm_reset() 290 pci_conf[0x40] = 0x01; /* PM io base read only bit */ in piix4_pm_reset() 291 pci_conf[0x80] = 0; in piix4_pm_reset() 295 pci_conf[0x5B] = 0x02; in piix4_pm_reset() 417 uint8_t *pci_conf; in piix4_pm_machine_ready() local 419 pci_conf = d->config; in piix4_pm_machine_ready() [all …]
|
/openbmc/qemu/hw/riscv/ |
H A D | riscv-iommu-pci.c | 83 uint8_t *pci_conf = dev->config; in riscv_iommu_pci_realize() local 86 pci_set_word(pci_conf + PCI_VENDOR_ID, s->vendor_id); in riscv_iommu_pci_realize() 87 pci_set_word(pci_conf + PCI_SUBSYSTEM_VENDOR_ID, s->vendor_id); in riscv_iommu_pci_realize() 88 pci_set_word(pci_conf + PCI_DEVICE_ID, s->device_id); in riscv_iommu_pci_realize() 89 pci_set_word(pci_conf + PCI_SUBSYSTEM_ID, s->device_id); in riscv_iommu_pci_realize() 90 pci_set_byte(pci_conf + PCI_REVISION_ID, s->revision); in riscv_iommu_pci_realize()
|
/openbmc/qemu/hw/net/ |
H A D | pcnet-pci.c | 201 uint8_t *pci_conf; in pci_pcnet_realize() local 208 pci_conf = pci_dev->config; in pci_pcnet_realize() 210 pci_set_word(pci_conf + PCI_STATUS, in pci_pcnet_realize() 213 pci_set_word(pci_conf + PCI_SUBSYSTEM_VENDOR_ID, 0x0); in pci_pcnet_realize() 214 pci_set_word(pci_conf + PCI_SUBSYSTEM_ID, 0x0); in pci_pcnet_realize() 216 pci_conf[PCI_INTERRUPT_PIN] = 1; /* interrupt pin A */ in pci_pcnet_realize() 217 pci_conf[PCI_MIN_GNT] = 0x06; in pci_pcnet_realize() 218 pci_conf[PCI_MAX_LAT] = 0xff; in pci_pcnet_realize()
|
H A D | ne2000-pci.c | 59 uint8_t *pci_conf; in pci_ne2000_realize() local 61 pci_conf = d->dev.config; in pci_ne2000_realize() 62 pci_conf[PCI_INTERRUPT_PIN] = 1; /* interrupt pin A */ in pci_ne2000_realize()
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | leon_pci_grpci1.c | 96 unsigned long pci_conf; /* CONFIGURATION */ member 121 u32 *pci_conf, tmp, cfg; in grpci1_cfg_r32() local 138 pci_conf = (u32 *) (priv->pci_conf | (devfn << 8) | (where & 0xfc)); in grpci1_cfg_r32() 139 tmp = LEON3_BYPASS_LOAD_PA(pci_conf); in grpci1_cfg_r32() 183 unsigned int *pci_conf; in grpci1_cfg_w32() local 200 pci_conf = (unsigned int *) (priv->pci_conf | in grpci1_cfg_w32() 202 LEON3_BYPASS_STORE_PA(pci_conf, swab32(val)); in grpci1_cfg_w32() 577 priv->pci_conf = ofdev->resource[2].start + 0x10000; in grpci1_of_probe() 578 priv->pci_conf_end = priv->pci_conf + 0x10000; in grpci1_of_probe() 590 priv->pci_io, priv->pci_conf-1, in grpci1_of_probe() [all …]
|
H A D | leon_pci_grpci2.c | 214 unsigned long pci_conf; /* CONFIGURATION */ member 239 unsigned int *pci_conf; in grpci2_cfg_r32() local 262 pci_conf = (unsigned int *) (priv->pci_conf | in grpci2_cfg_r32() 264 tmp = LEON3_BYPASS_LOAD_PA(pci_conf); in grpci2_cfg_r32() 310 unsigned int *pci_conf; in grpci2_cfg_w32() local 332 pci_conf = (unsigned int *) (priv->pci_conf | in grpci2_cfg_w32() 334 LEON3_BYPASS_STORE_PA(pci_conf, swab32(val)); in grpci2_cfg_w32() 763 priv->pci_conf = ofdev->resource[2].start + 0x10000; in grpci2_of_probe() 764 priv->pci_conf_end = priv->pci_conf + 0x10000; in grpci2_of_probe() 776 priv->pci_io, priv->pci_conf-1, in grpci2_of_probe() [all …]
|
/openbmc/linux/drivers/net/wan/ |
H A D | farsync.c | 455 unsigned short pci_conf; /* PCI card config in I/O space */ member 678 outw(0x440f, card->pci_conf + CNTRL_9054 + 2); in fst_cpureset() 679 outw(0x040f, card->pci_conf + CNTRL_9054 + 2); in fst_cpureset() 683 outw(0x240f, card->pci_conf + CNTRL_9054 + 2); in fst_cpureset() 687 outw(0x040f, card->pci_conf + CNTRL_9054 + 2); in fst_cpureset() 696 regval = inl(card->pci_conf + CNTRL_9052); in fst_cpureset() 698 outl(regval | 0x40000000, card->pci_conf + CNTRL_9052); in fst_cpureset() 699 outl(regval & ~0x40000000, card->pci_conf + CNTRL_9052); in fst_cpureset() 716 outw(0x040e, card->pci_conf + CNTRL_9054 + 2); in fst_cpurelease() 717 outw(0x040f, card->pci_conf + CNTRL_9054 + 2); in fst_cpurelease() [all …]
|
/openbmc/qemu/hw/net/can/ |
H A D | ctucan_pci.c | 170 uint8_t *pci_conf; in ctucan_pci_realize() local 173 pci_conf = pci_dev->config; in ctucan_pci_realize() 174 pci_conf[PCI_INTERRUPT_PIN] = 0x01; /* interrupt pin A */ in ctucan_pci_realize()
|
H A D | can_mioe3680_pci.c | 160 uint8_t *pci_conf; in mioe3680_pci_realize() local 163 pci_conf = pci_dev->config; in mioe3680_pci_realize() 164 pci_conf[PCI_INTERRUPT_PIN] = 0x01; /* interrupt pin A */ in mioe3680_pci_realize()
|
H A D | can_pcm3680_pci.c | 160 uint8_t *pci_conf; in pcm3680i_pci_realize() local 163 pci_conf = pci_dev->config; in pcm3680i_pci_realize() 164 pci_conf[PCI_INTERRUPT_PIN] = 0x01; /* interrupt pin A */ in pcm3680i_pci_realize()
|
H A D | can_kvaser_pci.c | 226 uint8_t *pci_conf; in kvaser_pci_realize() local 228 pci_conf = pci_dev->config; in kvaser_pci_realize() 229 pci_conf[PCI_INTERRUPT_PIN] = 0x01; /* interrupt pin A */ in kvaser_pci_realize()
|
/openbmc/u-boot/arch/powerpc/include/asm/ |
H A D | immap_83xx.h | 658 pciconf83xx_t pci_conf[2]; /* PCI Software Configuration Registers */ member 705 pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ member 740 pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ member 785 pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ member 834 pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ member 873 pciconf83xx_t pci_conf[1]; /* PCI Software Configuration Registers */ member 911 pciconf83xx_t pci_conf[1]; /* PCI Configuration Registers */ member
|
/openbmc/qemu/hw/misc/ |
H A D | pci-testdev.c | 245 uint8_t *pci_conf; in pci_testdev_realize() local 249 pci_conf = pci_dev->config; in pci_testdev_realize() 251 pci_conf[PCI_INTERRUPT_PIN] = 0; /* no interrupt pin */ in pci_testdev_realize()
|