[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[pbsd-mg2] Platform ID



 | soda さんの示しているような vrgiubus 案もあります。
 | 
 | それから、giu の先だけでなく、vrip 自身の attach の時に
 | も  platid を参照しようかと思っているのですが...

vrgiubusじゃなく、ISA-busにしてしまうのはどうなんでしょう? 
arch/atari/isa/isa_machdep.cのような感じにbus_space_tag_tを
作って、
	iba.iba_iot->base  = ISA_IOSTART;
	iba.iba_memt->base = ISA_MEMSTART;
は、
isa0 platform MCR 
isa1 platform EVEREX
で、
# MCR
pcic0 at isa0 port 0x3e0 iomem 0x70000 iosiz 0x4000 irq 9
# EVEREX
pcic0 at isa1 port 0x3e0 iomem 0x70000 iosiz 0x4000 irq 23
みたいな感じにベースを変えたり。(変えなくてもいいんだけど...)

 それと、vrip自身のattachの時にというのは、Vr41x1自体の実装が異なるも
のを振りわける必要があるということでしょうか?

で、試しにどんな具合だろうかと、vrgiuの下にMI ISA-busをくっつけて

vrgiu*	at vrip? addr 0x0b000100 size 0x20 intr 8
isa*	at vrgiu? # ISA bus
pcic0	at isa? port 0x140003e0 iomem 0x10070000 iosiz 0x4000 irq 9
pcmcia0	at pcic? controller ? socket ?
pcmcia1	at pcic? controller ? socket ?

で、とりあえずブートさせるとこまでは見てみましたが、これでいけるのかど
うか...。GPIOのポート番号と、PCICの理解するIRQのマッピングがいやらしい
かなと感じてるんですが...
---
UCHIYAMA Yasushi
uch@nop.or.jp 


Connected.
Copyright (c) 1996, 1997, 1998, 1999
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 1.3I (NARU) #13: Wed Jul 21 04:26:05 JST 1999
    uch@anko:/work/netbsd/hpcmips/sys/arch/hpcmips/compile/NARU
NEC VR4111 rev0.0
real mem  = 8388608
avail mem = 6127616
using 204 buffers containing 835584 bytes of memory
../../../../arch/hpcmips/vr/vr.c(137): vr_bus_reset() not implemented.
mainbus0 (root)
cpu0 at mainbus0: cpu0: NEC VR4100 CPU Rev. 5.0 with software emulated floating point Rev. 0.0
cpu0: L1 cache: 16kb/16b Instruction, 8kb/16b Data, direct mapped
cpu0: No L2 cache
vrip0 at mainbus0
com0 at vrip0 addr 0xc000000-0xc000007 intr 9: ns16550a, working fifo
com0: console
vrip_intr_setmask2:
vrrtc0 at vrip0 addr 0xb0000c0-0xb0000df intr 2vrip_intr_setmask2:

vrgiu0 at vrip0 addr 0xb000100-0xb00011f intr 8vrip_intr_setmask2:
irq8 level2 mask:......................||.|||..||
irq8 level2 mask:................................

isa0 at vrgiu0
pcic0 at isa0 port 0x140003e0-0x140003e1 iomem 0x10070000-0x10073fff irq 9
pcic0: controller 0 (Intel 82365SL Revision 1) has sockets A and B
pcic0: controller 1 (Intel 82365SL Revision 1) has socket A only
isa_intr_establish:
vrip_intr_setmask2:
irq8 level2 mask:................................
irq8 level2 mask:...............................|
pcmcia0 at pcic0 controller 0 socket 0
pcmcia1 at pcic0 controller 0 socket 1
wdc0 at pcmcia1 function 0 port 0x14000000-0x1400000f
isa_intr_establish:
vrip_intr_setmask2:
irq8 level2 mask:...............................|
irq8 level2 mask:......................|.........
pcmcia1: card irq 3
wd0 at wdc0 channel 0 drive 0: <Hitachi CV 6.1.2>
wd0: drive supports 1-sector pio transfers, lba addressing
wd0: 61MB, 984 cyl, 4 head, 32 sec, 512 bytes/sect x 125952 sectors

isa_intr_disestablish:
pcmcia at pcic0 controller 1 socket 0 not configured
vrbcu0 at vrip0 addr 0xb000000-0xb00001f
vrkiu0 at vrip0 addr 0xb000180-0xb00019f intr 7vrip_intr_setmask2:
irq7 level2 mask:.............||.
irq7 level2 mask:................
vrip_intr_setmask2:
irq7 level2 mask:................
irq7 level2 mask:..............|.
(8, 0): console
../../../../arch/hpcmips/vr/vr.c(137): vr_bus_reset() not implemented.
boot device: wd0
root on wd0a dumps on wd0b
isa_intr_establish:
vrip_intr_setmask2:
irq8 level2 mask:......................|.........
irq8 level2 mask:......................|.........
pcmcia1: card irq 3
WARNING: old BSD partition ID!
isa_intr_disestablish:
isa_intr_establish:
vrip_intr_setmask2:
irq8 level2 mask:......................|.........
irq8 level2 mask:......................|.........
pcmcia1: card irq 3
WARNING: preposterous clock chip time
 -- CHECK AND RESET THE DATE!
root file system type: ffs
Enter pathname of shell or RETURN for sh: 
Terminal type? ^C
#