Hello,

I am modifying an NDIS driver and I keep getting the error
message
"unresolved external symbol NDIS_PORT_TO_PORT "

when calling the function: "NdisReadPortUshort"

I can not figure out where this macro is defined. A
general text search on the entire OS install does not
reveal it. Can someone tell me where this MACRO is located?

Platform : PXA255
OS : winCE 4.2

Thanks in advance -Jeff

RE: unresolved external symbol NDIS_PORT_TO_PORT by Woojung_DOT_Huh_AT_smsc_DOT_com>

Woojung_DOT_Huh_AT_smsc_DOT_com>
Fri Apr 22 21:57:01 CDT 2005

NdisReadPortUshort() is macro of NdisRawReadPortUshort() and
NdisRawReadPortUshort() is marco of READ_PORT_USHORT() at ndis.h.

It seems that you defined (or defined by someone) READ_PORT_USHORT() to
NDIS_PORT_TO_PORT().

Woojung

"jeffs" wrote:

> Hello,
>
> I am modifying an NDIS driver and I keep getting the error
> message
> "unresolved external symbol NDIS_PORT_TO_PORT "
>
> when calling the function: "NdisReadPortUshort"
>
> I can not figure out where this macro is defined. A
> general text search on the entire OS install does not
> reveal it. Can someone tell me where this MACRO is located?
>
> Platform : PXA255
> OS : winCE 4.2
>
> Thanks in advance -Jeff
>
>

RE: unresolved external symbol NDIS_PORT_TO_PORT by jeffs

jeffs
Fri Apr 22 22:32:20 CDT 2005

Hi woojung,

Thanks for the response. Not quite sure I understand what
you are telling me. ndisreadportushort() is defined in
ndis.h as:

#define NdisReadPortUshort(Handle,Port,Data) \
NdisRawReadPortUshort(NDIS_PORT_TO_PORT((Handle),(Port)),(Data))

However, I can not find where NDIS_PORT_TO_PORT(,) is
defined. Let me know if I am misunderstanding something here.

Thanks! -Jeff



>-----Original Message-----
>NdisReadPortUshort() is macro of NdisRawReadPortUshort() and
>NdisRawReadPortUshort() is marco of READ_PORT_USHORT() at
ndis.h.
>
>It seems that you defined (or defined by someone)
READ_PORT_USHORT() to
>NDIS_PORT_TO_PORT().
>
>Woojung
>
>"jeffs" wrote:
>
>> Hello,
>>
>> I am modifying an NDIS driver and I keep getting the error
>> message
>> "unresolved external symbol NDIS_PORT_TO_PORT "
>>
>> when calling the function: "NdisReadPortUshort"
>>
>> I can not figure out where this macro is defined. A
>> general text search on the entire OS install does not
>> reveal it. Can someone tell me where this MACRO is located?
>>
>> Platform : PXA255
>> OS : winCE 4.2
>>
>> Thanks in advance -Jeff
>>
>>
>.
>

Re: unresolved external symbol NDIS_PORT_TO_PORT by jamestheDork

jamestheDork
Mon Apr 25 13:43:02 CDT 2005

It may be a simple matter of just:
#include "Ndis.h". Let me know if this helps?


RE: unresolved external symbol NDIS_PORT_TO_PORT by Woojung_DOT_Huh_AT_smsc_DOT_com>

Woojung_DOT_Huh_AT_smsc_DOT_com>
Mon Apr 25 20:44:03 CDT 2005

Jeffs,

I missed NDIS_PORT_TO_PORT at the macro of "NdisReadPortUshort()". :-(
As you mentioned, NDIS_PORT_TO_PORT is not defined anyway.

I don't know about Desktop DDK but I read that it was old (Win98?) NDIS API.
I'm not sure but it might be NDIS API for PC.

Woojung

"jeffs" wrote:

> Hi woojung,
>
> Thanks for the response. Not quite sure I understand what
> you are telling me. ndisreadportushort() is defined in
> ndis.h as:
>
> #define NdisReadPortUshort(Handle,Port,Data) \
> NdisRawReadPortUshort(NDIS_PORT_TO_PORT((Handle),(Port)),(Data))
>
> However, I can not find where NDIS_PORT_TO_PORT(,) is
> defined. Let me know if I am misunderstanding something here.
>
> Thanks! -Jeff
>
>
>
> >-----Original Message-----
> >NdisReadPortUshort() is macro of NdisRawReadPortUshort() and
> >NdisRawReadPortUshort() is marco of READ_PORT_USHORT() at
> ndis.h.
> >
> >It seems that you defined (or defined by someone)
> READ_PORT_USHORT() to
> >NDIS_PORT_TO_PORT().
> >
> >Woojung
> >
> >"jeffs" wrote:
> >
> >> Hello,
> >>
> >> I am modifying an NDIS driver and I keep getting the error
> >> message
> >> "unresolved external symbol NDIS_PORT_TO_PORT "
> >>
> >> when calling the function: "NdisReadPortUshort"
> >>
> >> I can not figure out where this macro is defined. A
> >> general text search on the entire OS install does not
> >> reveal it. Can someone tell me where this MACRO is located?
> >>
> >> Platform : PXA255
> >> OS : winCE 4.2
> >>
> >> Thanks in advance -Jeff
> >>
> >>
> >.
> >
>