PC104开发板上有Intel 82551ER的双网卡(qnx 6.4.0下)
#pci -v
Class = Network (Ethernet)
Vendor ID = 8086h, Intel Corporation
Device ID = 1209h, 8255xER/82551IT Fast Ethernet Controller
PCI index = 0h
Class Codes = 020000h
Revision ID = 10h
Bus number = 0
Device number = 16
Function num = 0
Status Reg = 290h
Command Reg = 7h
Header type = 0h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 40h
Cache Line Size= 8h un-cacheable
PCI Mem Address = e2040000h 32bit length 4096 enabled
PCI IO Address = e000h length 64 enabled
PCI Mem Address = e2020000h 32bit length 131072 enabled
PCI Expansion ROM = e0000000h length 65536 disabled
Max Lat = 56ns
Min Gnt = 8ns
PCI Int Pin = INT A
Interrupt line = 10
CPU Interrupt = ah
Capabilities Pointer = dch
Capability ID = 1h - Power Management
Capabilities = 7e22h - 4b004000h
Class = Network (Ethernet)
Vendor ID = 8086h, Intel Corporation
Device ID = 1209h, 8255xER/82551IT Fast Ethernet Controller
PCI index = 1h
Class Codes = 020000h
Revision ID = 10h
Bus number = 0
Device number = 17
Function num = 0
Status Reg = 290h
Command Reg = 7h
Header type = 0h Single-function
BIST = 0h Build-in-self-test not supported
Latency Timer = 40h
Cache Line Size= 8h un-cacheable
PCI Mem Address = e2041000h 32bit length 4096 enabled
PCI IO Address = e400h length 64 enabled
PCI Mem Address = e2000000h 32bit length 131072 enabled
PCI Expansion ROM = e1000000h length 65536 disabled
Max Lat = 56ns
Min Gnt = 8ns
PCI Int Pin = INT A
Interrupt line = 12
CPU Interrupt = ch
Capabilities Pointer = dch
Capability ID = 1h - Power Management
Capabilities = 7e22h - 4b004000h
在buildfile里是这么处理的
display_msg Starting Ethernet A&B driver …
io-pkt-v4-hc -d speedo verbose -p tcpip &
waitfor /dev/socket 20
ifconfig en0 192.168.1.127
ifconfig en1 192.168.2.127
这种情况下把Device number=16的映射成了en0, Device number=17的映射成了en1;
如果我想把Device number=17的映射成了en0, Device number=16的映射成了en1该如何处理呢?