I need a Oemsetup.inf file for wanminiport of PCI type.

Hi,

We are developing a WanMiniport driver on WinNT 4.0 platform. This
miniport talks to the PCI based WAN NIC card. I need the right
oemsetup.inf for this. The one available in the DDK sample is not
supporting the PCI interface type. Trying with this file, the miniport
was not able to detect the card.

So if any body has the oemsetup.inf file of the above type (for NT 4.0),
please let me know.

I am also curious to know is there a way of creating the .inf using any
tools. Going through the MSDN documents and doing it manually, looks
impossible.

Thanks
Sridhar

Shreedhar M.R.
Processor Systems India Pvt. Ltd.
Ph : 2273090, 2272868
e-mail: xxxxx@procsys.com

Hello ,

s> We are developing a WanMiniport driver on WinNT 4.0 platform. This
s> miniport talks to the PCI based WAN NIC card. I need the right
s> oemsetup.inf for this. The one available in the DDK sample is not
s> supporting the PCI interface type. Trying with this file, the miniport
s> was not able to detect the card.

Add to your INF file the PCI Vendor,SubVendor ID and write this parameter to the
registry. In miniportInitialize read this parameter. Now scan the
PCI Bus for your Vendor ID and when you find the right slot get
the current hardware information from PCI configuration space.

for slot = 0 …

NdisReadPciSlotInformation(
ndisAdapterHandle,
slot,
0, // offset
&pciVendorID,
4);

NdisReadPciSlotInformation(
ndisAdapterHandle,
slot,
0x2C, // offset
&pciSubVendorID,
4);

if ( ( pciVendorID == ??) && (pciSubvendorID == ??) break;

Now use the slot number to read the whole PCI configuration space.

This works very fine.

mathias