PCIDeviceInfo

Declaration

typedef struct {
    ulong               dwSize;
    PCIslot             slot;
    ulong               mech1;
    ushort              VendorID;
    ushort              DeviceID;
    ushort              Command;
    ushort              Status;
    uchar               RevID;
    uchar               Interface;
    uchar               SubClass;
    uchar               BaseClass;
    uchar               CacheLineSize;
    uchar               LatencyTimer;
    uchar               HeaderType;
    uchar               BIST;
    union {
        PCIType0Info    type0;
        PCIType1Info    type1;
        PCIType2Info    type2;
        } u;
    } PCIDeviceInfo

Prototype In

pcilib.h

Description

Structure defining the PCI configuration space information for a single PCI device on the PCI bus. We enumerate all this information for all PCI devices on the bus.

Note:    The dwSize member is intended for future compatibility, and should be set to the size of the structure as defined in this header file. Future drivers will be compatible with older software by examiming this value.

Members

dwSize

Set to size of structure in bytes

slot

PCI slot identifier for this device

mech1

True if we enumerated this bus using PCI access mechanism 1

VendorID

Unique PCI device Vendor ID value

DeviceID

Unique PCI device Device ID value

Command

Device command register used to control the device (PCICommandFlags)

Status

Device status register flags (PCIStatusFlags)

RevID

Device revision ID value

Interface

Device interface type value

SubClass

Device Sub Class field

BaseClass

Device Base Class field

CacheLineSize

Cache line size for the device

LatencyTimer

Latency timer value

HeaderType

Header type field, defining type of info (PCIHeaderTypeFlags)

BIST

BIST value

type0

Union to access PCI type 0 specific information

type1

Union to access PCI type 1 specific information

type2

Union to access PCI type 2 specific information

 

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com