| Home
| Previous
| Next
| Up

PCIslot

Declaration

typedef union {
struct {
uint Zero:2;
uint Register:6;
uint Function:3;
uint Device:5;
uint Bus:8;
uint Reserved:7;
uint Enable:1;
} p;
ulong i;
} PCIslot

Prototype In

pcilib.h

Description

Structure defining a PCI slot identifier.

Note: We define all bitfield's as uint's, specifically so that the IBM Visual Age C++ compiler does not complain. We need them to be 32-bits wide, and this is the width of an unsigned integer, but we can't use a ulong to make this explicit or we get errors.

Members

Zero | Always set to zero
Register | Field containing the PCI register index
Function | Field containing the PCI function index
Device | Field containing the PCI device index
Bus | Field containing the PCI bus index
Reserved | Reserved (always 0)
Enable | Enable bit to enable this slot
i | Union field to access as a 32-bit integer

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