Finding Physical Slot Number in NT4

Hi all,

I have written a Kernel-mode device driver for PCI card under Windows NT4. I can get the logical slot number of the card (slotNumber.u.AsULONG). How do i get the slot number as printed next to the slot on the mother board from this logical slot number. I have searched extensively and couldnt find any resource or discussion on this topic.

with regards
ashok

THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE
and may contain confidential and privileged information. If the reader of this message
is not the intended recipient, you are notified that any dissemination, distribution
or copy of this communication is strictly Prohibited.If you have received this message
by error, please notify the sender immediately, return the original mail to the sender
and delete the message from your system.

Open the computer cover, take a very sharp knife and erase erase every single one of those “slot” numbers off of the motherboard … they are as useful as mammary glands on a male pig. The number you get back in slotNumber.u.AsULONG is how the slots are numbered.

Tell your pointy haired boss (it has to be a pointy haired boss asking such a question) this is because the motherboard was silk screened backwards and upside down.


Gary G. Little
Have Computer, will travel …
909-698-3191
909-551-2105
www.wd-3.com
“Ashok Kumar” wrote in message news:xxxxx@ntdev…
Hi all,

I have written a Kernel-mode device driver for PCI card under Windows NT4. I can get the logical slot number of the card (slotNumber.u.AsULONG). How do i get the slot number as printed next to the slot on the mother board from this logical slot number. I have searched extensively and couldnt find any resource or discussion on this topic.

with regards
ashok

THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE
and may contain confidential and privileged information. If the reader of this message
is not the intended recipient, you are notified that any dissemination, distribution
or copy of this communication is strictly Prohibited.If you have received this message
by error, please notify the sender immediately, return the original mail to the sender
and delete the message from your system.

Thanks Gary for the help…I will convey it to my boss…
I was wondering if this could be done in Win2000 using the routine IoGetDeviceProperty with DevicePropertyUINumber as the DeviceProperty parameter.

----- Original Message -----
From: Gary G. Little
Newsgroups: ntdev
To: NT Developers Interest List
Sent: Wednesday, March 12, 2003 12:29 PM
Subject: [ntdev] Re: Finding Physical Slot Number in NT4

Open the computer cover, take a very sharp knife and erase erase every single one of those “slot” numbers off of the motherboard … they are as useful as mammary glands on a male pig. The number you get back in slotNumber.u.AsULONG is how the slots are numbered.

Tell your pointy haired boss (it has to be a pointy haired boss asking such a question) this is because the motherboard was silk screened backwards and upside down.


Gary G. Little
Have Computer, will travel …
909-698-3191
909-551-2105
www.wd-3.com
“Ashok Kumar” wrote in message news:xxxxx@ntdev…
Hi all,

I have written a Kernel-mode device driver for PCI card under Windows NT4. I can get the logical slot number of the card (slotNumber.u.AsULONG). How do i get the slot number as printed next to the slot on the mother board from this logical slot number. I have searched extensively and couldnt find any resource or discussion on this topic.

with regards
ashok

THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE
and may contain confidential and privileged information. If the reader of this message
is not the intended recipient, you are notified that any dissemination, distribution
or copy of this communication is strictly Prohibited.If you have received this message
by error, please notify the sender immediately, return the original mail to the sender
and delete the message from your system.

You are currently subscribed to ntdev as: xxxxx@rassit.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE
and may contain confidential and privileged information. If the reader of this message
is not the intended recipient, you are notified that any dissemination, distribution
or copy of this communication is strictly Prohibited.If you have received this message
by error, please notify the sender immediately, return the original mail to the sender
and delete the message from your system.

THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE
and may contain confidential and privileged information. If the reader of this message
is not the intended recipient, you are notified that any dissemination, distribution
or copy of this communication is strictly Prohibited.If you have received this message
by error, please notify the sender immediately, return the original mail to the sender
and delete the message from your system.

Well I saw a post in another group about the UIN number, so you might try that. But my question is Why bother? You really really don’t even need the slot information since IRP_MN_START_DEVICE gives you the BARS for that device. Slot information is fairly well deprecatred and simply not used in 2000 and above.


Gary G. Little
Have Computer, Will Travel …
909-698-3191
909-551-2105
http://www.wd-3.com
“Ashok Kumar” wrote in message news:xxxxx@ntdev…
Thanks Gary for the help…I will convey it to my boss…
I was wondering if this could be done in Win2000 using the routine IoGetDeviceProperty with DevicePropertyUINumber as the DeviceProperty parameter.

----- Original Message -----
From: Gary G. Little
Newsgroups: ntdev
To: NT Developers Interest List
Sent: Wednesday, March 12, 2003 12:29 PM
Subject: [ntdev] Re: Finding Physical Slot Number in NT4

Open the computer cover, take a very sharp knife and erase erase every single one of those “slot” numbers off of the motherboard … they are as useful as mammary glands on a male pig. The number you get back in slotNumber.u.AsULONG is how the slots are numbered.

Tell your pointy haired boss (it has to be a pointy haired boss asking such a question) this is because the motherboard was silk screened backwards and upside down.


Gary G. Little
Have Computer, will travel …
909-698-3191
909-551-2105
www.wd-3.com
“Ashok Kumar” wrote in message news:xxxxx@ntdev…
Hi all,

I have written a Kernel-mode device driver for PCI card under Windows NT4. I can get the logical slot number of the card (slotNumber.u.AsULONG). How do i get the slot number as printed next to the slot on the mother board from this logical slot number. I have searched extensively and couldnt find any resource or discussion on this topic.

with regards
ashok

THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE
and may contain confidential and privileged information. If the reader of this message
is not the intended recipient, you are notified that any dissemination, distribution
or copy of this communication is strictly Prohibited.If you have received this message
by error, please notify the sender immediately, return the original mail to the sender
and delete the message from your system.

You are currently subscribed to ntdev as: xxxxx@rassit.com
To unsubscribe send a blank email to xxxxx@lists.osr.com
THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE
and may contain confidential and privileged information. If the reader of this message
is not the intended recipient, you are notified that any dissemination, distribution
or copy of this communication is strictly Prohibited.If you have received this message
by error, please notify the sender immediately, return the original mail to the sender
and delete the message from your system.

THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE
and may contain confidential and privileged information. If the reader of this message
is not the intended recipient, you are notified that any dissemination, distribution
or copy of this communication is strictly Prohibited.If you have received this message
by error, please notify the sender immediately, return the original mail to the sender
and delete the message from your system.

Gary wrote:

> Why bother? You really really don’t even need the slot information
since IRP_MN_START_DEVICE >> gives you the BARS for that device. Slot
information is fairly well deprecatred and simply not used >> in 2000 and
above.

True, for most real-life situations. But say I have two similar boards that
connect to separate external devices. Due to the lack of a reliable
solution (known by me, anyway) I’ve resorted to flashing LED’s on the
boards to help.

Justin

For this very reason i want to know the physical slot.
I have 2 similar cards connected externally to 2 seperate devices
then how do i identify to which iam reading/writing.
I donot have any LED indication on the cards.
Any suggestions on HowTo achieve this???

----- Original Message -----
From: “Justin Schoenwald”
To: “NT Developers Interest List”
Sent: Wednesday, March 12, 2003 11:37 PM
Subject: [ntdev] Re: Finding Physical Slot Number in NT4

