libhd
5.0
|
#include "v86bios.h"
Go to the source code of this file.
#define BRIDGE_CLASS | ( | x | ) | (x == 0x06) |
Referenced by interpretConfigSpace().
#define BRIDGE_HOST_CLASS | ( | x | ) | (x == 0x00) |
Referenced by interpretConfigSpace().
#define BRIDGE_PCI_CLASS | ( | x | ) | (x == 0x04) |
Referenced by interpretConfigSpace().
#define IS_MEM32 | ( | x | ) | ((x & 0x7) == 0 && x != 0) |
Referenced by interpretConfigSpace().
#define IS_MEM64 | ( | x | ) | ((x & 0x7) == 0x4) |
Referenced by interpretConfigSpace().
#define MAX_DEV_PER_VENDOR_CFG1 32 |
Referenced by scan_pci().
#define MAX_PCI_DEVICES 64 |
Referenced by scan_pci().
#define MAX_PCI_ROM_SIZE (1024 * 1024 * 16) |
#define PCI_CLASS_DISPLAY 0x03 |
#define PCI_CLASS_PREHISTORIC 0x00 |
#define PCI_EN 0x80000000 |
#define PCI_IS_MEM 0x00000001 |
#define PCI_MAXBUS 16 |
Referenced by scan_pci().
#define PCI_MODE1_ADDRESS_REG 0xCF8 |
Referenced by checkSlotCfg1(), readConfigSpaceCfg1(), readPciCfg1(), scan_pci(), and writePciCfg1().
#define PCI_MODE1_DATA_REG 0xCFC |
Referenced by checkSlotCfg1(), readConfigSpaceCfg1(), readPciCfg1(), and writePciCfg1().
#define PCI_MODE2_ENABLE_REG 0xCF8 |
Referenced by checkSlotCfg2(), readConfigSpaceCfg2(), readPciCfg2(), scan_pci(), and writePciCfg2().
#define PCI_MODE2_FORWARD_REG 0xCFA |
Referenced by checkSlotCfg2(), readConfigSpaceCfg2(), readPciCfg2(), scan_pci(), and writePciCfg2().
#define PCI_MULTIFUNC_DEV 0x80 |
Referenced by interpretConfigSpace().
#define PCI_SUBCLASS_DISPLAY_MISC 0x80 |
#define PCI_SUBCLASS_DISPLAY_VGA 0x00 |
#define PCI_SUBCLASS_DISPLAY_XGA 0x01 |
#define PCI_SUBCLASS_PREHISTORIC_VGA 0x01 |
#define VIDEO_CLASS | ( | b, | |
s | |||
) |
(((b) == PCI_CLASS_PREHISTORIC && (s) == PCI_SUBCLASS_PREHISTORIC_VGA) || \ ((b) == PCI_CLASS_DISPLAY && (s) == PCI_SUBCLASS_DISPLAY_VGA) ||\ ((b) == PCI_CLASS_DISPLAY && (s) == PCI_SUBCLASS_DISPLAY_XGA) ||\ ((b) == PCI_CLASS_DISPLAY && (s) == PCI_SUBCLASS_DISPLAY_MISC))
Referenced by interpretConfigSpace().
typedef struct pciStructRec * PciStructPtr |
typedef struct pciStructRec PciStructRec |
References PciCfg1Addr, and readPci.
void EnableCurrent | ( | void | ) |
References PciSlot::l, pciBusRec::next, pciStructRec::next, pciStructRec::pBus, PCI_EN, PciStruct, pciBusRec::Slot, and pciStructRec::Slot.
Referenced by int1A_handler().
PciStructPtr findPciByIDs | ( | int | bus, |
int | dev, | ||
int | func | ||
) |
References pciStructRec::bus, pciStructRec::dev, pciStructRec::func, pciStructRec::next, and PciList.
PciStructPtr findPciClass | ( | CARD8 | intf, |
CARD8 | subClass, | ||
CARD16 | class, | ||
char | n | ||
) |
References pciStructRec::BaseClass, CurrentPci, pciStructRec::Interface, pciStructRec::next, and pciStructRec::SubClass.
PciStructPtr findPciDevice | ( | CARD16 | vendorID, |
CARD16 | deviceID, | ||
char | n | ||
) |
References CurrentPci, pciStructRec::DeviceID, pciStructRec::next, and pciStructRec::VendorID.
int mapPciRom | ( | PciStructPtr | pciP | ) |
References CurrentPci, findBIOSMap(), FIX_ROM, PciSlot::l, MEM_FILE, PciRead32(), PciWrite32(), restoreMem(), pciStructRec::RomBase, pciStructRec::Slot, and writePci.
References readPci.
Referenced by int1A_handler().
References readPci.
Referenced by findBIOSMap(), int1A_handler(), mapPciRom(), and remapMem().
References readPci.
Referenced by int1A_handler().
References PciSlot::l, and pciStructRec::Slot.
Referenced by int1A_handler().
void pciVideoDisable | ( | void | ) |
References pciBusRec::bctl, pciStructRec::cmd_st, PciSlot::l, pciBusRec::next, pciStructRec::next, PciBuses, PciStruct, pciStructRec::RomBase, pciBusRec::Slot, pciStructRec::Slot, and writePci.
Referenced by EnableCurrent().
void pciVideoRestore | ( | void | ) |
void PciWrite16 | ( | int | offset, |
CARD16 | word, | ||
CARD32 | slot | ||
) |
References readPci, val, and writePci.
Referenced by int1A_handler().
void PciWrite32 | ( | int | offset, |
CARD32 | lg, | ||
CARD32 | slot | ||
) |
References writePci.
Referenced by findBIOSMap(), int1A_handler(), mapPciRom(), remapMem(), and restoreMem().
References readPci, val, and writePci.
Referenced by int1A_handler().
References pciStructRec::bus, checkSlotCfg1(), checkSlotCfg2(), interpretConfigSpace(), MAX_DEV_PER_VENDOR_CFG1, MAX_PCI_DEVICES, pciBusRec::next, pciStructRec::next, pciBusRec::pBus, pciStructRec::pBus, PCI_EN, PCI_MAXBUS, PCI_MODE1_ADDRESS_REG, PCI_MODE2_ENABLE_REG, PCI_MODE2_FORWARD_REG, PciBuses, pciMaxBus, PciStruct, pciBusRec::primary, readConfigSpaceCfg1(), readConfigSpaceCfg2(), readPci, readPciCfg2(), RESORT, pciBusRec::secondary, writePci, and writePciCfg2().
Referenced by InitInt10().
Referenced by EnableCurrent(), findPciClass(), findPciDevice(), InitInt10(), int1A_handler(), and mapPciRom().
Referenced by findPciByIDs().
int pciMaxBus |
Referenced by int1A_handler(), and scan_pci().