#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "bus_isa.h"
#include "bus_pci.h"
#include "cpu.h"
#include "device.h"
#include "devices.h"
#include "diskimage.h"
#include "machine.h"
#include "memory.h"
#include "misc.h"
#include "wdc.h"
#include "thirdparty/cpc700reg.h"
Go to the source code of this file.
Classes | |
struct | piix_ide_extra |
struct | vt82c586_ide_extra |
struct | symphony_82c105_extra |
Macros | |
#define | BUS_PCI_C |
#define | PCI_VENDOR_INTEGRAPHICS 0x10ea |
#define | PCI_VENDOR_S3 0x5333 |
#define | PCI_PRODUCT_S3_VIRGE 0x5631 |
#define | PCI_PRODUCT_S3_VIRGE_DX 0x8a01 |
#define | PCI_VENDOR_ALI 0x10b9 |
#define | PCI_PRODUCT_ALI_M1543 0x1533 /* NOTE: not 1543 */ |
#define | PCI_PRODUCT_ALI_M5229 0x5229 |
#define | PCI_VENDOR_ADP 0x9004 /* Adaptec */ |
#define | PCI_VENDOR_ADP2 0x9005 /* Adaptec (2nd PCI Vendor ID) */ |
#define | PCI_PRODUCT_ADP_2940U 0x8178 /* AHA-2940 Ultra */ |
#define | PCI_PRODUCT_ADP_2940UP 0x8778 /* AHA-2940 Ultra Pro */ |
#define | PCI_VENDOR_GALILEO 0x11ab /* Galileo Technology */ |
#define | PCI_PRODUCT_GALILEO_GT64011 0x4146 /* GT-64011 System Controller */ |
#define | PCI_PRODUCT_GALILEO_GT64120 0x4620 /* GT-64120 */ |
#define | PCI_PRODUCT_GALILEO_GT64260 0x6430 /* GT-64260 */ |
#define | PCI_VENDOR_AMD 0x1022 /* Advanced Micro Devices */ |
#define | PCI_PRODUCT_AMD_PCNET_PCI 0x2000 /* PCnet-PCI Ethernet */ |
#define | PCI_VENDOR_INTEL 0x8086 |
#define | PCI_PRODUCT_INTEL_31244 0x3200 |
#define | PCI_PRODUCT_INTEL_82371SB_ISA 0x7000 |
#define | PCI_PRODUCT_INTEL_82371SB_IDE 0x7010 |
#define | PCI_PRODUCT_INTEL_82371AB_ISA 0x7110 |
#define | PCI_PRODUCT_INTEL_82371AB_IDE 0x7111 |
#define | PCI_PRODUCT_INTEL_SIO 0x0484 |
#define | PCI_VENDOR_IBM 0x1014 |
#define | PCI_PRODUCT_IBM_ISABRIDGE 0x000a |
#define | PCI_VENDOR_HEURICON 0x1223 |
#define | PCI_PRODUCT_HEURICON_PMPPC 0x000e |
#define | PCI_VENDOR_VIATECH 0x1106 /* VIA Technologies */ |
#define | PCI_PRODUCT_VIATECH_VT82C586_IDE |
#define | PCI_PRODUCT_VIATECH_VT82C586_ISA |
#define | COBALT_PCIB_BOARD_ID_REG 0x94 |
#define | COBALT_QUBE2_ID 5 |
#define | PCI_VENDOR_SYMPHONY 0x10ad |
#define | PCI_PRODUCT_SYMPHONY_83C553 0x0565 |
#define | PCI_PRODUCT_SYMPHONY_82C105 0x0105 |
#define | PCI_VENDOR_REALTEK 0x10ec |
#define | PCI_PRODUCT_REALTEK_RT8139 0x8139 |
#define | PCI_VENDOR_DEC 0x1011 /* Digital Equipment */ |
#define | PCI_PRODUCT_DEC_21142 0x0019 /* DECchip 21142/21143 10/100 Ethernet */ |
#define | PCI_PRODUCT_DEC_21030 0x0004 /* DECchip 21030 ("TGA") */ |
#define | PCI_VENDOR_MOT 0x1057 |
#define | PCI_PRODUCT_MOT_MPC105 0x0001 |
#define | PCI_VENDOR_APPLE 0x106b |
#define | PCI_PRODUCT_APPLE_GC 0x0002 |
#define | PCI_PRODUCT_APPLE_UNINORTH1 0x001e |
#define | PCI_VENDOR_ATI 0x1002 |
#define | PCI_PRODUCT_ATI_RADEON_9200_2 0x5962 |
Functions | |
void | bus_pci_decompose_1 (uint32_t t, int *bus, int *dev, int *func, int *reg) |
void | bus_pci_data_access (struct cpu *cpu, struct pci_data *pci_data, uint64_t *data, int len, int writeflag) |
void | bus_pci_setaddr (struct cpu *cpu, struct pci_data *pci_data, int bus, int device, int function, int reg) |
void | bus_pci_add (struct machine *machine, struct pci_data *pci_data, struct memory *mem, int bus, int device, int function, const char *name) |
struct pci_data * | bus_pci_init (struct machine *machine, const char *irq_path, uint64_t pci_actual_io_offset, uint64_t pci_actual_mem_offset, uint64_t pci_portbase, uint64_t pci_membase, const char *pci_irqbase, uint64_t isa_portbase, uint64_t isa_membase, const char *isa_irqbase) |
PCIINIT (igsfb) | |
PCIINIT (s3_virge) | |
PCIINIT (ali_m1543) | |
PCIINIT (ali_m5229) | |
PCIINIT (ahc) | |
PCIINIT (gt64011) | |
PCIINIT (gt64120) | |
PCIINIT (gt64260) | |
PCIINIT (pcn) | |
PCIINIT (i31244) | |
int | piix_isa_cfg_reg_write (struct pci_device *pd, int reg, uint32_t value) |
PCIINIT (piix3_isa) | |
PCIINIT (piix4_isa) | |
PCIINIT (i82378zb) | |
int | piix_ide_cfg_reg_write (struct pci_device *pd, int reg, uint32_t value) |
PCIINIT (piix3_ide) | |
PCIINIT (piix4_ide) | |
PCIINIT (ibm_isa) | |
PCIINIT (heuricon_pmppc) | |
PCIINIT (vt82c586_isa) | |
int | vt82c586_ide_cfg_reg_write (struct pci_device *pd, int reg, uint32_t value) |
PCIINIT (vt82c586_ide) | |
PCIINIT (symphony_83c553) | |
int | symphony_82c105_cfg_reg_write (struct pci_device *pd, int reg, uint32_t value) |
PCIINIT (symphony_82c105) | |
PCIINIT (rtl8139c) | |
PCIINIT (dec21143) | |
PCIINIT (dec21030) | |
PCIINIT (eagle) | |
PCIINIT (gc_obio) | |
PCIINIT (uninorth) | |
PCIINIT (ati_radeon_9200_2) | |
Variables | |
int | verbose |
#define BUS_PCI_C |
Definition at line 49 of file bus_pci.cc.
#define COBALT_PCIB_BOARD_ID_REG 0x94 |
Referenced by PCIINIT().
#define COBALT_QUBE2_ID 5 |
Referenced by PCIINIT().
#define PCI_PRODUCT_ADP_2940U 0x8178 /* AHA-2940 Ultra */ |
Definition at line 529 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_ADP_2940UP 0x8778 /* AHA-2940 Ultra Pro */ |
Definition at line 530 of file bus_pci.cc.
#define PCI_PRODUCT_ALI_M1543 0x1533 /* NOTE: not 1543 */ |
Definition at line 461 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_ALI_M5229 0x5229 |
Definition at line 462 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_AMD_PCNET_PCI 0x2000 /* PCnet-PCI Ethernet */ |
Definition at line 638 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_APPLE_GC 0x0002 |
Definition at line 1373 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_APPLE_UNINORTH1 0x001e |
Definition at line 1374 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_ATI_RADEON_9200_2 0x5962 |
Definition at line 1418 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_DEC_21030 0x0004 /* DECchip 21030 ("TGA") */ |
Definition at line 1293 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_DEC_21142 0x0019 /* DECchip 21142/21143 10/100 Ethernet */ |
Definition at line 1217 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_GALILEO_GT64011 0x4146 /* GT-64011 System Controller */ |
Definition at line 592 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_GALILEO_GT64120 0x4620 /* GT-64120 */ |
Definition at line 593 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_GALILEO_GT64260 0x6430 /* GT-64260 */ |
Definition at line 594 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_HEURICON_PMPPC 0x000e |
Definition at line 932 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_IBM_ISABRIDGE 0x000a |
Definition at line 911 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_INTEL_31244 0x3200 |
Definition at line 682 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_INTEL_82371AB_IDE 0x7111 |
Definition at line 686 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_INTEL_82371AB_ISA 0x7110 |
Definition at line 685 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_INTEL_82371SB_IDE 0x7010 |
Definition at line 684 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_INTEL_82371SB_ISA 0x7000 |
Definition at line 683 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_INTEL_SIO 0x0484 |
Definition at line 687 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_MOT_MPC105 0x0001 |
Definition at line 1349 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_REALTEK_RT8139 0x8139 |
Definition at line 1172 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_S3_VIRGE 0x5631 |
Definition at line 437 of file bus_pci.cc.
#define PCI_PRODUCT_S3_VIRGE_DX 0x8a01 |
Definition at line 438 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_SYMPHONY_82C105 0x0105 |
Definition at line 1060 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_SYMPHONY_83C553 0x0565 |
Definition at line 1059 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_VIATECH_VT82C586_IDE |
Definition at line 958 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_PRODUCT_VIATECH_VT82C586_ISA |
Definition at line 960 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_VENDOR_ADP 0x9004 /* Adaptec */ |
Definition at line 527 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_VENDOR_ADP2 0x9005 /* Adaptec (2nd PCI Vendor ID) */ |
Definition at line 528 of file bus_pci.cc.
#define PCI_VENDOR_ALI 0x10b9 |
Definition at line 460 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_VENDOR_AMD 0x1022 /* Advanced Micro Devices */ |
Definition at line 637 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_VENDOR_APPLE 0x106b |
Definition at line 1372 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_VENDOR_ATI 0x1002 |
Definition at line 1417 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_VENDOR_DEC 0x1011 /* Digital Equipment */ |
Definition at line 1216 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_VENDOR_GALILEO 0x11ab /* Galileo Technology */ |
Definition at line 591 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_VENDOR_HEURICON 0x1223 |
Definition at line 931 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_VENDOR_IBM 0x1014 |
Definition at line 910 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_VENDOR_INTEGRAPHICS 0x10ea |
Definition at line 407 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_VENDOR_INTEL 0x8086 |
Definition at line 681 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_VENDOR_MOT 0x1057 |
Definition at line 1348 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_VENDOR_REALTEK 0x10ec |
Definition at line 1171 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_VENDOR_S3 0x5333 |
Definition at line 436 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_VENDOR_SYMPHONY 0x10ad |
Definition at line 1058 of file bus_pci.cc.
Referenced by PCIINIT().
#define PCI_VENDOR_VIATECH 0x1106 /* VIA Technologies */ |
Definition at line 957 of file bus_pci.cc.
Referenced by PCIINIT().
void bus_pci_add | ( | struct machine * | machine, |
struct pci_data * | pci_data, | ||
struct memory * | mem, | ||
int | bus, | ||
int | device, | ||
int | function, | ||
const char * | name | ||
) |
Definition at line 217 of file bus_pci.cc.
References CHECK_ALLOCATION, fatal(), PCI_COMMAND_IO_ENABLE, PCI_COMMAND_MEM_ENABLE, PCI_COMMAND_STATUS_REG, pci_lookup_initf, PCI_MAPREG_END, and PCI_MAPREG_START.
Referenced by dev_gt_init(), dev_uninorth_init(), DEVINIT(), and MACHINE_SETUP().
void bus_pci_data_access | ( | struct cpu * | cpu, |
struct pci_data * | pci_data, | ||
uint64_t * | data, | ||
int | len, | ||
int | writeflag | ||
) |
Definition at line 96 of file bus_pci.cc.
References data, debug, fatal(), MEM_READ, MEM_WRITE, PCI_COMMAND_IO_ENABLE, PCI_COMMAND_STATUS_REG, PCI_MAPREG_END, and PCI_MAPREG_START.
Referenced by DEVICE_ACCESS().
void bus_pci_decompose_1 | ( | uint32_t | t, |
int * | bus, | ||
int * | dev, | ||
int * | func, | ||
int * | reg | ||
) |
struct pci_data* bus_pci_init | ( | struct machine * | machine, |
const char * | irq_path, | ||
uint64_t | pci_actual_io_offset, | ||
uint64_t | pci_actual_mem_offset, | ||
uint64_t | pci_portbase, | ||
uint64_t | pci_membase, | ||
const char * | pci_irqbase, | ||
uint64_t | isa_portbase, | ||
uint64_t | isa_membase, | ||
const char * | isa_irqbase | ||
) |
Definition at line 356 of file bus_pci.cc.
References CHECK_ALLOCATION.
Referenced by dev_gt_init(), dev_macepci_init(), dev_uninorth_init(), and DEVINIT().
void bus_pci_setaddr | ( | struct cpu * | cpu, |
struct pci_data * | pci_data, | ||
int | bus, | ||
int | device, | ||
int | function, | ||
int | reg | ||
) |
Definition at line 197 of file bus_pci.cc.
Referenced by DEVICE_ACCESS().
PCIINIT | ( | igsfb | ) |
Definition at line 409 of file bus_pci.cc.
References device_add(), PCI_CLASS_CODE, PCI_CLASS_DISPLAY, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_SUBCLASS_DISPLAY_VGA, and PCI_VENDOR_INTEGRAPHICS.
PCIINIT | ( | s3_virge | ) |
Definition at line 440 of file bus_pci.cc.
References dev_vga_init(), machine::machine_name, PCI_CLASS_CODE, PCI_CLASS_DISPLAY, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_S3_VIRGE_DX, PCI_SUBCLASS_DISPLAY_VGA, and PCI_VENDOR_S3.
PCIINIT | ( | ali_m1543 | ) |
Definition at line 464 of file bus_pci.cc.
References bus_isa_init(), BUS_ISA_PCKBC_FORCE_USE, BUS_ISA_PCKBC_NONPCSTYLE, fatal(), MACHINE_CATS, machine::machine_type, PCI_BHLC_CODE, PCI_BHLC_REG, PCI_CLASS_BRIDGE, PCI_CLASS_CODE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_ALI_M1543, PCI_SUBCLASS_BRIDGE_ISA, and PCI_VENDOR_ALI.
PCIINIT | ( | ali_m5229 | ) |
Definition at line 490 of file bus_pci.cc.
References device_add(), diskimage_exist(), DISKIMAGE_IDE, fatal(), MACHINE_CATS, machine::machine_type, PCI_CLASS_CODE, PCI_CLASS_MASS_STORAGE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_ALI_M5229, PCI_SUBCLASS_MASS_STORAGE_IDE, and PCI_VENDOR_ALI.
PCIINIT | ( | ahc | ) |
Definition at line 532 of file bus_pci.cc.
References dev_ram_init(), DEV_RAM_MIRROR, device_add(), PCI_BHLC_REG, PCI_CAPLISTPTR_REG, PCI_CLASS_CODE, PCI_CLASS_MASS_STORAGE, PCI_CLASS_REG, PCI_COMMAND_STATUS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_INTERRUPT_REG, PCI_MAPREG_START, PCI_PRODUCT_ADP_2940U, PCI_SUBCLASS_MASS_STORAGE_SCSI, and PCI_VENDOR_ADP.
PCIINIT | ( | gt64011 | ) |
Definition at line 596 of file bus_pci.cc.
References PCI_CLASS_BRIDGE, PCI_CLASS_CODE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_GALILEO_GT64011, PCI_SUBCLASS_BRIDGE_HOST, and PCI_VENDOR_GALILEO.
PCIINIT | ( | gt64120 | ) |
Definition at line 605 of file bus_pci.cc.
References MACHINE_EVBMIPS, machine::machine_type, PCI_CLASS_BRIDGE, PCI_CLASS_CODE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_MAPREG_START, PCI_PRODUCT_GALILEO_GT64120, PCI_SUBCLASS_BRIDGE_HOST, and PCI_VENDOR_GALILEO.
PCIINIT | ( | gt64260 | ) |
Definition at line 620 of file bus_pci.cc.
References PCI_CLASS_BRIDGE, PCI_CLASS_CODE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_GALILEO_GT64260, PCI_SUBCLASS_BRIDGE_HOST, and PCI_VENDOR_GALILEO.
PCIINIT | ( | pcn | ) |
Definition at line 640 of file bus_pci.cc.
References fatal(), MACHINE_EVBMIPS, machine::machine_type, PCI_CLASS_CODE, PCI_CLASS_NETWORK, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_INTERRUPT_REG, PCI_PRODUCT_AMD_PCNET_PCI, PCI_SUBCLASS_NETWORK_ETHERNET, and PCI_VENDOR_AMD.
PCIINIT | ( | i31244 | ) |
Definition at line 689 of file bus_pci.cc.
References fatal(), MACHINE_IQ80321, machine::machine_type, PCI_CLASS_CODE, PCI_CLASS_MASS_STORAGE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_INTERRUPT_REG, PCI_PRODUCT_INTEL_31244, PCI_SUBCLASS_MASS_STORAGE_IDE, and PCI_VENDOR_INTEL.
PCIINIT | ( | piix3_isa | ) |
Definition at line 742 of file bus_pci.cc.
References PCI_BHLC_CODE, PCI_BHLC_REG, PCI_CLASS_BRIDGE, PCI_CLASS_CODE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_INTEL_82371SB_ISA, PCI_SUBCLASS_BRIDGE_ISA, and PCI_VENDOR_INTEL.
PCIINIT | ( | piix4_isa | ) |
Definition at line 754 of file bus_pci.cc.
References PCI_BHLC_CODE, PCI_BHLC_REG, PCI_CLASS_BRIDGE, PCI_CLASS_CODE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_INTEL_82371AB_ISA, PCI_SUBCLASS_BRIDGE_ISA, PCI_VENDOR_INTEL, and piix_isa_cfg_reg_write().
PCIINIT | ( | i82378zb | ) |
Definition at line 768 of file bus_pci.cc.
References PCI_BHLC_CODE, PCI_BHLC_REG, PCI_CLASS_BRIDGE, PCI_CLASS_CODE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_INTEL_SIO, PCI_SUBCLASS_BRIDGE_ISA, and PCI_VENDOR_INTEL.
PCIINIT | ( | piix3_ide | ) |
Definition at line 819 of file bus_pci.cc.
References CHECK_ALLOCATION, device_add(), diskimage_exist(), DISKIMAGE_IDE, PCI_CLASS_CODE, PCI_CLASS_MASS_STORAGE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_INTEL_82371SB_IDE, PCI_SUBCLASS_MASS_STORAGE_IDE, PCI_VENDOR_INTEL, and piix_ide_cfg_reg_write().
PCIINIT | ( | piix4_ide | ) |
Definition at line 859 of file bus_pci.cc.
References CHECK_ALLOCATION, device_add(), diskimage_exist(), DISKIMAGE_IDE, PCI_CLASS_CODE, PCI_CLASS_MASS_STORAGE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_INTEL_82371AB_IDE, PCI_SUBCLASS_MASS_STORAGE_IDE, PCI_VENDOR_INTEL, and piix_ide_cfg_reg_write().
PCIINIT | ( | ibm_isa | ) |
Definition at line 913 of file bus_pci.cc.
References PCI_BHLC_CODE, PCI_BHLC_REG, PCI_CLASS_BRIDGE, PCI_CLASS_CODE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_IBM_ISABRIDGE, PCI_SUBCLASS_BRIDGE_ISA, and PCI_VENDOR_IBM.
PCIINIT | ( | heuricon_pmppc | ) |
Definition at line 934 of file bus_pci.cc.
References PCI_BHLC_CODE, PCI_BHLC_REG, PCI_CLASS_BRIDGE, PCI_CLASS_CODE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_HEURICON_PMPPC, PCI_SUBCLASS_BRIDGE_HOST, and PCI_VENDOR_HEURICON.
PCIINIT | ( | vt82c586_isa | ) |
Definition at line 963 of file bus_pci.cc.
References COBALT_PCIB_BOARD_ID_REG, COBALT_QUBE2_ID, MACHINE_COBALT, machine::machine_type, PCI_BHLC_CODE, PCI_BHLC_REG, PCI_CLASS_BRIDGE, PCI_CLASS_CODE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_VIATECH_VT82C586_ISA, PCI_SUBCLASS_BRIDGE_ISA, and PCI_VENDOR_VIATECH.
PCIINIT | ( | vt82c586_ide | ) |
Definition at line 1011 of file bus_pci.cc.
References CHECK_ALLOCATION, device_add(), diskimage_exist(), DISKIMAGE_IDE, PCI_CLASS_CODE, PCI_CLASS_MASS_STORAGE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_VIATECH_VT82C586_IDE, PCI_SUBCLASS_MASS_STORAGE_IDE, PCI_VENDOR_VIATECH, and vt82c586_ide_cfg_reg_write().
PCIINIT | ( | symphony_83c553 | ) |
Definition at line 1062 of file bus_pci.cc.
References bus_isa_init(), fatal(), MACHINE_NETWINDER, machine::machine_type, PCI_BHLC_CODE, PCI_BHLC_REG, PCI_CLASS_BRIDGE, PCI_CLASS_CODE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_SYMPHONY_83C553, PCI_SUBCLASS_BRIDGE_ISA, and PCI_VENDOR_SYMPHONY.
PCIINIT | ( | symphony_82c105 | ) |
Definition at line 1121 of file bus_pci.cc.
References CHECK_ALLOCATION, device_add(), diskimage_exist(), DISKIMAGE_IDE, PCI_CLASS_CODE, PCI_CLASS_MASS_STORAGE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_SYMPHONY_82C105, PCI_SUBCLASS_MASS_STORAGE_IDE, PCI_VENDOR_SYMPHONY, and symphony_82c105_cfg_reg_write().
PCIINIT | ( | rtl8139c | ) |
Definition at line 1174 of file bus_pci.cc.
References fatal(), MACHINE_LANDISK, machine::machine_type, PCI_CLASS_CODE, PCI_CLASS_NETWORK, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_INTERRUPT_REG, PCI_PRODUCT_REALTEK_RT8139, PCI_SUBCLASS_NETWORK_ETHERNET, and PCI_VENDOR_REALTEK.
PCIINIT | ( | dec21143 | ) |
Definition at line 1219 of file bus_pci.cc.
References CPC_IB_EXT1, MACHINE_CATS, MACHINE_COBALT, MACHINE_MACPPC, MACHINE_MVMEPPC, MACHINE_PMPPC, MACHINE_PREP, machine::machine_type, PCI_BHLC_CODE, PCI_BHLC_REG, PCI_CLASS_CODE, PCI_CLASS_NETWORK, PCI_CLASS_REG, PCI_COMMAND_STATUS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_INTERRUPT_REG, PCI_PRODUCT_DEC_21142, PCI_SUBCLASS_NETWORK_ETHERNET, and PCI_VENDOR_DEC.
PCIINIT | ( | dec21030 | ) |
Definition at line 1295 of file bus_pci.cc.
References device_add(), fatal(), MACHINE_ARC, machine::machine_type, PCI_BHLC_REG, PCI_CLASS_CODE, PCI_CLASS_DISPLAY, PCI_CLASS_REG, PCI_COMMAND_STATUS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_INTERRUPT_REG, PCI_PRODUCT_DEC_21030, PCI_SUBCLASS_DISPLAY_VGA, and PCI_VENDOR_DEC.
PCIINIT | ( | eagle | ) |
Definition at line 1351 of file bus_pci.cc.
References PCI_BHLC_CODE, PCI_BHLC_REG, PCI_CLASS_BRIDGE, PCI_CLASS_CODE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_MOT_MPC105, PCI_SUBCLASS_BRIDGE_HOST, and PCI_VENDOR_MOT.
PCIINIT | ( | gc_obio | ) |
Definition at line 1376 of file bus_pci.cc.
References PCI_BHLC_CODE, PCI_BHLC_REG, PCI_CLASS_CODE, PCI_CLASS_REG, PCI_CLASS_SYSTEM, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_APPLE_GC, PCI_SUBCLASS_SYSTEM_PIC, and PCI_VENDOR_APPLE.
PCIINIT | ( | uninorth | ) |
Definition at line 1394 of file bus_pci.cc.
References PCI_BHLC_CODE, PCI_BHLC_REG, PCI_CLASS_BRIDGE, PCI_CLASS_CODE, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_APPLE_UNINORTH1, PCI_SUBCLASS_BRIDGE_HOST, and PCI_VENDOR_APPLE.
PCIINIT | ( | ati_radeon_9200_2 | ) |
Definition at line 1420 of file bus_pci.cc.
References PCI_CLASS_CODE, PCI_CLASS_DISPLAY, PCI_CLASS_REG, PCI_ID_CODE, PCI_ID_REG, PCI_PRODUCT_ATI_RADEON_9200_2, PCI_SUBCLASS_DISPLAY_VGA, and PCI_VENDOR_ATI.
int piix_ide_cfg_reg_write | ( | struct pci_device * | pd, |
int | reg, | ||
uint32_t | value | ||
) |
Definition at line 790 of file bus_pci.cc.
References PCI_COMMAND_IO_ENABLE, PCI_COMMAND_STATUS_REG, PCI_MAPREG_START, piix_ide_extra::wdc0, piix_ide_extra::wdc1, and wdc_set_io_enabled().
Referenced by PCIINIT().
int piix_isa_cfg_reg_write | ( | struct pci_device * | pd, |
int | reg, | ||
uint32_t | value | ||
) |
int symphony_82c105_cfg_reg_write | ( | struct pci_device * | pd, |
int | reg, | ||
uint32_t | value | ||
) |
Definition at line 1088 of file bus_pci.cc.
References PCI_COMMAND_IO_ENABLE, PCI_COMMAND_STATUS_REG, PCI_MAPREG_START, piix_ide_extra::wdc0, piix_ide_extra::wdc1, and wdc_set_io_enabled().
Referenced by PCIINIT().
int vt82c586_ide_cfg_reg_write | ( | struct pci_device * | pd, |
int | reg, | ||
uint32_t | value | ||
) |
Definition at line 991 of file bus_pci.cc.
References PCI_COMMAND_IO_ENABLE, PCI_COMMAND_STATUS_REG, piix_ide_extra::wdc0, piix_ide_extra::wdc1, and wdc_set_io_enabled().
Referenced by PCIINIT().