> Gary wrote:
>
> >> Why bother? You really really don’t even need the slot information
> since IRP_MN_START_DEVICE >> gives you the BARS for that device. Slot
> information is fairly well deprecatred and simply not used >> in 2000 and
> above.
>
> True, for most real-life situations. But say I have two similar boards
that
> connect to separate external devices. Due to the lack of a reliable
> solution (known by me, anyway) I’ve resorted to flashing LED’s on the
> boards to help.
>
> Justin
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@rassit.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE
> and may contain confidential and privileged information. If the reader of
this message
> is not the intended recipient, you are notified that any dissemination,
distribution
> or copy of this communication is strictly Prohibited.If you have received
this message
> by error, please notify the sender immediately, return the original mail
to the sender
> and delete the message from your system.
>
>

THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE
and may contain confidential and privileged information. If the reader of this message
is not the intended recipient, you are notified that any dissemination, distribution
or copy of this communication is strictly Prohibited.If you have received this message
by error, please notify the sender immediately, return the original mail to the sender
and delete the message from your system.

Isn’t that really up to the application, or layers above the driver, and any
hardware connected to the device? You can have multiple identical SCSI cards
in the system. I can almost guarantee that none of them give a rusty rats
ass what slot in the mother board that they are in. The SCSI protocol
dictates that an INQUIRY is going to to be generated by the storage stack on
top of the miniport and each device connected to the SCSI bus is going to
reply with their on individual identity. NT4 provided that information
because you had to manually scan the PCI bus to find yours and then use the
slot number to acquire your resources. Besides, you are provided unique
device objects for each device … if you really want some thing unique, use
the pointer to the device object as an identifier.

Many devices today have a WWN, world wide name, that designates the
manufacturer, assembly, and serial number of that board.


Gary G. Little
Have Computer, Will Travel …
909-698-3191
909-551-2105
http://www.wd-3.com

“Ashok Kumar” wrote in message news:xxxxx@ntdev…
>
> For this very reason i want to know the physical slot.
> I have 2 similar cards connected externally to 2 seperate devices
> then how do i identify to which iam reading/writing.
> I donot have any LED indication on the cards.
> Any suggestions on HowTo achieve this???
>
>
>
> ----- Original Message -----
> From: “Justin Schoenwald”
> To: “NT Developers Interest List”
> Sent: Wednesday, March 12, 2003 11:37 PM
> Subject: [ntdev] Re: Finding Physical Slot Number in NT4
>
>
> > Gary wrote:
> >
> > >> Why bother? You really really don’t even need the slot information
> > since IRP_MN_START_DEVICE >> gives you the BARS for that device. Slot
> > information is fairly well deprecatred and simply not used >> in 2000
and
> > above.
> >
> > True, for most real-life situations. But say I have two similar boards
> that
> > connect to separate external devices. Due to the lack of a reliable
> > solution (known by me, anyway) I’ve resorted to flashing LED’s on the
> > boards to help.
> >
> > Justin
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@rassit.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
> ADDRESSEE
> > and may contain confidential and privileged information. If the reader
of
> this message
> > is not the intended recipient, you are notified that any dissemination,
> distribution
> > or copy of this communication is strictly Prohibited.If you have
received
> this message
> > by error, please notify the sender immediately, return the original mail
> to the sender
> > and delete the message from your system.
> >
> >
>
>
> THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE
> and may contain confidential and privileged information. If the reader of
this message
> is not the intended recipient, you are notified that any dissemination,
distribution
> or copy of this communication is strictly Prohibited.If you have received
this message
> by error, please notify the sender immediately, return the original mail
to the sender
> and delete the message from your system.
>
>
>
>
>

I think I’ll stand behind my first response.

I’ve seen motherboards wired such that smaller numbers ascended from the
power supply outboard … others numbered the other way. Overall it should
not matter on a PCI bus which slot you physically occupy. I asume you create
a unique symbolic name for each device, and that an application will open
each unique device name to get to the external whatsits. If the whatsits are
the same thing, why should the driver care? I can see the APPLICATION caring
to make sure that data desginated for whatsit01 does not go to whatsit02 …
but why does the DRIVER care? If the application says aend this to whatsit01
it better send it to whatsit01. If the application gets an intgerrupt on
whatsit02 it should store the data some how in a buffer or queue in
whatsit02 and when an application asks for the data the driver gives it the
proper data.

Oh … you should create a device object and extension for each device, and
each device should have it’s own interrupt, as well as send/receive queues
or buffers.

I’ve done precisely what you are describing, from NT4 through WDM and XP,
supporting 4 identical fibre channel cards … and never needed the slot
number.


Gary G. Little
Have Computer, Will Travel …
909-698-3191
909-551-2105
http://www.wd-3.com

“Ashok Kumar” wrote in message news:xxxxx@ntdev…
>
> For this very reason i want to know the physical slot.
> I have 2 similar cards connected externally to 2 seperate devices
> then how do i identify to which iam reading/writing.
> I donot have any LED indication on the cards.
> Any suggestions on HowTo achieve this???
>
>
>
> ----- Original Message -----
> From: “Justin Schoenwald”
> To: “NT Developers Interest List”
> Sent: Wednesday, March 12, 2003 11:37 PM
> Subject: [ntdev] Re: Finding Physical Slot Number in NT4
>
>
> > Gary wrote:
> >
> > >> Why bother? You really really don’t even need the slot information
> > since IRP_MN_START_DEVICE >> gives you the BARS for that device. Slot
> > information is fairly well deprecatred and simply not used >> in 2000
and
> > above.
> >
> > True, for most real-life situations. But say I have two similar boards
> that
> > connect to separate external devices. Due to the lack of a reliable
> > solution (known by me, anyway) I’ve resorted to flashing LED’s on the
> > boards to help.
> >
> > Justin
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@rassit.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
> ADDRESSEE
> > and may contain confidential and privileged information. If the reader
of
> this message
> > is not the intended recipient, you are notified that any dissemination,
> distribution
> > or copy of this communication is strictly Prohibited.If you have
received
> this message
> > by error, please notify the sender immediately, return the original mail
> to the sender
> > and delete the message from your system.
> >
> >
>
>
> THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE
> and may contain confidential and privileged information. If the reader of
this message
> is not the intended recipient, you are notified that any dissemination,
distribution
> or copy of this communication is strictly Prohibited.If you have received
this message
> by error, please notify the sender immediately, return the original mail
to the sender
> and delete the message from your system.
>
>
>
>
>

Hey gary…i have created a unique symbol name for each device…
Ok…let me brief you about the setup…
I have 2 PCI cards in my system. The PCI cards each have a data cable
connected to them, which is connected to other devices…
When i send some data through an application to one of the PCI cards, how do
i know on which of the 2 data cables i receive data so that i can connect
the appropriate data cable to the other end…
I shouldnt be making trial and errors and then select the appropriate
cable…
thats the reason i want to identify the physical slot numbers on the
motherboard and connect the appropriate cable…
Now i think it would be clear to you what i exactly want

Now as far as the device objects, extension and interrupts are concerned, i
have done exactly as u have said…

Ashok

----- Original Message -----
From: “Gary G. Little”
Newsgroups: ntdev
To: “NT Developers Interest List”
Sent: Thursday, March 13, 2003 12:01 PM
Subject: [ntdev] Re: Finding Physical Slot Number in NT4

