Reagrding BAR problem in PCI config space

Hi ,
I am resending following mail.
Kindly help me out.

Hello all,

I am writing PCI device driver which is having PORT type resources and with
two BARs.
In my program, i am getting two values which are correct but only problem is
instead of BAR0 & BAR1,
i am getting vaues in BAR0 & BAR2 .BAR1 as zero.
What might be the problem ?

Regards,
Anil

Hi Anil,

from your input what i understand is u may need to consult your h/w engrs regarding how the Local Config Space is mapped…

BAR 0 you would get if the Local Config space is a memory access
it would be BAR 1 if Local config space is an I/O access…

and any other device could have been mapped to BAR 2…

so I think, Local Config space is memory mapped access in your case and BAR 2 has got some other device…
that’s why u get BAR 0 and BAR 2

so at no way u will get BAR 0 as well as BAR 1…since u cannot map a register I/o as well as memory mapped…

so consult your hardware engr / and look at the EEPROM contents in your pci card about the loaded datas

regards,

shiv
----- Original Message -----
From: Anil
To: NT Developers Interest List
Sent: Monday, September 30, 2002 3:36 PM
Subject: [ntdev] Reagrding BAR problem in PCI config space

Hi ,
I am resending following mail.
Kindly help me out.

Hello all,

I am writing PCI device driver which is having PORT type resources and with two BARs.
In my program, i am getting two values which are correct but only problem is instead of BAR0 & BAR1,
i am getting vaues in BAR0 & BAR2 .BAR1 as zero.
What might be the problem ?

Regards,
Anil

You are currently subscribed to ntdev as: xxxxx@rassit.com
To unsubscribe send a blank email to %%email.unsub%%