#include "v86bios.h"
Go to the source code of this file.
#define BRIDGE_CLASS | ( | x | ) | (x == 0x06) |
#define BRIDGE_HOST_CLASS | ( | x | ) | (x == 0x00) |
#define BRIDGE_PCI_CLASS | ( | x | ) | (x == 0x04) |
#define IS_MEM32 | ( | x | ) | ((x & 0x7) == 0 && x != 0) |
#define IS_MEM64 | ( | x | ) | ((x & 0x7) == 0x4) |
#define MAX_DEV_PER_VENDOR_CFG1 32 |
#define MAX_PCI_DEVICES 64 |
#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 |
#define PCI_MODE1_ADDRESS_REG 0xCF8 |
#define PCI_MODE1_DATA_REG 0xCFC |
#define PCI_MODE2_ENABLE_REG 0xCF8 |
#define PCI_MODE2_FORWARD_REG 0xCFA |
#define PCI_MULTIFUNC_DEV 0x80 |
#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 | ) |
Value:
(((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))
typedef struct pciStructRec * PciStructPtr |
typedef struct pciStructRec PciStructRec |
void EnableCurrent | ( | void | ) |
PciStructPtr findPciByIDs | ( | int | bus, | |
int | dev, | |||
int | func | |||
) |
PciStructPtr findPciClass | ( | CARD8 | intf, | |
CARD8 | subClass, | |||
CARD16 | class, | |||
char | n | |||
) |
PciStructPtr findPciDevice | ( | CARD16 | vendorID, | |
CARD16 | deviceID, | |||
char | n | |||
) |
void list_pci | ( | void | ) |
int mapPciRom | ( | PciStructPtr | pciP | ) |
CARD16 pciSlotBX | ( | PciStructPtr | ) |
void pciVideoDisable | ( | void | ) |
void pciVideoRestore | ( | void | ) |
void scan_pci | ( | int | ) |
int pciMaxBus |