
VxWorks
BSP Developer’s Guide, 6.0
96
bar0 in 32-bit mem space @ 0x80002000
[0,18,0] type=P2P BRIDGE to [1,0,0]
base/limit:
mem= 0x80100000/0x800fffff
preMem=0x0000000090000000/0x000000008fffffff
I/O= 0x00000000/0x00000fff
status=0x02b0 ( CAP 66MHZ FBTB DEVSEL=1 )
command=0x0007 ( IO_ENABLE MEM_ENABLE MASTER_ENABLE )
value = 0 = 0x0
->
This example uses a wrPpmc440gp board and BSP, with a USB adapter plugged
into a PCI slot. The host bridge, [0,0,0] is shown twice. This is intentional. The USB
2.0 card contains three devices, all listed as serial devices. The board also contains
a bridge at [0,18,0], connecting to bus 1.
pciDeviceShow( )
The pciDeviceShow( ) routine displays concise information about all of the
function zero devices on a given bus. No attempt is made to convert vendor ID,
device ID, or class into readable format.
The following example, using the same hardware as the previous example, shows
that there are three devices on bus 0 and none on bus 1.
-> pciDeviceShow (0)
Scanning function 0 of each PCI device on bus 0 Using configuration mechanism
0
bus device function vendorID deviceID class
00000000 00000000 00000000 00001014 000001ef 00068000
00000000 00000010 00000000 00001033 00000035 000c0310
00000000 00000012 00000000 00008086 0000b154 00060400
value = 0 = 0x0
-> pciDeviceShow (1)
Scanning function 0 of each PCI device on bus 1 Using configuration mechanism
0
bus device function vendorID deviceID class
value = 0 = 0x0
->
Note that pciDeviceShow( ) only displays information about devices configured
as function 0. In this example, the second and third devices on the USB adapter do
not show up because they are at function 1 and function 2.
pciHeaderShow( )
The pciHeaderShow( ) routine displays the full PCI configuration space header for
the device at the specified [bus, device, function] tuple. The routine understands
both bridged and non-bridged devices.
Comentarios a estos manuales