This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Driver for the SMC 91c96 eth chip in RedBoot?
- To: Jordi Colomer <jco at ict dot es>
- Subject: Re: [ECOS] Driver for the SMC 91c96 eth chip in RedBoot?
- From: schuehle at t-online dot de (Stefan Eletzhofer)
- Date: Thu, 26 Jul 2001 15:46:46 +0200
- Cc: ecos <ecos-discuss at sourceware dot cygnus dot com>
- References: <01072612294904.27298@ptcm-rv-38> <01072614570505.27298@ptcm-rv-38> <3B601E6F.913CA09C@ict.es>
- Reply-To: stefan dot eletzhofer at pruftechnik-rv dot com
Am Don, 26 Jul 2001 schrieben Sie:
> >
> > I just looked at the Linux version of the driver which supports also 8 bit
> > i/o access. All they do is to exchange the inw/outw with 8 bit versions which
> > do 2 inb/outb calls.
> > I suppose that if i:
> > 1) implement put_reg() and get_reg() in such a way that 2 8-bit i/o
> > accesses are done
> > 2) write a wrapper func for HAL_READ_UINT16 and HAL_WRITE_UINT16
> > to do 8 bit accesses
> > 3) hide above changes with some #ifdefs and macros
> > the driver could be made quickly working in 8-bit mode.
> >
> > What do you think? Is this the right way to do it?
> >
>
> Your idea looks fine. However, you should take into account what
> I said about the strange address bus alignment. In my patch I have
> solved this by simply adding a config variable that shifts the
> address before the inw/outw by a fixed number of bits.
> When in 8-bit mode, then the number of bits must be reduced by one.
>
> It is important not slow down these functions, for obvious
> performance reasons.
>
> BTW, I see that my patch hasn't been applied yet because the
> people at Redhat can't find my copyright assignment, but it
> will be solved soon probably.
>
> The patch is needed so that the address shift and PCMCIA mode
> is supported. If it gets delayed, I can send you the files.
Sorry to bother you again, but can you please send me the files anyway? I think
i'll be able to start this thing quite soon, so ....
Thank you,
Stefan
>
> Jordi Colomer