> I think I’ll stand behind my first response.
>
> I’ve seen motherboards wired such that smaller numbers ascended from the
> power supply outboard … others numbered the other way. Overall it should
> not matter on a PCI bus which slot you physically occupy. I asume you
create
> a unique symbolic name for each device, and that an application will open
> each unique device name to get to the external whatsits. If the whatsits
are
> the same thing, why should the driver care? I can see the APPLICATION
caring
> to make sure that data desginated for whatsit01 does not go to whatsit02

> but why does the DRIVER care? If the application says aend this to
whatsit01
> it better send it to whatsit01. If the application gets an intgerrupt on
> whatsit02 it should store the data some how in a buffer or queue in
> whatsit02 and when an application asks for the data the driver gives it
the
> proper data.
>
> Oh … you should create a device object and extension for each device,
and
> each device should have it’s own interrupt, as well as send/receive queues
> or buffers.
>
> I’ve done precisely what you are describing, from NT4 through WDM and XP,
> supporting 4 identical fibre channel cards … and never needed the slot
> number.
>
> –
> Gary G. Little
> Have Computer, Will Travel …
> 909-698-3191
> 909-551-2105
> http://www.wd-3.com
>
> “Ashok Kumar” wrote in message news:xxxxx@ntdev…
> >
> > For this very reason i want to know the physical slot.
> > I have 2 similar cards connected externally to 2 seperate devices
> > then how do i identify to which iam reading/writing.
> > I donot have any LED indication on the cards.
> > Any suggestions on HowTo achieve this???
> >
> >
> >
> > ----- Original Message -----
> > From: “Justin Schoenwald”
> > To: “NT Developers Interest List”
> > Sent: Wednesday, March 12, 2003 11:37 PM
> > Subject: [ntdev] Re: Finding Physical Slot Number in NT4
> >
> >
> > > Gary wrote:
> > >
> > > >> Why bother? You really really don’t even need the slot information
> > > since IRP_MN_START_DEVICE >> gives you the BARS for that device. Slot
> > > information is fairly well deprecatred and simply not used >> in 2000
> and
> > > above.
> > >
> > > True, for most real-life situations. But say I have two similar boards
> > that
> > > connect to separate external devices. Due to the lack of a reliable
> > > solution (known by me, anyway) I’ve resorted to flashing LED’s on the
> > > boards to help.
> > >
> > > Justin
> > >
> > >
> > >
> > > —
> > > You are currently subscribed to ntdev as: xxxxx@rassit.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> > >
> > > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR
THE
> > ADDRESSEE
> > > and may contain confidential and privileged information. If the reader
> of
> > this message
> > > is not the intended recipient, you are notified that any
dissemination,
> > distribution
> > > or copy of this communication is strictly Prohibited.If you have
> received
> > this message
> > > by error, please notify the sender immediately, return the original
mail
> > to the sender
> > > and delete the message from your system.
> > >
> > >
> >
> >
> > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
> ADDRESSEE
> > and may contain confidential and privileged information. If the reader
of
> this message
> > is not the intended recipient, you are notified that any dissemination,
> distribution
> > or copy of this communication is strictly Prohibited.If you have
received
> this message
> > by error, please notify the sender immediately, return the original mail
> to the sender
> > and delete the message from your system.
> >
> >
> >
> >
> >
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@rassit.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE
> and may contain confidential and privileged information. If the reader of
this message
> is not the intended recipient, you are notified that any dissemination,
distribution
> or copy of this communication is strictly Prohibited.If you have received
this message
> by error, please notify the sender immediately, return the original mail
to the sender
> and delete the message from your system.
>
>

THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE
and may contain confidential and privileged information. If the reader of this message
is not the intended recipient, you are notified that any dissemination, distribution
or copy of this communication is strictly Prohibited.If you have received this message
by error, please notify the sender immediately, return the original mail to the sender
and delete the message from your system.

The issue is that each mother board vendor will implement slot assignments
independently. Some motherboards have PCI bridges and serve PCI slots using
multiple PCI busses. Therefore, there is no way to relate physical slot
location in the motherboard to the PCI Bus, Slot and Function numbers that
are found in software. The only way to provide the relationship between PCI
location information(bus number, slot number and function number) to the
Physical Slot location is to have a database that contains this relationship
for all motherboards that have been manufactured. This database would
contain the physical slot numbers for the given PCI bus,slot and function
numbers detected when scanning for a device. Then your software must detect
the motherboard part number and search this database for the relationship.
And this would probably be impossible to create and maintain.

Dominick Cafarelli
Software Development Manager, Sniffer Technologies
Network Associates
1700 Route 23, Suite 180
Wayne, NJ 07470

Phone: (973) 709-2004
Fax: (973) 872-5340
Email: mailto:xxxxx@nai.com

Your Network. Our Business.

-----Original Message-----
From: Ashok Kumar [mailto:xxxxx@rassit.com]
Sent: Wednesday, March 12, 2003 7:59 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Finding Physical Slot Number in NT4

For this very reason i want to know the physical slot.
I have 2 similar cards connected externally to 2 seperate devices then how
do i identify to which iam reading/writing. I donot have any LED indication
on the cards. Any suggestions on HowTo achieve this???

----- Original Message -----
From: “Justin Schoenwald”
To: “NT Developers Interest List”
Sent: Wednesday, March 12, 2003 11:37 PM
Subject: [ntdev] Re: Finding Physical Slot Number in NT4

> Gary wrote:
>
> >> Why bother? You really really don’t even need the slot information
> since IRP_MN_START_DEVICE >> gives you the BARS for that device. Slot
> information is fairly well deprecatred and simply not used >> in 2000
> and above.
>
> True, for most real-life situations. But say I have two similar boards
that
> connect to separate external devices. Due to the lack of a reliable
> solution (known by me, anyway) I’ve resorted to flashing LED’s on the
> boards to help.
>
> Justin
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@rassit.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR
> THE
ADDRESSEE
> and may contain confidential and privileged information. If the reader
> of
this message
> is not the intended recipient, you are notified that any
> dissemination,
distribution
> or copy of this communication is strictly Prohibited.If you have
> received
this message
> by error, please notify the sender immediately, return the original
> mail
to the sender
> and delete the message from your system.
>
>

THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE
and may contain confidential and privileged information. If the reader of
this message
is not the intended recipient, you are notified that any dissemination,
distribution
or copy of this communication is strictly Prohibited.If you have received
this message
by error, please notify the sender immediately, return the original mail to
the sender
and delete the message from your system.


You are currently subscribed to ntdev as: xxxxx@nai.com To
unsubscribe send a blank email to xxxxx@lists.osr.com

Isn’t this a simple case of using a couple of PCI extender boards ? They’ve
got lots of blinkenlights.

Alberto.

-----Original Message-----
From: xxxxx@NAI.com [mailto:xxxxx@NAI.com]
Sent: Thursday, March 13, 2003 10:55 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Finding Physical Slot Number in NT4

