[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Calling the PCI BIOS under Windows NT 4.0 / Windows 2000
Max,
On NT, you don't want to call the PCI BIOS.
Instead, the operating system provides the calls
you need in the NT kernel mode layer. If you
are writing a device driver for your board,
then you can do calls in kernel mode to get the
info you need.
The key call is HalGetBusData(). You will find
documentation on it in the NT device driver kit,
included with the MSDN subscriptions. Also, there
are at least a couple of example PCI device
drivers shown in the samples that should give you
a good idea of how to go about using this call and
the information it returns.
The rule here is if the OS supplies an API to the
PCI configuration space, you should not attempt
to circumvent that. Otherwise, you may cause conflicts
with assignments made or changed by the OS after the
BIOS was finished during power up and subsequent loading
of the OS.
Good luck,
-- DaveN
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
=-=
Dave New, NewD@elcsci.com | Machine vision?
ESI Vision Products Division | At least *they* can see the future...
3980 Ranchero Drive |
Ann Arbor, MI 48108 | Opinions expressed are mine. | PGP
2.6
(734) 332-7010 VOX | 08 12 9F AF 5B 3E B2 9B 6F DC 66 5A 41 0B AB
29
(734) 332-7077 FAX
-----Original Message-----
From: maximino.castro@ni.com [mailto:maximino.castro@ni.com]
Sent: Thursday, January 11, 2001 3:49 PM
To: pci-sig@znyx.com
Subject: Calling the PCI BIOS under Windows NT 4.0 / Windows 2000
I am trying to call the PCI BIOS so that I can attain the Base Address that
have been assigned to boards with a certain vendor ID. I am able to get
the entry point for the BIOS32 Service Directory but I am unable to make
any function calls to the BIOS.
I would appreciate any help on this subject or any other ways I might be
able to get the Base Address using the Vendor ID.
Thanks,
Max