This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: i82559_reset quaries !!


> "mohanlal jangir" <mohanlaljangir@hotmail.com> writes:
>
> > I have been working with ARM Integrator/AP board with ARM920t core
module. I
> > have some queries regarding fucntion i82559_reset.
> >
> > 1. This is one sorce line from above function
> >      cyg_uint32 ioaddr = p_i82559->io_address;
> > My question is what should variable ioaddr have? I think it should have
PCI
> > address if p_i82559 is properly initialised but I am getting 0. Any idea
> > why?
>
>
> The io_address is derived from the device's PCI configuration. It
> looks like something is not working right there. Try running the pci1
> test program and see what it says for the i82559.
>
> All your other problems are almost certainly a consequence of this
> initial problem.
>

I have run pci1 and pci2 test programs and both are working fine. Although I
receive message "Note that board is active. Probed sizes and CPU addresses
invalid!" two times. What does this signify? Also while executing these test
cases, it taks long time after line "Init device 'i82559_eth0'" is printed.
This is place where eCos tries to read/write some data to device and device
gets timed out. The output of this test progrmas is very long and I am
dumping at the end of mail.
Another thing I wanted to ask is about flag ENABLE_PCI_DEVICES. There is
some code under #ifdef ENABLE_PCI_DEVICES in pci1.c but that is not
executed. I think this should not happen. Any comment? Where should I see in
configtool to enable this flag, if I need to enable this. I did not find it
in "PCI configuration library".


OUTPUT OF TEST PCI1
[cyg_net_init] Init: mbinit(0x00000000)
[cyg_net_init] Init: cyg_net_init_devs(0x00000000)
Init device 'i82559_eth0'
[cyg_net_init] Init: loopattach(0x00000000)
[cyg_net_init] Init: ifinit(0x00000000)
IFP: 0x00128f80, next: 0x00000000
[cyg_net_init] Init: domaininit(0x00000000)
[cyg_net_init] Init: cyg_net_add_domain(0x000bd9ec)
New domain internet6 at 0x00000000
[cyg_net_init] Init: cyg_net_add_domain(0x000bdc70)
New domain internet at 0x00000000
[cyg_net_init] Init: cyg_net_add_domain(0x000bd558)
New domain route at 0x00000000
[cyg_net_init] Init: cyg_route_init(0x00000000)
[cyg_net_init] Done
========== Finding and configuring devices
Found device on bus 0, devfn 0x48:
 Device configuration succeeded
 Vendor    0x1011 [DEC][Digital Equipment Corporation]
 Device    0x0024 [DC21151/2][PCI-PCI Bridge]
 Command   0x0000, Status 0x0290
 Class/Rev 0x06040003 [Bridge Device][PCI/PCI][]
 Header 0x01
 SubVendor 0x0101, Sub ID 0x0280
 BAR[0]    0x00000000 / probed size 0x00000000 / CPU addr 0xffffffff
 BAR[1]    0x00000000 / probed size 0x00000000 / CPU addr 0x00000000
 BAR[2]    0x00000000 / probed size 0x00000000 / CPU addr 0x00000000
 BAR[3]    0x00000000 / probed size 0x00000000 / CPU addr 0x00000000
 BAR[4]    0x00000000 / probed size 0x00000000 / CPU addr 0x00000000
 BAR[5]    0x00000000 / probed size 0x00000000 / CPU addr 0x00000000
 Wired to HAL vector 13
Found device on bus 0, devfn 0x60:
 Note that board is active. Probed sizes and CPU addresses invalid!
 Device configuration succeeded
 Vendor    0x8086 [Intel][Intel Corporation]
 Device    0x1229 [82557/8/9][Fast Ethernet LAN Controller]
 Command   0x0007, Status 0x2290
 Class/Rev 0x0200000c [Network Controller][Ethernet][]
 Header 0x00
 SubVendor 0x8086, Sub ID 0x0040
 BAR[0]    0x00000000 / probed size 0x00000000 / CPU addr 0xffffffff
 BAR[1]    0x00004001 / probed size 0x00000000 / CPU addr 0x00000000
 BAR[2]    0x00020000 / probed size 0x00000000 / CPU addr 0x00000000
 BAR[3]    0x00000000 / probed size 0x00000000 / CPU addr 0x00000000
 BAR[4]    0x00000000 / probed size 0x00000000 / CPU addr 0x00000000
 BAR[5]    0x00000000 / probed size 0x00000000 / CPU addr 0x00000000
 Wired to HAL vector 16

