Subject: Re: New device for hpcmips
To: TAKEMURA Shin Takemura <takemura@ca2.so-net.ne.jp>
From: Markus Hennecke <markus.hennecke@fh-swf.de>
List: port-hpcmips
Date: 01/10/2004 16:05:35
On Sat, 10 Jan 2004, TAKEMURA Shin Takemura wrote:

> I don't know if we can attach two ISA bus at once.
> Did you already try that?
>
> vrisab0	at vrgiu? platform SIEMENS_MOBIC_T8 isaportoffset 0x0
> isa0	at vrisab0
> sm0	at isa0 port 0x300 irq 0x0001000a
>
> vrisab1 at vrgiu? platform SIEMENS_MOBIC_T8 isaportoffset 0x1000000
> isa1	at vrisab1
> pcic0	at isa1 port 0x3e0 iomem 0x70000 iosiz 0x4000 irq 0x000d0003

Yes, I did try that but it did not work.
After looking at the sources I found the kernel options
PCIC_ISA_ALLOC_IOBASE and PCIC_ISA_ALLOC_IOSIZE. So using

vrisab0 at vrgiu? platform SIEMENS_MOBIC_T8 isaportoffset 0x0
isa0    at vrisab0
sm0     at isa0 port 0x300 irq 0x0001000a
nsphyter* at mii? phy ?
pcic0   at isa0 port 0x3e0 iomem 0x70000 iosiz 0x4000 irq 0x000d0003
options PCIC_ISA_ALLOC_IOBASE=0x01000400
options PCIC_ISA_ALLOC_IOSIZE=0xbff

in my config file gave me a kernel that recognized the compact flash
medium:

pcic0: using irq 851971 for socket events
wdc0 at pcmcia1 function 0pcic0: port 0x15000400-0x1500040f

atabus0 at wdc0 channel 0
pcmcia1: card irq 3
wd0 at atabus0 drive 0: <SAMSUNG CF/ATA>
wd0: drive supports 4-sector PIO transfers, LBA addressing
wd0: 248 MB, 992 cyl, 16 head, 32 sec, 512 bytes/sect x 507904 sectors

I have to check why setting "port 0x3e0" does actually work. Looks like
some address bits are not used.

Markus