How can I access registers on a NIC (RTL8029AS), specyfication gives me
registers , but where are they, in some structure to write directly to
NIC memory or what?? I'm workig and writing for win2k.
Do I have to worry about PHY in my miniport driver??
Living it alone without managing would cause errors??

Re: NIC again by Maxim

Maxim
Sun May 30 22:59:14 CDT 2004

Read the hardware spec for this chip. Only it can give the answers.

--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com


"Przemek Lipka" <lipa@bzyq.inter-komp.pl> wrote in message
news:Pine.LNX.4.58L.0405302245100.25882@bzyq.xq.pl...
> How can I access registers on a NIC (RTL8029AS), specyfication gives me
> registers , but where are they, in some structure to write directly to
> NIC memory or what?? I'm workig and writing for win2k.
> Do I have to worry about PHY in my miniport driver??
> Living it alone without managing would cause errors??
>



Re: NIC again by Calvin

Calvin
Mon May 31 10:13:47 CDT 2004

Not sure about RTL8029. For many 10/100M NICs, the registers are mapped to
both memory and I/O space. It's accessible by memory dereference and/or I/O
instructions.

To access them in a ndis miniport driver, you need to:
1) obtain the resource ranges( i/o, memory, IRQ) by
NdisMQueryAdapterResources
2) make the accessible by NdisMMapIoSpace

Then you can access the registers by NdisReadRegisterUxxx functions.

PHY need to be properly setup in order the get the right
media/link/speed/plex config.

Good luck
-
Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

"Przemek Lipka" <lipa@bzyq.inter-komp.pl> wrote in message
news:Pine.LNX.4.58L.0405302245100.25882@bzyq.xq.pl...
> How can I access registers on a NIC (RTL8029AS), specyfication gives me
> registers , but where are they, in some structure to write directly to
> NIC memory or what?? I'm workig and writing for win2k.
> Do I have to worry about PHY in my miniport driver??
> Living it alone without managing would cause errors??
>