files.hpcmips revision 1.26
1#	$NetBSD: files.hpcmips,v 1.26 2000/03/12 12:08:16 takemura Exp $
2
3# maxpartitions must be first item in files.${ARCH}.
4maxpartitions 8
5
6maxusers 2 8 64
7
8#
9# Machine-independent SCSI drivers
10#
11
12include "dev/scsipi/files.scsipi"
13major	{sd = 3}
14major	{st = 4}
15major	{cd = 5}
16
17#
18# Machine-independent ATA drivers
19#
20
21include "dev/ata/files.ata"
22major	{wd = 1}
23
24#
25# Bus-independent devices
26#
27device mainbus { }			# no locators
28attach mainbus at root
29
30device cpu				# not optional
31attach cpu at mainbus
32file arch/hpcmips/hpcmips/cpu.c		cpu
33
34# CPU support option headers
35defopt	VR41X1
36defopt	TX39XX
37
38#
39# CPU-dependent files
40#
41file	arch/hpcmips/vr/vr.c		vr41x1	# NEC VR4000 series
42file	arch/hpcmips/vr/vr_idle.S	vr41x1
43file	arch/hpcmips/tx/tx39.c		tx39xx	# TOSHIBA TX3900 series
44
45file	arch/mips/mips/fp.S		softfloat
46
47file	arch/hpcmips/hpcmips/autoconf.c
48file	arch/hpcmips/hpcmips/conf.c
49file	arch/hpcmips/hpcmips/machdep.c
50file	arch/hpcmips/hpcmips/platid.c
51file	arch/hpcmips/hpcmips/platid_mask.c
52file	arch/hpcmips/hpcmips/platid_name.c
53file	arch/hpcmips/hpcmips/mainbus.c
54file	arch/hpcmips/hpcmips/bus_space.c
55#file	arch/hpcmips/hpcmips/bus_dma.c
56file	arch/hpcmips/hpcmips/disksubr.c	disk
57file	arch/hpcmips/hpcmips/config_hook.c
58
59# Console autoconfiguration code: selects between a framebuffers
60file	dev/cons.c
61file	arch/hpcmips/dev/bicons.c
62file	arch/hpcmips/dev/bifont.c
63
64# Raster operations
65include "dev/rasops/files.rasops"
66include "dev/wsfont/files.wsfont"
67
68#
69# Workstation Console
70#
71include "dev/wscons/files.wscons"
72device	fb: wsemuldisplaydev, rasops1, rasops2, rasops8, rasops15, rasops16
73attach	fb at mainbus
74file	arch/hpcmips/dev/fb.c           fb needs-flag
75
76define	hpcfbif {}
77device	hpcfb: wsemuldisplaydev, rasops1, rasops2, rasops8, rasops15, rasops16
78attach	hpcfb at hpcfbif
79file	arch/hpcmips/dev/hpcfb.c	hpcfb needs-flag
80
81device	bivideo: hpcfbif
82file	arch/hpcmips/dev/bivideo.c	bivideo needs-flag
83attach	bivideo at mainbus
84
85device btnmgr: wskbddev
86attach btnmgr at mainbus
87file	arch/hpcmips/dev/btnmgr.c	btnmgr
88
89#
90# ISA bus support
91#
92include "dev/isa/files.isa"
93
94#
95# pseudo devices
96#
97defpseudo	biconsdev
98file	arch/hpcmips/dev/biconsdev.c	biconsdev	needs-count
99
100#
101#  Vr41x1 integrated peripherals
102#
103device vrip { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [intr=-1], [pwctl=-1] }
104attach vrip at mainbus
105file arch/hpcmips/vr/vrip.c		vrip needs-flag
106
107device vrrtc
108attach vrrtc at vrip
109file arch/hpcmips/vr/rtc.c			vrrtc
110
111device vrcmu
112attach vrcmu at vrip
113file arch/hpcmips/vr/cmu.c			vrcmu
114
115device	vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]}		# GIU attachment
116device  gpbusif {[platform = -1], [comctrl = -1], [button0 = -1], [button1 = -1], [button2 = -1], [button3 = -1], [button4 = -1], [button5 = -1], [button6 = -1], [button7 = -1], [button8 = -1], [button9 = -1], [button10 = -1], [button11 = -1]} 
117device  newgpbusif { [platform = -1], [id = -1], [port = -1], [active = 1], [level = -1] }
118
119device vrgiu: vrisabif, gpbusif, newgpbusif
120attach vrgiu at vrip
121file arch/hpcmips/vr/vrgiu.c			vrgiu
122
123device gpbus
124attach gpbus at gpbusif
125file arch/hpcmips/vr/gpbus.c			gpbus
126
127device vrisab: isabus
128attach vrisab at vrisabif
129file arch/hpcmips/isa/isa_machdep.c		vrisab
130
131device pwctl
132attach pwctl at newgpbusif with pwctl_vrgiu
133file arch/hpcmips/vr/pwctl_vrgiu.c		pwctl_vrgiu
134
135device button
136attach button at newgpbusif with button_vrgiu
137file arch/hpcmips/vr/button_vrgiu.c		button_vrgiu
138
139device vrbcu
140attach vrbcu at vrip
141file arch/hpcmips/vr/bcu_vrip.c			vrbcu needs-flag
142
143device vrkiu: wskbddev
144attach vrkiu at vrip
145file arch/hpcmips/vr/vrkiu.c			vrkiu needs-flag
146
147#
148#	XXX files.pckbc XXX
149#
150device	pckbd: wskbddev
151attach	pckbd at pckbc
152file	dev/pckbc/pckbd.c		pckbd	needs-flag
153file	dev/pckbc/wskbdmap_mfii.c		pckbd | vrkiu | skbd
154defopt	PCKBD_LAYOUT
155
156device vrpmu
157attach vrpmu at vrip
158file arch/hpcmips/vr/vrpmu.c			vrpmu needs-flag
159
160device vrdsu
161attach vrdsu at vrip
162file arch/hpcmips/vr/vrdsu.c			vrdsu needs-flag
163
164define	tpcalib
165file arch/hpcmips/dev/tpcalib.c			tpcalib
166file arch/hpcmips/dev/mra.c			tpcalib
167
168device vrpiu: wsmousedev
169attach vrpiu at vrip: tpcalib
170file arch/hpcmips/vr/vrpiu.c			vrpiu
171
172#
173#	TOSHIBA TX3912/3922
174#
175defopt TX39_DEBUG
176defopt TX39_WATCHDOGTIMER
177defopt TX39ICUDEBUG
178defopt TX39CLKDEBUG
179defopt TX39BIUDEBUG
180defopt TX39IODEBUG
181defopt TX39POWERDEBUG
182defopt TX39UARTDEBUG
183defopt USE_POLL
184
185device txsim { }
186device txcsbusif {[platform = -1]}
187device txcomif {[slot = -1]}
188device txsibif {[slot = -1]}
189device ucbif { }
190device irif { }
191device txiomanif {[platform = -1]}
192
193attach txsim at mainbus
194file arch/hpcmips/tx/txsim.c		txsim
195file arch/hpcmips/tx/txsnd.c		txsim
196
197device tx39biu: txcsbusif
198attach tx39biu at txsim
199file arch/hpcmips/tx/tx39biu.c		tx39biu
200
201device txcsbus {[regcs=-1], [regcsbase=0], [regcssize=-1], [regcswidth=-1], [iocs=-1], [iocsbase=0], [iocssize=-1], [iocswidth=-1], [memcs=-1], [memcsbase=0], [memcssize=-1], [memcswidth=-1], [irq1=-1], [irq2=-1], [irq3=-1]}
202attach txcsbus at txcsbusif
203file arch/hpcmips/tx/txcsbus.c		txcsbus
204
205device tx39icu
206attach tx39icu at txsim
207file arch/hpcmips/tx/tx39icu.c		tx39icu
208
209device tx39power
210attach tx39power at txsim
211file arch/hpcmips/tx/tx39power.c	tx39power
212
213device tx39clock
214attach tx39clock at txsim
215file arch/hpcmips/tx/tx39clock.c	tx39clock
216
217device tx3912video: mainbus	# XXX crazy XXX
218attach tx3912video at txsim
219file arch/hpcmips/tx/tx3912video.c	tx3912video
220
221device tx39io: txiomanif
222attach tx39io at txsim
223file arch/hpcmips/tx/tx39io.c		tx39io
224
225device txioman
226attach txioman at txiomanif
227file arch/hpcmips/tx/txioman.c		txioman
228
229device tx39sib: txsibif
230attach tx39sib at txsim
231file arch/hpcmips/tx/tx39sib.c		tx39sib
232
233#	PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end)
234device ucb: ucbif
235attach ucb at txsibif
236file arch/hpcmips/dev/ucb1200.c		ucb
237
238device ucbtp: wsmousedev
239attach ucbtp at ucbif: tpcalib
240file arch/hpcmips/dev/ucbtp.c		ucbtp
241
242device ucbsnd
243attach ucbsnd at ucbif
244file arch/hpcmips/dev/ucbsnd.c		ucbsnd		needs-flag
245
246device ucbio: newgpbusif
247attach ucbio at ucbif
248file arch/hpcmips/dev/ucbio.c		ucbio
249
250device ucbioport
251attach ucbioport at newgpbusif
252file arch/hpcmips/dev/ucbioport.c	ucbioport
253
254device tx39uart: txcomif
255attach tx39uart at txsim
256file arch/hpcmips/tx/tx39uart.c		tx39uart	needs-flag
257
258device txcom: irif
259attach txcom at txcomif
260file arch/hpcmips/tx/txcom.c		txcom
261
262device tx39ir
263attach tx39ir at irif
264file arch/hpcmips/tx/tx39ir.c		tx39ir
265
266#	ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA)
267device it8368e: pcmciabus
268attach it8368e at txcsbus
269file arch/hpcmips/dev/it8368.c	it8368e
270
271device skbdif {}
272
273#	MITUBISHI M38813 keryboard controller
274device m38813c: skbdif
275attach m38813c at txcsbus
276file arch/hpcmips/dev/m38813c.c		m38813c		needs-flag
277
278#	PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard)
279device tc5165buf: skbdif
280attach tc5165buf at txcsbus
281file arch/hpcmips/dev/tc5165buf.c	tc5165buf	needs-flag
282
283#	Simple keyboard interface for wskbd
284device skbd: wskbddev
285attach skbd at skbdif
286file arch/hpcmips/dev/skbd.c		skbd
287
288
289#	TOSHIBA TC6358E(Plum2)
290device plumif {}
291device plum: plumif
292attach plum at txcsbus
293file arch/hpcmips/dev/plum.c		plum
294
295device plumicu
296attach plumicu at plumif
297file arch/hpcmips/dev/plumicu.c		plumicu
298
299device plumpower
300attach plumpower at plumif
301file arch/hpcmips/dev/plumpower.c	plumpower
302
303device plumvideo: mainbus	# XXX crazy XXX
304attach plumvideo at plumif
305file arch/hpcmips/dev/plumvideo.c	plumvideo
306
307device plumpcmcia: pcmciabus
308attach plumpcmcia at plumif
309file arch/hpcmips/dev/plumpcmcia.c	plumpcmcia
310
311device plumiobusif {[platform = -1], [slot = -1]}
312device plumiobus: plumiobusif
313attach plumiobus at plumif
314file arch/hpcmips/dev/plumiobus.c	plumiobus
315
316device plumisab: isabus
317attach plumisab at plumiobusif
318file arch/hpcmips/isa/plumisa_machdep.c	plumisab
319
320# OHCI USB controller
321#attach	ohci at plumif with plumohci
322#file	arch/hpcmips/dev/plumohci.c	plumohci
323
324#device txisab: isabus
325#attach txisab at txcsbus
326#file arch/hpcmips/isa/txisa_machdep.c	txisab
327
328#
329#	Real-time clock (not optional)
330#
331file	arch/hpcmips/hpcmips/clock.c
332file	dev/clock_subr.c
333
334# Floppy disk controller
335device	fdc {drive = -1}
336#attach	fdc at isa
337#device	fd: disk, isadma
338device	fd: disk
339#attach	fd at fdc
340file	arch/i386/isa/fd.c		fdc needs-flag
341major	{fd = 2}
342
343# network devices MII bus
344include "dev/mii/files.mii"
345
346# XXXX pcic here because it needs to be late.  The catch: pcic needs
347# to be late, so devices which attach to it are attached late.  But it
348# needs to be before its isa and pci attachments.  This answer is
349# non-optimal, but I don't have a better answer right now.
350
351# PCIC pcmcia contoller
352# XXX this needs to be done very late, so it's done here.  This feels
353# like a kludge, but it might be for the best.
354
355defopt	PCIC_ISA_ALLOC_IOBASE
356defopt	PCIC_ISA_ALLOC_IOSIZE
357defopt	PCIC_ISA_INTR_ALLOC_MASK
358
359device	pcic: pcmciabus
360file	dev/ic/i82365.c			pcic
361
362#
363# PCIC pcmcia controller
364#
365attach	pcic at isa with pcic_isa
366file	dev/isa/i82365_isa.c			pcic_isa
367file	dev/isa/i82365_isasubr.c		pcic_isa
368
369#
370# Machine-independent PCMCIA drivers
371#
372include "dev/pcmcia/files.pcmcia"
373
374# Serial Interface Unit
375attach com at vrip with com_vrip
376file	arch/hpcmips/vr/com_vrip.c			com_vrip
377
378# Memory Disk for boot tape
379file arch/hpcmips/dev/md_root.c		memory_disk_hooks
380major	{md = 6}
381
382#include "dev/usb/files.usb"
383