Re: LAN91C and XSCALE
- From: Marco Contenti <marco.contenti@xxxxxxxxxx>
- Date: Sat, 08 Jul 2006 09:54:18 +0200
authorwjf ha scritto:
Hi All,
I am hoping someone out there has some experience with the LAN91C111 from SMSC and the PXA270 board. I basically have the driver provided by SMSC, and I went into Lan91C111_Init.C and changed the base IO address to match that my platform uses. I also attempted to set up the registry but honestly despite the PDF doc that came with the SMSC code I am confused as to what values I should place in the reg file.
It would seem to me that I would need to set the "InterruptNumber", "IoBaseAddress", "Transceiver", and "SysIntr" in the registry for NDIS to work properly with the generated LAN91C111.DLL. But I have no idea what goes where. My baseIO address I suspect is the uncached virtual address where my hardware resides. In my bootloader, I have written some low-level diagnostics to read the chip ID, set the MAC, etc., and all this seems to work so I believe the chip is where I think it is.
My system interuppt for the chip is 0x1D. But that's one value and "InterruptNumber", "Transeiver", and "SysIntr" constitute 3 parameters. I believe I read somewhere that specifying a "SysIntr" causes the other 2 parms to get ignored. Is that true?
Regardless in the platform my ENET is not working (doesn't show up at all). In my debug log I see that right after the driver loads device.exe chokes with a "Data Abort" error.
Any thoughts anyone? I sure would appreciate it. Oh, if its important, I am using CE.NET 4.1, not 5.0. Thanks in advance to anyone who takes the time to respond.
Bill
1. PB also provides a driver for SMSC LAN. Did you try it?
2. In CE 5.0 the preferred style for configuring interrupt is setting "InterruptNumber" and leaving the OAL automatically allocate a Sysintr for it. Since the IRQ comes from a GPIO you should make sure it's configured in the OAL.
3. "Data Abort" means that some address points to nowhere. Look at how your driver initializes the I/O address to know whether it wants physical or virtual uncached address (it's not hard to find: look for VirtualCopy using PAGE_PHYSICAL or not).
--
Marco Contenti
PROJECT s.a.s. (MSWEP)
www.projectsas.it
marco.contenti@<see domain above>
.
- Follow-Ups:
- Re: LAN91C and XSCALE
- From: Dean Ramsier
- Re: LAN91C and XSCALE
- Prev by Date: Re: Buffer size in serial port???
- Next by Date: Re: Buffer size in serial port???
- Previous by thread: Re: LAN91C and XSCALE
- Next by thread: Re: LAN91C and XSCALE
- Index(es):
Relevant Pages
|