The issue is that each mother board vendor will implement slot assignments
independently. Some motherboards have PCI bridges and serve PCI slots using
multiple PCI busses. Therefore, there is no way to relate physical slot
location in the motherboard to the PCI Bus, Slot and Function numbers that
are found in software. The only way to provide the relationship between PCI
location information(bus number, slot number and function number) to the
Physical Slot location is to have a database that contains this relationship
for all motherboards that have been manufactured. This database would
contain the physical slot numbers for the given PCI bus,slot and function
numbers detected when scanning for a device. Then your software must detect
the motherboard part number and search this database for the relationship.
And this would probably be impossible to create and maintain.

Dominick Cafarelli
Software Development Manager, Sniffer Technologies
Network Associates
1700 Route 23, Suite 180
Wayne, NJ 07470

Phone: (973) 709-2004
Fax: (973) 872-5340
Email: mailto:xxxxx@nai.com

Your Network. Our Business.

-----Original Message-----
From: Ashok Kumar [mailto:xxxxx@rassit.com]
Sent: Wednesday, March 12, 2003 7:59 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Finding Physical Slot Number in NT4

For this very reason i want to know the physical slot.
I have 2 similar cards connected externally to 2 seperate devices then how
do i identify to which iam reading/writing. I donot have any LED indication
on the cards. Any suggestions on HowTo achieve this???

----- Original Message -----
From: “Justin Schoenwald”
To: “NT Developers Interest List”
Sent: Wednesday, March 12, 2003 11:37 PM
Subject: [ntdev] Re: Finding Physical Slot Number in NT4

> Gary wrote:
>
> >> Why bother? You really really don’t even need the slot information
> since IRP_MN_START_DEVICE >> gives you the BARS for that device. Slot
> information is fairly well deprecatred and simply not used >> in 2000
> and above.
>
> True, for most real-life situations. But say I have two similar boards
that
> connect to separate external devices. Due to the lack of a reliable
> solution (known by me, anyway) I’ve resorted to flashing LED’s on the
> boards to help.
>
> Justin
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@rassit.com To
> unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR
> THE
ADDRESSEE
> and may contain confidential and privileged information. If the reader
> of
this message
> is not the intended recipient, you are notified that any
> dissemination,
distribution
> or copy of this communication is strictly Prohibited.If you have
> received
this message
> by error, please notify the sender immediately, return the original
> mail
to the sender
> and delete the message from your system.
>
>

THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE
and may contain confidential and privileged information. If the reader of
this message
is not the intended recipient, you are notified that any dissemination,
distribution
or copy of this communication is strictly Prohibited.If you have received
this message
by error, please notify the sender immediately, return the original mail to
the sender
and delete the message from your system.


You are currently subscribed to ntdev as: xxxxx@nai.com To
unsubscribe send a blank email to xxxxx@lists.osr.com


You are currently subscribed to ntdev as: xxxxx@compuware.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it.

I ask again … Why does the DRIVER care? I can see the service or
application layers carring, but not the driver. The driver is a valve
controlling the flow of data to and from a piece of hardware.

The absolute best way is to have a protocol that includes an INQURY command
where each attached device identifies itself when queried by services or
applications above the driver, aka SCSI or SDLC or HDLC or a dozen other
protocols.

Barring that, and your pointy haired boss probably won’t understand nor like
it, you could always pop the cover, install one board and say “Ok this is
the left one connected to Widget342”, then install the other board and say
“this is the right one connected to Widget15482”. Of course if your PCI
boards are installed in a vertical riser, as in a DELL Optiplex, then you
can say this is the upper one and this is the lower one. That’s cheaper than
blinking lights.


Gary G. Little
Have Computer, Will Travel …
909-698-3191
909-551-2105
http://www.wd-3.com

“Ashok Kumar” wrote in message news:xxxxx@ntdev…
>
> Hey gary…i have created a unique symbol name for each device…
> Ok…let me brief you about the setup…
> I have 2 PCI cards in my system. The PCI cards each have a data cable
> connected to them, which is connected to other devices…
> When i send some data through an application to one of the PCI cards, how
do
> i know on which of the 2 data cables i receive data so that i can connect
> the appropriate data cable to the other end…
> I shouldnt be making trial and errors and then select the appropriate
> cable…
> thats the reason i want to identify the physical slot numbers on the
> motherboard and connect the appropriate cable…
> Now i think it would be clear to you what i exactly want
>
> Now as far as the device objects, extension and interrupts are concerned,
i
> have done exactly as u have said…
>
> Ashok
>
>
> ----- Original Message -----
> From: “Gary G. Little”
> Newsgroups: ntdev
> To: “NT Developers Interest List”
> Sent: Thursday, March 13, 2003 12:01 PM
> Subject: [ntdev] Re: Finding Physical Slot Number in NT4
>
>
> > I think I’ll stand behind my first response.
> >
> > I’ve seen motherboards wired such that smaller numbers ascended from the
> > power supply outboard … others numbered the other way. Overall it
should
> > not matter on a PCI bus which slot you physically occupy. I asume you
> create
> > a unique symbolic name for each device, and that an application will
open
> > each unique device name to get to the external whatsits. If the whatsits
> are
> > the same thing, why should the driver care? I can see the APPLICATION
> caring
> > to make sure that data desginated for whatsit01 does not go to whatsit02
> …
> > but why does the DRIVER care? If the application says aend this to
> whatsit01
> > it better send it to whatsit01. If the application gets an intgerrupt on
> > whatsit02 it should store the data some how in a buffer or queue in
> > whatsit02 and when an application asks for the data the driver gives it
> the
> > proper data.
> >
> > Oh … you should create a device object and extension for each device,
> and
> > each device should have it’s own interrupt, as well as send/receive
queues
> > or buffers.
> >
> > I’ve done precisely what you are describing, from NT4 through WDM and
XP,
> > supporting 4 identical fibre channel cards … and never needed the slot
> > number.
> >
> > –
> > Gary G. Little
> > Have Computer, Will Travel …
> > 909-698-3191
> > 909-551-2105
> > http://www.wd-3.com
> >
> > “Ashok Kumar” wrote in message
news:xxxxx@ntdev…
> > >
> > > For this very reason i want to know the physical slot.
> > > I have 2 similar cards connected externally to 2 seperate devices
> > > then how do i identify to which iam reading/writing.
> > > I donot have any LED indication on the cards.
> > > Any suggestions on HowTo achieve this???
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: “Justin Schoenwald”
> > > To: “NT Developers Interest List”
> > > Sent: Wednesday, March 12, 2003 11:37 PM
> > > Subject: [ntdev] Re: Finding Physical Slot Number in NT4
> > >
> > >
> > > > Gary wrote:
> > > >
> > > > >> Why bother? You really really don’t even need the slot
information
> > > > since IRP_MN_START_DEVICE >> gives you the BARS for that device.
Slot
> > > > information is fairly well deprecatred and simply not used >> in
2000
> > and
> > > > above.
> > > >
> > > > True, for most real-life situations. But say I have two similar
boards
> > > that
> > > > connect to separate external devices. Due to the lack of a reliable
> > > > solution (known by me, anyway) I’ve resorted to flashing LED’s on
the
> > > > boards to help.
> > > >
> > > > Justin
> > > >
> > > >
> > > >
> > > > —
> > > > You are currently subscribed to ntdev as: xxxxx@rassit.com
> > > > To unsubscribe send a blank email to
xxxxx@lists.osr.com
> > > >
> > > >
> > > > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR
> THE
> > > ADDRESSEE
> > > > and may contain confidential and privileged information. If the
reader
> > of
> > > this message
> > > > is not the intended recipient, you are notified that any
> dissemination,
> > > distribution
> > > > or copy of this communication is strictly Prohibited.If you have
> > received
> > > this message
> > > > by error, please notify the sender immediately, return the original
> mail
> > > to the sender
> > > > and delete the message from your system.
> > > >
> > > >
> > >
> > >
> > > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR
THE
> > ADDRESSEE
> > > and may contain confidential and privileged information. If the reader
> of
> > this message
> > > is not the intended recipient, you are notified that any
dissemination,
> > distribution
> > > or copy of this communication is strictly Prohibited.If you have
> received
> > this message
> > > by error, please notify the sender immediately, return the original
mail
> > to the sender
> > > and delete the message from your system.
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as: xxxxx@rassit.com
> > To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
> ADDRESSEE
> > and may contain confidential and privileged information. If the reader
of
> this message
> > is not the intended recipient, you are notified that any dissemination,
> distribution
> > or copy of this communication is strictly Prohibited.If you have
received
> this message
> > by error, please notify the sender immediately, return the original mail
> to the sender
> > and delete the message from your system.
> >
> >
>
>
> THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE
> and may contain confidential and privileged information. If the reader of
this message
> is not the intended recipient, you are notified that any dissemination,
distribution
> or copy of this communication is strictly Prohibited.If you have received
this message
> by error, please notify the sender immediately, return the original mail
to the sender
> and delete the message from your system.
>
>
>
>
>

