KITL with Product Ethernet, not working
From: Nitin (nitin_at_soc-soft.com)
Date: 07/05/04
- Next message: yu su: "Is it possible to auto-reload pnp driver?"
- Previous message: Michael S: "Avoiding cleanup race conditions: How to?"
- Next in thread: Stephan Wolf [MVP]: "Re: KITL with Product Ethernet, not working"
- Reply: Stephan Wolf [MVP]: "Re: KITL with Product Ethernet, not working"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 5 Jul 2004 20:20:34 +0530
We have been working on supporting on-chip Ethernet controller (similar to
TOSHIBAS tc35815 Ethernet controller) of TX4938 on WindowsCE .NET Operating
System.
TX4938 supports 2 Ethernet channels which are connected to the internal PCI
controller. To get access to the registers of the on-chip Ethernet
controller, the internal PCI controller was initialized at the HAL layer and
the MBASE registers of the on-chip Ethernet controller were hard coded.
And in the driver code of on-chip Ethernet controller, we are reading the
assigned address (physical) from the registry entry using
NdisOpenConfiguration & NdisReadConfiguration functions in
MiniportInitialize function. Referring to NDIS API's, to map the registers
of the on-chip Ethernet controller, we tried to use
NdisMAllocateMapRegisters function but ended up with errors. So we mapped
the registers using MmMapIoSpace function call and were successful in
accessing the registers. Later we implemented transmit and receive function
with required buffer management and interrupt functions. All the above
mentioned were done without KITL support. But when we added KITL support and
tested the Ethernet driver, it generates exception in ISR function call at
the first register access statements. Below is the displayed message when
exception occurs:
/**************************************************************************/
1685 PID:47fa2bea TID:27f72c8a +TX4938EthIsr: Interrupt Service Routine
1685 PID:47fa2bea TID:27f72c8a ISR********************************** Adapter
Memory : 000b0000
1686 PID:47fa2bea TID:27f72c8a Exception 007 Thread=87f72a20 Proc=47fa2bea
1687 PID:47fa2bea TID:27f72c8a AKY=00000009 PC=03df3750 RA=03df3744
BVA=000c0000
1687 PID:47fa2bea TID:27f72c8a Process 'device.exe'
1689 PID:47fa2bea TID:27f72c8a Exception 002 Thread=87f72a20 Proc=47fa2bea
1689 PID:47fa2bea TID:27f72c8a AKY=00000009 PC=8083ef64 RA=8083ef30
BVA=00000000
1690 PID:47fa2bea TID:27f72c8a Process 'device.exe'
1691 PID:47fa2bea TID:27f72c8a +TX4938EthIsr: Interrupt Service Routine
1691 PID:47fa2bea TID:27f72c8a ISR********************************** Adapter
Memory : 000b0000
1692 PID:47fa2bea TID:27f72c8a Exception 007 Thread=87f72a20 Proc=47fa2bea
1693 PID:47fa2bea TID:27f72c8a AKY=00000009 PC=03df3750 RA=03df3744
BVA=fffffbca
1694 PID:47fa2bea TID:27f72c8a Process 'device.exe'
1694 PID:47fa2bea TID:27f72c8a +TX4938EthIsr: Interrupt Service Routine
1695 PID:47fa2bea TID:27f72c8a ISR********************************** Adapter
Memory : 000b0000
1696 PID:47fa2bea TID:27f72c8a -TX4938EthIsr: Interrupt Service Routine
1696 PID:47fa2bea TID:c7f8ffba +TX4938EthHandleInterrupt
1697 PID:47fa2bea TID:c7f8ffba Exception 007 Thread=87f7c400 Proc=47fa2bea
1698 PID:47fa2bea TID:c7f8ffba AKY=ffffffff PC=03df37b8 RA=03df37b0
BVA=0807eff8
1698 PID:47fa2bea TID:c7f8ffba Process 'device.exe'
1700 PID:47fa2bea TID:c7f8ffba Exception 002 Thread=87f7c400 Proc=47fa2bea
1700 PID:47fa2bea TID:c7f8ffba AKY=ffffffff PC=8083f038 RA=8083ef30
BVA=00000000
1701 PID:47fa2bea TID:c7f8ffba Process 'device.exe'
1705 PID:47fa2bea TID:e7f779ca Entering TX4938EthQueryInformation
1706 PID:47fa2bea TID:e7f779ca OID:0x00010114
/**************************************************************************/
Could someone please give some inputs regarding the exception generated, and
how it could be eliminated?
Thank you.
Regards,
Anand Lalgondar
- Next message: yu su: "Is it possible to auto-reload pnp driver?"
- Previous message: Michael S: "Avoiding cleanup race conditions: How to?"
- Next in thread: Stephan Wolf [MVP]: "Re: KITL with Product Ethernet, not working"
- Reply: Stephan Wolf [MVP]: "Re: KITL with Product Ethernet, not working"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|