PCI Help please

I’m developing an WinNT PCI driver for a custom PCI board and I get stucked in HalAssignSlotResources call.
It always returns STATUS_CONFLICTING_ADDRESSES status. I tried with IoAssignResources
and similar problems occured (normally isn’t it?!). As I’m not very experinced with PCI bus
architectures, BIOS and so on, I would be gratefull if you can give some ideas about how PCI bus, BIOS and NT
works together. Who is in charge with allocating device resources (ports, I/O memory and intterupt) and
who can change them. And finaly, what should I do to replace HalAssignSlotResources or how (and where) can I find
the resources for my board.

References, books or web-sites documentation are also welcome.

Thanks,
Daniel


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi, daniel,
First let me know the devices plug into u r system. and do one check
first, using PCIView tool u notedown all the devices base addresses OK.
and run WinMsd tool and check the resources place what are the devices
allready using the spaces, if any other device allredy using those
places u can verify that and remove that card and try it.

but generally the PCI bus case won’t give this type of problem.those
addresses will map dyanmically.

try this and give some more info… we will do our best.

bye

Daniel Pop wrote:

I’m developing an WinNT PCI driver for a custom PCI board and I get
stucked in HalAssignSlotResources call.It always returns
STATUS_CONFLICTING_ADDRESSES status. I tried with IoAssignResourcesand
similar problems occured (normally isn’t it?!). As I’m not very
experinced with PCI busarchitectures, BIOS and so on, I would be
gratefull if you can give some ideas about how PCI bus, BIOS and
NTworks together. Who is in charge with allocating device resources
(ports, I/O memory and intterupt) andwho can change them. And finaly,
what should I do to replace HalAssignSlotResources or how (and where)
can I findthe resources for my board. References, books or web-sites
documentation are also welcome. Thanks,Daniel—
You are currently subscribed to ntdev as: xxxxx@teil.soft.net
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Sunil Kumar Sahu.
System Development Group.
TATA ELXSI Ltd.
Whitefield Road, B’lore.
Ph No :- 8410148 /49 /50(ext 256)

******Engineering the Information Revolution******


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi Sunil ,

First let me know the devices plug into u r system. and do one check first, using PCIView tool u notedown all the devices base addresses OK. >and run WinMsd tool and check the resources place what are the devices allready using the spaces, if any other device allredy using those >places u can verify that and remove that card and try it.

The card is pluged in and HalGetBusData returns following values for BARs:

Base Address 0 = 0x0008
Base Address 1= 0xD4400000

WinMsd returns:
Between 0x0000 - 0x000F is PC Compatible Eisa/Isa HAL (type=Internal) (but is another Bus isn’t it?)

but generally the PCI bus case won’t give this type of problem.those addresses will map dyanmically.

I also thought that way… but I really don’t know what’s happening.

Thanks, Daniel


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

From your information, BAR0 looks very bogus.

Mark Roddy
Windows 2000/NT Consultant
Hollis Technology Solutions
xxxxx@hollistech.com
603 321 1032
www.hollistech.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Daniel Pop
Sent: Monday, February 26, 2001 3:56 AM
To: NT Developers Interest List
Subject: [ntdev] Re: PCI Help please

Hi Sunil ,

First let me know the devices plug into u r system. and do one check
first, using PCIView tool u notedown all the devices base addresses OK. >and
run WinMsd tool and check the resources place what are the devices allready
using the spaces, if any other device allredy using those >places u can
verify that and remove that card and try it.

The card is pluged in and HalGetBusData returns following values for
BARs:

Base Address 0 = 0x0008
Base Address 1= 0xD4400000

WinMsd returns:
Between 0x0000 - 0x000F is PC Compatible Eisa/Isa HAL (type=Internal)
(but is another Bus isn’t it?)

but generally the PCI bus case won’t give this type of problem.those
addresses will map dyanmically.

I also thought that way… but I really don’t know what’s happening.

Thanks, Daniel


You are currently subscribed to ntdev as: xxxxx@wattanuck.mv.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

From your information, BAR0 looks very bogus.

Hi ,

And maybe it is bogus, but who’s to blame for that? Is it hardware manufacturer? Is it NT?

Thank you,
Daniel


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi Daniel,

Kindly check your device hardware manual / check with hardware people,
how they configured BAR 0 in the EEPROM.