Thank u guys for all the help
hey Gary i’ll convince my pointy haired Boss(as u say it) somehow that this
cannot be done

----- Original Message -----
From: “Gary G. Little”
Newsgroups: ntdev
To: “NT Developers Interest List”
Sent: Friday, March 14, 2003 1:44 AM
Subject: [ntdev] Re: Finding Physical Slot Number in NT4

> I ask again … Why does the DRIVER care? I can see the service or
> application layers carring, but not the driver. The driver is a valve
> controlling the flow of data to and from a piece of hardware.
>
> The absolute best way is to have a protocol that includes an INQURY
command
> where each attached device identifies itself when queried by services or
> applications above the driver, aka SCSI or SDLC or HDLC or a dozen other
> protocols.
>
> Barring that, and your pointy haired boss probably won’t understand nor
like
> it, you could always pop the cover, install one board and say “Ok this is
> the left one connected to Widget342”, then install the other board and say
> “this is the right one connected to Widget15482”. Of course if your PCI
> boards are installed in a vertical riser, as in a DELL Optiplex, then you
> can say this is the upper one and this is the lower one. That’s cheaper
than
> blinking lights.
>
> –
> Gary G. Little
> Have Computer, Will Travel …
> 909-698-3191
> 909-551-2105
> http://www.wd-3.com
>
> “Ashok Kumar” wrote in message news:xxxxx@ntdev…
> >
> > Hey gary…i have created a unique symbol name for each device…
> > Ok…let me brief you about the setup…
> > I have 2 PCI cards in my system. The PCI cards each have a data cable
> > connected to them, which is connected to other devices…
> > When i send some data through an application to one of the PCI cards,
how
> do
> > i know on which of the 2 data cables i receive data so that i can
connect
> > the appropriate data cable to the other end…
> > I shouldnt be making trial and errors and then select the appropriate
> > cable…
> > thats the reason i want to identify the physical slot numbers on the
> > motherboard and connect the appropriate cable…
> > Now i think it would be clear to you what i exactly want
> >
> > Now as far as the device objects, extension and interrupts are
concerned,
> i
> > have done exactly as u have said…
> >
> > Ashok
> >
> >
> > ----- Original Message -----
> > From: “Gary G. Little”
> > Newsgroups: ntdev
> > To: “NT Developers Interest List”
> > Sent: Thursday, March 13, 2003 12:01 PM
> > Subject: [ntdev] Re: Finding Physical Slot Number in NT4
> >
> >
> > > I think I’ll stand behind my first response.
> > >
> > > I’ve seen motherboards wired such that smaller numbers ascended from
the
> > > power supply outboard … others numbered the other way. Overall it
> should
> > > not matter on a PCI bus which slot you physically occupy. I asume you
> > create
> > > a unique symbolic name for each device, and that an application will
> open
> > > each unique device name to get to the external whatsits. If the
whatsits
> > are
> > > the same thing, why should the driver care? I can see the APPLICATION
> > caring
> > > to make sure that data desginated for whatsit01 does not go to
whatsit02
> > …
> > > but why does the DRIVER care? If the application says aend this to
> > whatsit01
> > > it better send it to whatsit01. If the application gets an intgerrupt
on
> > > whatsit02 it should store the data some how in a buffer or queue in
> > > whatsit02 and when an application asks for the data the driver gives
it
> > the
> > > proper data.
> > >
> > > Oh … you should create a device object and extension for each
device,
> > and
> > > each device should have it’s own interrupt, as well as send/receive
> queues
> > > or buffers.
> > >
> > > I’ve done precisely what you are describing, from NT4 through WDM and
> XP,
> > > supporting 4 identical fibre channel cards … and never needed the
slot
> > > number.
> > >
> > > –
> > > Gary G. Little
> > > Have Computer, Will Travel …
> > > 909-698-3191
> > > 909-551-2105
> > > http://www.wd-3.com
> > >
> > > “Ashok Kumar” wrote in message
> news:xxxxx@ntdev…
> > > >
> > > > For this very reason i want to know the physical slot.
> > > > I have 2 similar cards connected externally to 2 seperate devices
> > > > then how do i identify to which iam reading/writing.
> > > > I donot have any LED indication on the cards.
> > > > Any suggestions on HowTo achieve this???
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: “Justin Schoenwald”
> > > > To: “NT Developers Interest List”
> > > > Sent: Wednesday, March 12, 2003 11:37 PM
> > > > Subject: [ntdev] Re: Finding Physical Slot Number in NT4
> > > >
> > > >
> > > > > Gary wrote:
> > > > >
> > > > > >> Why bother? You really really don’t even need the slot
> information
> > > > > since IRP_MN_START_DEVICE >> gives you the BARS for that device.
> Slot
> > > > > information is fairly well deprecatred and simply not used >> in
> 2000
> > > and
> > > > > above.
> > > > >
> > > > > True, for most real-life situations. But say I have two similar
> boards
> > > > that
> > > > > connect to separate external devices. Due to the lack of a
reliable
> > > > > solution (known by me, anyway) I’ve resorted to flashing LED’s on
> the
> > > > > boards to help.
> > > > >
> > > > > Justin
> > > > >
> > > > >
> > > > >
> > > > > —
> > > > > You are currently subscribed to ntdev as: xxxxx@rassit.com
> > > > > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
> > > > >
> > > > >
> > > > > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY
FOR
> > THE
> > > > ADDRESSEE
> > > > > and may contain confidential and privileged information. If the
> reader
> > > of
> > > > this message
> > > > > is not the intended recipient, you are notified that any
> > dissemination,
> > > > distribution
> > > > > or copy of this communication is strictly Prohibited.If you have
> > > received
> > > > this message
> > > > > by error, please notify the sender immediately, return the
original
> > mail
> > > > to the sender
> > > > > and delete the message from your system.
> > > > >
> > > > >
> > > >
> > > >
> > > > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR
> THE
> > > ADDRESSEE
> > > > and may contain confidential and privileged information. If the
reader
> > of
> > > this message
> > > > is not the intended recipient, you are notified that any
> dissemination,
> > > distribution
> > > > or copy of this communication is strictly Prohibited.If you have
> > received
> > > this message
> > > > by error, please notify the sender immediately, return the original
> mail
> > > to the sender
> > > > and delete the message from your system.
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > —
> > > You are currently subscribed to ntdev as: xxxxx@rassit.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> > >
> > > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR
THE
> > ADDRESSEE
> > > and may contain confidential and privileged information. If the reader
> of
> > this message
> > > is not the intended recipient, you are notified that any
dissemination,
> > distribution
> > > or copy of this communication is strictly Prohibited.If you have
> received
> > this message
> > > by error, please notify the sender immediately, return the original
mail
> > to the sender
> > > and delete the message from your system.
> > >
> > >
> >
> >
> > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
> ADDRESSEE
> > and may contain confidential and privileged information. If the reader
of
> this message
> > is not the intended recipient, you are notified that any dissemination,
> distribution
> > or copy of this communication is strictly Prohibited.If you have
received
> this message
> > by error, please notify the sender immediately, return the original mail
> to the sender
> > and delete the message from your system.
> >
> >
> >
> >
> >
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@rassit.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE
> and may contain confidential and privileged information. If the reader of
this message
> is not the intended recipient, you are notified that any dissemination,
distribution
> or copy of this communication is strictly Prohibited.If you have received
this message
> by error, please notify the sender immediately, return the original mail
to the sender
> and delete the message from your system.
>
>

THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE
and may contain confidential and privileged information. If the reader of this message
is not the intended recipient, you are notified that any dissemination, distribution
or copy of this communication is strictly Prohibited.If you have received this message
by error, please notify the sender immediately, return the original mail to the sender
and delete the message from your system.

There are good reasons for wanting to know information about your board location.

For instance, there is a weakness in the consecutive numbered naming strategy.

For example, say you have a system with two of your boards installed and you declare them as dev0 and dev1.

Well if on a subsequent reboot the h/w for dev0 fails in a way that you don’t detect it any longer, you will end up calling the h/w for the device that is still working dev0. Now this can have some serious consequences (for instance say this was a disk controller or network card). Now there is a potential that your drive letters get remapped or your network card gets a different IP address (really bad stuff).

What you can do is use the bus and device information (if you have a PCI card) to build your device names. Unfortunately there is no Windows mechanism (to my knowledge) to determine the actual physical slot corresponding to your bus and slot numbers. This information is known by the BIOS or motherboard manufacturer. I don’t believe it is passed to the HAL. You could of course empirically determine the bus/device to physical slot for a particular model of h/w, but you’ll be in the business of having to do this for every model platform you plan to support.

Duane.

-----Original Message-----
From: Ashok Kumar [mailto:xxxxx@rassit.com]
Sent: Thursday, March 13, 2003 11:30 PM
To: NT Developers Interest List
Subject: [ntdev] Re: Finding Physical Slot Number in NT4

Thank u guys for all the help
hey Gary i’ll convince my pointy haired Boss(as u say it) somehow that this
cannot be done

----- Original Message -----
From: “Gary G. Little”
Newsgroups: ntdev
To: “NT Developers Interest List”
Sent: Friday, March 14, 2003 1:44 AM
Subject: [ntdev] Re: Finding Physical Slot Number in NT4

> I ask again … Why does the DRIVER care? I can see the service or
> application layers carring, but not the driver. The driver is a valve
> controlling the flow of data to and from a piece of hardware.
>
> The absolute best way is to have a protocol that includes an INQURY
command
> where each attached device identifies itself when queried by services or
> applications above the driver, aka SCSI or SDLC or HDLC or a dozen other
> protocols.
>
> Barring that, and your pointy haired boss probably won’t understand nor
like
> it, you could always pop the cover, install one board and say “Ok this is
> the left one connected to Widget342”, then install the other board and say
> “this is the right one connected to Widget15482”. Of course if your PCI
> boards are installed in a vertical riser, as in a DELL Optiplex, then you
> can say this is the upper one and this is the lower one. That’s cheaper
than
> blinking lights.
>
> –
> Gary G. Little
> Have Computer, Will Travel …
> 909-698-3191
> 909-551-2105
> http://www.wd-3.com
>
> “Ashok Kumar” wrote in message news:xxxxx@ntdev…
> >
> > Hey gary…i have created a unique symbol name for each device…
> > Ok…let me brief you about the setup…
> > I have 2 PCI cards in my system. The PCI cards each have a data cable
> > connected to them, which is connected to other devices…
> > When i send some data through an application to one of the PCI cards,
how
> do
> > i know on which of the 2 data cables i receive data so that i can
connect
> > the appropriate data cable to the other end…
> > I shouldnt be making trial and errors and then select the appropriate
> > cable…
> > thats the reason i want to identify the physical slot numbers on the
> > motherboard and connect the appropriate cable…
> > Now i think it would be clear to you what i exactly want
> >
> > Now as far as the device objects, extension and interrupts are
concerned,
> i
> > have done exactly as u have said…
> >
> > Ashok
> >
> >
> > ----- Original Message -----
> > From: “Gary G. Little”
> > Newsgroups: ntdev
> > To: “NT Developers Interest List”
> > Sent: Thursday, March 13, 2003 12:01 PM
> > Subject: [ntdev] Re: Finding Physical Slot Number in NT4
> >
> >
> > > I think I’ll stand behind my first response.
> > >
> > > I’ve seen motherboards wired such that smaller numbers ascended from
the
> > > power supply outboard … others numbered the other way. Overall it
> should
> > > not matter on a PCI bus which slot you physically occupy. I asume you
> > create
> > > a unique symbolic name for each device, and that an application will
> open
> > > each unique device name to get to the external whatsits. If the
whatsits
> > are
> > > the same thing, why should the driver care? I can see the APPLICATION
> > caring
> > > to make sure that data desginated for whatsit01 does not go to
whatsit02
> > …
> > > but why does the DRIVER care? If the application says aend this to
> > whatsit01
> > > it better send it to whatsit01. If the application gets an intgerrupt
on
> > > whatsit02 it should store the data some how in a buffer or queue in
> > > whatsit02 and when an application asks for the data the driver gives
it
> > the
> > > proper data.
> > >
> > > Oh … you should create a device object and extension for each
device,
> > and
> > > each device should have it’s own interrupt, as well as send/receive
> queues
> > > or buffers.
> > >
> > > I’ve done precisely what you are describing, from NT4 through WDM and
> XP,
> > > supporting 4 identical fibre channel cards … and never needed the
slot
> > > number.
> > >
> > > –
> > > Gary G. Little
> > > Have Computer, Will Travel …
> > > 909-698-3191
> > > 909-551-2105
> > > http://www.wd-3.com
> > >
> > > “Ashok Kumar” wrote in message
> news:xxxxx@ntdev…
> > > >
> > > > For this very reason i want to know the physical slot.
> > > > I have 2 similar cards connected externally to 2 seperate devices
> > > > then how do i identify to which iam reading/writing.
> > > > I donot have any LED indication on the cards.
> > > > Any suggestions on HowTo achieve this???
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: “Justin Schoenwald”
> > > > To: “NT Developers Interest List”
> > > > Sent: Wednesday, March 12, 2003 11:37 PM
> > > > Subject: [ntdev] Re: Finding Physical Slot Number in NT4
> > > >
> > > >
> > > > > Gary wrote:
> > > > >
> > > > > >> Why bother? You really really don’t even need the slot
> information
> > > > > since IRP_MN_START_DEVICE >> gives you the BARS for that device.
> Slot
> > > > > information is fairly well deprecatred and simply not used >> in
> 2000
> > > and
> > > > > above.
> > > > >
> > > > > True, for most real-life situations. But say I have two similar
> boards
> > > > that
> > > > > connect to separate external devices. Due to the lack of a
reliable
> > > > > solution (known by me, anyway) I’ve resorted to flashing LED’s on
> the
> > > > > boards to help.
> > > > >
> > > > > Justin
> > > > >
> > > > >
> > > > >
> > > > > —
> > > > > You are currently subscribed to ntdev as: xxxxx@rassit.com
> > > > > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
> > > > >
> > > > >
> > > > > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY
FOR
> > THE
> > > > ADDRESSEE
> > > > > and may contain confidential and privileged information. If the
> reader
> > > of
> > > > this message
> > > > > is not the intended recipient, you are notified that any
> > dissemination,
> > > > distribution
> > > > > or copy of this communication is strictly Prohibited.If you have
> > > received
> > > > this message
> > > > > by error, please notify the sender immediately, return the
original
> > mail
> > > > to the sender
> > > > > and delete the message from your system.
> > > > >
> > > > >
> > > >
> > > >
> > > > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR
> THE
> > > ADDRESSEE
> > > > and may contain confidential and privileged information. If the
reader
> > of
> > > this message
> > > > is not the intended recipient, you are notified that any
> dissemination,
> > > distribution
> > > > or copy of this communication is strictly Prohibited.If you have
> > received
> > > this message
> > > > by error, please notify the sender immediately, return the original
> mail
> > > to the sender
> > > > and delete the message from your system.
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > —
> > > You are currently subscribed to ntdev as: xxxxx@rassit.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> > >
> > > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR
THE
> > ADDRESSEE
> > > and may contain confidential and privileged information. If the reader
> of
> > this message
> > > is not the intended recipient, you are notified that any
dissemination,
> > distribution
> > > or copy of this communication is strictly Prohibited.If you have
> received
> > this message
> > > by error, please notify the sender immediately, return the original
mail
> > to the sender
> > > and delete the message from your system.
> > >
> > >
> >
> >
> > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
> ADDRESSEE
> > and may contain confidential and privileged information. If the reader
of
> this message
> > is not the intended recipient, you are notified that any dissemination,
> distribution
> > or copy of this communication is strictly Prohibited.If you have
received
> this message
> > by error, please notify the sender immediately, return the original mail
> to the sender
> > and delete the message from your system.
> >
> >
> >
> >
> >
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@rassit.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE
> and may contain confidential and privileged information. If the reader of
this message
> is not the intended recipient, you are notified that any dissemination,
distribution
> or copy of this communication is strictly Prohibited.If you have received
this message
> by error, please notify the sender immediately, return the original mail
to the sender
> and delete the message from your system.
>
>

THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE
and may contain confidential and privileged information. If the reader of this message
is not the intended recipient, you are notified that any dissemination, distribution
or copy of this communication is strictly Prohibited.If you have received this message
by error, please notify the sender immediately, return the original mail to the sender
and delete the message from your system.


You are currently subscribed to ntdev as: xxxxx@infiniconsys.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

>device names. Unfortunately there is no Windows mechanism (to my
knowledge) to

determine the actual physical slot corresponding to your bus and slot
numbers. This

The PCI spec mandates the things like “chassis number” in the config
space. I expect that PCI.SYS uses them to build the UINumber and the
device location string.

Max

Hi,
actually you got the answer: DEVSEL routing (which is what logical to
geographical slot routing is)
on pci busses is more or less random and determined by the MB designer. On
cPCI systems you explicitly have additional pins on the backplane so each
slot can determine its geographical address (= slot) and pass it on to the
system master. Anyway, you might be able to get this info from the
SMBIOS. There’s a nice little shareware tool
called DMISCOPE from APSOFT that shows a few things. Search the web for
these terms.

Robin Mitra

-----Original Message-----
From: Ashok Kumar [mailto:xxxxx@rassit.com]
Sent: Friday, March 14, 2003 05:30
To: NT Developers Interest List
Subject: [ntdev] Re: Finding Physical Slot Number in NT4

Thank u guys for all the help
hey Gary i’ll convince my pointy haired Boss(as u say it) somehow that this
cannot be done

----- Original Message -----
From: “Gary G. Little”
Newsgroups: ntdev
To: “NT Developers Interest List”
Sent: Friday, March 14, 2003 1:44 AM
Subject: [ntdev] Re: Finding Physical Slot Number in NT4

