56 MIL-STD-1553 Reference Manual
Chapter 2 - Library Administration and Initialization Functions
2.2.4 AiPciGetHeader
Prototype:
TY_PCI_INFO* AiPciGetHeader( AiUInt32 ulModuleIndex );
Driver Command:
None
Purpose:
This commands returns the PCI header of a board, which can be used to call
AiVme1553MapModule().
Before calling this command, AiPciScan() has to be called first.
Note: this function is not supported for all boards. Please see Table B-III – Function
Support By Boards With ASP for details
I
I
n
n
p
p
u
u
t
t
A
A
i
i
U
U
I
I
n
n
t
t
3
3
2
2
u
u
l
l
M
M
o
o
d
d
u
u
l
l
e
e
I
I
n
n
d
d
e
e
x
x
This is an index to the PCI module, from which the PCI header shall be returned.
An index of zero returns the first board that was found.
None
Return Value
T
T
h
h
e
e
P
P
C
C
I
I
h
h
e
e
a
a
d
d
e
e
r
r
o
o
f
f
t
t
h
h
e
e
b
b
o
o
a
a
r
r
d
d
i
i
d
d
e
e
n
n
t
t
i
i
f
f
i
i
e
e
d
d
b
b
y
y
t
t
h
h
e
e
u
u
l
l
M
M
o
o
d
d
u
u
l
l
e
e
I
I
n
n
d
d
e
e
x
x
.
.
typedef struct {
TY_PCI_CONFIGSPACE_HEADER x_PCIConfHd;
TY_PCI_BAR_INFO x_PCIBarInfo[6];
AiUInt32 ul_PCITotalMemorySize;
AiUInt32 ul_PCIStartAddress;
AiUInt32 ul_A16Address;
AiUInt8 uc_VmeHandleCount;
AiUInt busNo;
AiUInt8 deviceNo;
AiUInt8 funcNo;
} TY_PCI_INFO;