According to your information

>Base Address 0 = 0x0008>>Base Address 1= 0xD4400000

totally looks impractical. Kindly let me know your machine
configuration. I mean size of the physical memory, no of pci device
sitting on the mother board etc etc…

Thanks!
Rgds,
Sunil.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Daniel
Pop
Sent: Monday, February 26, 2001 3:56 AM
To: NT Developers Interest List
Subject: [ntdev] Re: PCI Help please

Hi Sunil ,
>First let me know the devices plug into u r
system. and do one check first, using PCIView tool
u notedown all the devices base addresses OK. >and
run WinMsd tool and check the resources place what
are the devices allready using the spaces, if any
other device allredy using those >places u can
verify that and remove that card and try it. The
card is pluged in and HalGetBusData returns
following values for BARs: Base Address 0 =
0x0008Base Address 1= 0xD4400000 WinMsd
returns:Between 0x0000 - 0x000F is PC Compatible
Eisa/Isa HAL (type=Internal) (but is another Bus
isn’t it?)>but generally the PCI bus case won’t
give this type of problem.those addresses will map
dyanmically.

I also thought that way… but I really don’t know
what’s happening.

Thanks, Daniel


You are currently subscribed to ntdev as:
xxxxx@wattanuck.mv.com
To unsubscribe send a blank email to
leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@teil.soft.net
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Sunil Kumar Sahu.
System Development Group.
TATA ELXSI Ltd.
Whitefield Road, B’lore.
Ph No :- 8410148 /49 /50(ext 256)

******Engineering the Information Revolution******


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Hi !

Thanx for your advices! My testing computer is:

  • AMD K623d-300MHz
  • Mother-board with sound card on board (but not installed on NT) and with a Via video-card on board too
  • Realtek NE 2000 compatible PCI network card
  • 64MB RAM

No of PCI devices is 3 (on board video card, network card and my device).

The PCI device is composed of:

  • Motorola Power PC 8240 processor (603e core at 200MHz, integrated PCI bridge)
  • 64 MB SDRAM
  • up to 2 MB Flash memory

I can chat with people from hardware dept. but I have to know exaclty what kind of questions to ask. As I
understood from you, the BAR values are read from PCI board’s EPROM? It would very appreciated any
advice from you regarding PCI bus configuration and programming since I’m new in this branch.

Daniel

----- Original Message -----
From: Sunil Kumar Sahu
To: NT Developers Interest List
Sent: Monday, February 26, 2001 5:30 PM
Subject: [ntdev] Re: PCI Help please

Hi Daniel,
Kindly check your device hardware manual / check with hardware people, how they configured BAR 0 in the EEPROM.

According to your information
>>Base Address 0 = 0x0008>>Base Address 1= 0xD4400000

totally looks impractical. Kindly let me know your machine configuration. I mean size of the physical memory, no of pci device sitting on the mother board etc etc…

Thanks!
Rgds,
Sunil.

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com]On Behalf Of Daniel Pop
Sent: Monday, February 26, 2001 3:56 AM
To: NT Developers Interest List
Subject: [ntdev] Re: PCI Help please
Hi Sunil ,
>First let me know the devices plug into u r system. and do one check first, using PCIView tool u notedown all the devices base addresses OK. >and run WinMsd tool and check the resources place what are the devices allready using the spaces, if any other device allredy using those >places u can verify that and remove that card and try it. The card is pluged in and HalGetBusData returns following values for BARs: Base Address 0 = 0x0008Base Address 1= 0xD4400000 WinMsd returns:Between 0x0000 - 0x000F is PC Compatible Eisa/Isa HAL (type=Internal) (but is another Bus isn’t it?)>but generally the PCI bus case won’t give this type of problem.those addresses will map dyanmically.
I also thought that way… but I really don’t know what’s happening.

Thanks, Daniel


You are currently subscribed to ntdev as: xxxxx@wattanuck.mv.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

You are currently subscribed to ntdev as: xxxxx@teil.soft.net
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


Sunil Kumar Sahu.
System Development Group.
TATA ELXSI Ltd.
Whitefield Road, B’lore.
Ph No :- 8410148 /49 /50(ext 256)
******Engineering the Information Revolution******


You are currently subscribed to ntdev as: xxxxx@optsol.ro
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com