> I ask again … Why does the DRIVER care? I can see the service or
> application layers carring, but not the driver. The driver is a valve
> controlling the flow of data to and from a piece of hardware.
>
> The absolute best way is to have a protocol that includes an INQURY
command
> where each attached device identifies itself when queried by services or
> applications above the driver, aka SCSI or SDLC or HDLC or a dozen other
> protocols.
>
> Barring that, and your pointy haired boss probably won’t understand nor
like
> it, you could always pop the cover, install one board and say “Ok this is
> the left one connected to Widget342”, then install the other board and say
> “this is the right one connected to Widget15482”. Of course if your PCI
> boards are installed in a vertical riser, as in a DELL Optiplex, then you
> can say this is the upper one and this is the lower one. That’s cheaper
than
> blinking lights.
>
> –
> Gary G. Little
> Have Computer, Will Travel …
> 909-698-3191
> 909-551-2105
> http://www.wd-3.com
>
> “Ashok Kumar” wrote in message news:xxxxx@ntdev…
> >
> > Hey gary…i have created a unique symbol name for each device…
> > Ok…let me brief you about the setup…
> > I have 2 PCI cards in my system. The PCI cards each have a data cable
> > connected to them, which is connected to other devices…
> > When i send some data through an application to one of the PCI cards,
how
> do
> > i know on which of the 2 data cables i receive data so that i can
connect
> > the appropriate data cable to the other end…
> > I shouldnt be making trial and errors and then select the appropriate
> > cable…
> > thats the reason i want to identify the physical slot numbers on the
> > motherboard and connect the appropriate cable…
> > Now i think it would be clear to you what i exactly want
> >
> > Now as far as the device objects, extension and interrupts are
concerned,
> i
> > have done exactly as u have said…
> >
> > Ashok
> >
> >
> > ----- Original Message -----
> > From: “Gary G. Little”
> > Newsgroups: ntdev
> > To: “NT Developers Interest List”
> > Sent: Thursday, March 13, 2003 12:01 PM
> > Subject: [ntdev] Re: Finding Physical Slot Number in NT4
> >
> >
> > > I think I’ll stand behind my first response.
> > >
> > > I’ve seen motherboards wired such that smaller numbers ascended from
the
> > > power supply outboard … others numbered the other way. Overall it
> should
> > > not matter on a PCI bus which slot you physically occupy. I asume you
> > create
> > > a unique symbolic name for each device, and that an application will
> open
> > > each unique device name to get to the external whatsits. If the
whatsits
> > are
> > > the same thing, why should the driver care? I can see the APPLICATION
> > caring
> > > to make sure that data desginated for whatsit01 does not go to
whatsit02
> > …
> > > but why does the DRIVER care? If the application says aend this to
> > whatsit01
> > > it better send it to whatsit01. If the application gets an intgerrupt
on
> > > whatsit02 it should store the data some how in a buffer or queue in
> > > whatsit02 and when an application asks for the data the driver gives
it
> > the
> > > proper data.
> > >
> > > Oh … you should create a device object and extension for each
device,
> > and
> > > each device should have it’s own interrupt, as well as send/receive
> queues
> > > or buffers.
> > >
> > > I’ve done precisely what you are describing, from NT4 through WDM and
> XP,
> > > supporting 4 identical fibre channel cards … and never needed the
slot
> > > number.
> > >
> > > –
> > > Gary G. Little
> > > Have Computer, Will Travel …
> > > 909-698-3191
> > > 909-551-2105
> > > http://www.wd-3.com
> > >
> > > “Ashok Kumar” wrote in message
> news:xxxxx@ntdev…
> > > >
> > > > For this very reason i want to know the physical slot.
> > > > I have 2 similar cards connected externally to 2 seperate devices
> > > > then how do i identify to which iam reading/writing.
> > > > I donot have any LED indication on the cards.
> > > > Any suggestions on HowTo achieve this???
> > > >
> > > >
> > > >
> > > > ----- Original Message -----
> > > > From: “Justin Schoenwald”
> > > > To: “NT Developers Interest List”
> > > > Sent: Wednesday, March 12, 2003 11:37 PM
> > > > Subject: [ntdev] Re: Finding Physical Slot Number in NT4
> > > >
> > > >
> > > > > Gary wrote:
> > > > >
> > > > > >> Why bother? You really really don’t even need the slot
> information
> > > > > since IRP_MN_START_DEVICE >> gives you the BARS for that device.
> Slot
> > > > > information is fairly well deprecatred and simply not used >> in
> 2000
> > > and
> > > > > above.
> > > > >
> > > > > True, for most real-life situations. But say I have two similar
> boards
> > > > that
> > > > > connect to separate external devices. Due to the lack of a
reliable
> > > > > solution (known by me, anyway) I’ve resorted to flashing LED’s on
> the
> > > > > boards to help.
> > > > >
> > > > > Justin
> > > > >
> > > > >
> > > > >
> > > > > —
> > > > > You are currently subscribed to ntdev as: xxxxx@rassit.com
> > > > > To unsubscribe send a blank email to
> xxxxx@lists.osr.com
> > > > >
> > > > >
> > > > > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY
FOR
> > THE
> > > > ADDRESSEE
> > > > > and may contain confidential and privileged information. If the
> reader
> > > of
> > > > this message
> > > > > is not the intended recipient, you are notified that any
> > dissemination,
> > > > distribution
> > > > > or copy of this communication is strictly Prohibited.If you have
> > > received
> > > > this message
> > > > > by error, please notify the sender immediately, return the
original
> > mail
> > > > to the sender
> > > > > and delete the message from your system.
> > > > >
> > > > >
> > > >
> > > >
> > > > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR
> THE
> > > ADDRESSEE
> > > > and may contain confidential and privileged information. If the
reader
> > of
> > > this message
> > > > is not the intended recipient, you are notified that any
> dissemination,
> > > distribution
> > > > or copy of this communication is strictly Prohibited.If you have
> > received
> > > this message
> > > > by error, please notify the sender immediately, return the original
> mail
> > > to the sender
> > > > and delete the message from your system.
> > > >
> > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > —
> > > You are currently subscribed to ntdev as: xxxxx@rassit.com
> > > To unsubscribe send a blank email to xxxxx@lists.osr.com
> > >
> > >
> > > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR
THE
> > ADDRESSEE
> > > and may contain confidential and privileged information. If the reader
> of
> > this message
> > > is not the intended recipient, you are notified that any
dissemination,
> > distribution
> > > or copy of this communication is strictly Prohibited.If you have
> received
> > this message
> > > by error, please notify the sender immediately, return the original
mail
> > to the sender
> > > and delete the message from your system.
> > >
> > >
> >
> >
> > THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
> ADDRESSEE
> > and may contain confidential and privileged information. If the reader
of
> this message
> > is not the intended recipient, you are notified that any dissemination,
> distribution
> > or copy of this communication is strictly Prohibited.If you have
received
> this message
> > by error, please notify the sender immediately, return the original mail
> to the sender
> > and delete the message from your system.
> >
> >
> >
> >
> >
>
>
>
> —
> You are currently subscribed to ntdev as: xxxxx@rassit.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE
> and may contain confidential and privileged information. If the reader of
this message
> is not the intended recipient, you are notified that any dissemination,
distribution
> or copy of this communication is strictly Prohibited.If you have received
this message
> by error, please notify the sender immediately, return the original mail
to the sender
> and delete the message from your system.
>
>

THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE
ADDRESSEE
and may contain confidential and privileged information. If the reader of
this message
is not the intended recipient, you are notified that any dissemination,
distribution
or copy of this communication is strictly Prohibited.If you have received
this message
by error, please notify the sender immediately, return the original mail to
the sender
and delete the message from your system.


You are currently subscribed to ntdev as: xxxxx@exgate.tek.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

It still does not tell you if the device is in a physical slot or an
embedded virtual slot. That information remains platform specific.

-----Original Message-----
From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
Sent: Friday, March 14, 2003 9:29 AM
To: NT Developers Interest List
Subject: [ntdev] Re: Finding Physical Slot Number in NT4

>device names. Unfortunately there is no Windows mechanism (to my
knowledge) to
>determine the actual physical slot corresponding to your bus and slot
numbers. This

The PCI spec mandates the things like “chassis number” in the
config space. I expect that PCI.SYS uses them to build the
UINumber and the device location string.

Max


You are currently subscribed to ntdev as:
xxxxx@stratus.com To unsubscribe send a blank email to
xxxxx@lists.osr.com

Which means that since you cannot guarantee that your can physically
identify a given board in a given postion, relative to infinity, the best
way to know Who is on first is by querying endpoints.

“Roddy, Mark” wrote in message news:xxxxx@ntdev…
>
> It still does not tell you if the device is in a physical slot or an
> embedded virtual slot. That information remains platform specific.
>
> > -----Original Message-----
> > From: Maxim S. Shatskih [mailto:xxxxx@storagecraft.com]
> > Sent: Friday, March 14, 2003 9:29 AM
> > To: NT Developers Interest List
> > Subject: [ntdev] Re: Finding Physical Slot Number in NT4
> >
> >
> > >device names. Unfortunately there is no Windows mechanism (to my
> > knowledge) to
> > >determine the actual physical slot corresponding to your bus and slot
> > numbers. This
> >
> > The PCI spec mandates the things like “chassis number” in the
> > config space. I expect that PCI.SYS uses them to build the
> > UINumber and the device location string.
> >
> > Max
> >
> >
> >
> > —
> > You are currently subscribed to ntdev as:
> > xxxxx@stratus.com To unsubscribe send a blank email to
> > xxxxx@lists.osr.com
> >
>
>
>