Strings in [] are from the PCI Code List at http://www.yourvote.com/pci
========== Scanning initialized devices
Found device on bus 0, devfn 0x48:
 Vendor    0x1011 [DEC][Digital Equipment Corporation]
 Device    0x0024 [DC21151/2][PCI-PCI Bridge]
 Command   0x0000, Status 0x0290
 Class/Rev 0x06040003 [Bridge Device][PCI/PCI][]
 Header 0x01
 SubVendor 0x0101, Sub ID 0x0280
 BAR[0]    0x00000000 / probed size 0x00000000 / CPU addr 0xffffffff
 BAR[1]    0x00000000 / probed size 0xaaaaaaaa / CPU addr 0xaaaaaaaa
 BAR[2]    0xaaaaaaaa / probed size 0xaaaaaaaa / CPU addr 0xaaaaaaaa
 BAR[3]    0xaaaaaaaa / probed size 0xaaaaaaaa / CPU addr 0xaaaaaaaa
 BAR[4]    0xaaaaaaaa / probed size 0xaaaaaaaa / CPU addr 0xaaaaaaaa
 BAR[5]    0xaaaaaaaa / probed size 0xaaaaaaaa / CPU addr 0xaaaaaaaa
 Wired to HAL vector 13
Found device on bus 0, devfn 0x60:
 Note that board is active. Probed sizes and CPU addresses invalid!
 Vendor    0x8086 [Intel][Intel Corporation]
 Device    0x1229 [82557/8/9][Fast Ethernet LAN Controller]
 Command   0x0007, Status 0x2290
 Class/Rev 0x0200000c [Network Controller][Ethernet][]
 Header 0x00
 SubVendor 0x8086, Sub ID 0x0040
 BAR[0]    0x00000000 / probed size 0x00000000 / CPU addr 0xaaaaaaaa
 BAR[1]    0x00004001 / probed size 0xaaaaaaaa / CPU addr 0xaaaaaaaa
 BAR[2]    0x00020000 / probed size 0xaaaaaaaa / CPU addr 0xaaaaaaaa
 BAR[3]    0x00000000 / probed size 0xaaaaaaaa / CPU addr 0xaaaaaaaa
 BAR[4]    0x00000000 / probed size 0xaaaaaaaa / CPU addr 0xaaaaaaaa
 BAR[5]    0x00000000 / probed size 0xaaaaaaaa / CPU addr 0xaaaaaaaa
 Wired to HAL vector 16
PASS:<pci1 test OK>
EXIT:<done>



OUTPUT OF TEST PCI2
[cyg_net_init] Init: mbinit(0x00000000)
[cyg_net_init] Init: cyg_net_init_devs(0x00000000)
Init device 'i82559_eth0'
[cyg_net_init] Init: loopattach(0x00000000)
[cyg_net_init] Init: ifinit(0x00000000)
IFP: 0x00108ae0, next: 0x00000000
[cyg_net_init] Init: domaininit(0x00000000)
[cyg_net_init] Init: cyg_net_add_domain(0x0009d540)
New domain internet6 at 0x00000000
[cyg_net_init] Init: cyg_net_add_domain(0x0009d7c4)
New domain internet at 0x00000000
[cyg_net_init] Init: cyg_net_add_domain(0x0009d0ac)
New domain route at 0x00000000
[cyg_net_init] Init: cyg_route_init(0x00000000)
[cyg_net_init] Done
PASS:<pci2 test OK>
EXIT:<done>




-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]