files.hpcmips revision 1.36
1#	$NetBSD: files.hpcmips,v 1.36 2000/07/30 04:41:19 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
55file	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"
72file	dev/pckbc/wskbdmap_mfii.c		btnmgr | vrkiu | skbd
73file	arch/hpcmips/dev/pckbd_encode.c		btnmgr | vrkiu | skbd
74defopt	PCKBD_LAYOUT
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
83file	arch/hpcmips/dev/hpccmap.c	bivideo
84attach	bivideo at mainbus
85
86device btnmgr: wskbddev
87attach btnmgr at mainbus
88file	arch/hpcmips/dev/btnmgr.c	btnmgr
89
90file	arch/hpcmips/dev/video_subr.c	tx3912video | plumvideo
91
92#
93# power management
94#
95include "arch/hpcmips/dev/apm/files.apm"
96device hpcapm: apmdevif
97attach hpcapm at mainbus
98file	arch/hpcmips/dev/hpcapm.c	hpcapm
99
100#
101# ISA bus support
102#
103include "dev/isa/files.isa"
104
105#
106# pseudo devices
107#
108defpseudo	biconsdev
109file	arch/hpcmips/dev/biconsdev.c	biconsdev	needs-count
110
111#
112#  Vr41x1 integrated peripherals
113#
114device vrip { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [intr=-1], [pwctl=-1] }
115attach vrip at mainbus
116file arch/hpcmips/vr/vrip.c		vrip needs-flag
117
118device vrrtc
119attach vrrtc at vrip
120file arch/hpcmips/vr/rtc.c			vrrtc
121
122device vrcmu
123attach vrcmu at vrip
124file arch/hpcmips/vr/cmu.c			vrcmu
125
126device	vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]}		# GIU attachment
127device  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]} 
128device  newgpbusif { [platform = -1], [id = -1], [port = -1], [active = 1], [level = -1] }
129
130device vrgiu: vrisabif, gpbusif, newgpbusif
131attach vrgiu at vrip
132file arch/hpcmips/vr/vrgiu.c			vrgiu
133
134device gpbus
135attach gpbus at gpbusif
136file arch/hpcmips/vr/gpbus.c			gpbus
137
138device vrisab: isabus
139attach vrisab at vrisabif
140file arch/hpcmips/isa/isa_machdep.c		vrisab
141
142device pwctl
143attach pwctl at newgpbusif with pwctl_vrgiu
144file arch/hpcmips/vr/pwctl_vrgiu.c		pwctl_vrgiu
145
146device button
147attach button at newgpbusif with button_vrgiu
148file arch/hpcmips/vr/button_vrgiu.c		button_vrgiu
149
150device vrbcu
151attach vrbcu at vrip
152file arch/hpcmips/vr/bcu_vrip.c			vrbcu needs-flag
153
154device vrkiu: wskbddev
155attach vrkiu at vrip
156file arch/hpcmips/vr/vrkiu.c			vrkiu needs-flag
157
158device vrpmu
159attach vrpmu at vrip
160file arch/hpcmips/vr/vrpmu.c			vrpmu needs-flag
161
162device vrdsu
163attach vrdsu at vrip
164file arch/hpcmips/vr/vrdsu.c			vrdsu needs-flag
165
166define	tpcalib
167file arch/hpcmips/dev/tpcalib.c			tpcalib
168file arch/hpcmips/dev/mra.c			tpcalib
169
170device vrpiu: wsmousedev
171attach vrpiu at vrip: tpcalib
172file arch/hpcmips/vr/vrpiu.c			vrpiu
173
174attach ohci at vrip with ohci_vrip
175file arch/hpcmips/dev/ohci_vrip.c		ohci_vrip
176
177device mqvideo: hpcfbif
178attach mqvideo at vrip with mqvideo_vrip
179file arch/hpcmips/vr/mq200_vrip.c		mqvideo_vrip
180file arch/hpcmips/dev/mq200.c			mqvideo
181
182#
183#	TOSHIBA TX3912/3922
184#
185defopt TX39_DEBUG
186defopt TX39_WATCHDOGTIMER
187defopt TX39ICUDEBUG
188defopt TX39CLKDEBUG
189defopt TX39BIUDEBUG
190defopt TX39IODEBUG
191defopt TX39POWERDEBUG
192defopt TX39UARTDEBUG
193defopt USE_POLL
194
195device txsim { }
196device txcsbusif {[platform = -1]}
197device txcomif {[slot = -1]}
198device txsibif {[slot = -1]}
199device ucbif { }
200device irif { }
201device txiomanif {[platform = -1]}
202
203attach txsim at mainbus
204file arch/hpcmips/tx/txsim.c		txsim
205file arch/hpcmips/tx/txsnd.c		txsim
206
207device tx39biu: txcsbusif
208attach tx39biu at txsim
209file arch/hpcmips/tx/tx39biu.c		tx39biu
210
211device 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]}
212attach txcsbus at txcsbusif
213file arch/hpcmips/tx/txcsbus.c		txcsbus
214
215device tx39icu
216attach tx39icu at txsim
217file arch/hpcmips/tx/tx39icu.c		tx39icu
218
219device tx39power
220attach tx39power at txsim
221file arch/hpcmips/tx/tx39power.c	tx39power
222
223device tx39clock
224attach tx39clock at txsim
225file arch/hpcmips/tx/tx39clock.c	tx39clock
226
227device tx3912video: hpcfbif
228attach tx3912video at txsim
229file arch/hpcmips/tx/tx3912video.c	tx3912video
230
231device tx39io: txiomanif
232attach tx39io at txsim
233file arch/hpcmips/tx/tx39io.c		tx39io
234
235device txioman
236attach txioman at txiomanif
237file arch/hpcmips/tx/txioman.c		txioman
238
239device tx39sib: txsibif
240attach tx39sib at txsim
241file arch/hpcmips/tx/tx39sib.c		tx39sib
242
243#	PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end)
244device ucb: ucbif
245attach ucb at txsibif
246file arch/hpcmips/dev/ucb1200.c		ucb
247
248device ucbtp: wsmousedev
249attach ucbtp at ucbif: tpcalib
250file arch/hpcmips/dev/ucbtp.c		ucbtp
251
252device ucbsnd
253attach ucbsnd at ucbif
254file arch/hpcmips/dev/ucbsnd.c		ucbsnd		needs-flag
255
256device ucbio: newgpbusif
257attach ucbio at ucbif
258file arch/hpcmips/dev/ucbio.c		ucbio
259
260device ucbioport
261attach ucbioport at newgpbusif
262file arch/hpcmips/dev/ucbioport.c	ucbioport
263
264device tx39uart: txcomif
265attach tx39uart at txsim
266file arch/hpcmips/tx/tx39uart.c		tx39uart	needs-flag
267
268device txcom: irif
269attach txcom at txcomif
270file arch/hpcmips/tx/txcom.c		txcom
271
272device tx39ir
273attach tx39ir at irif
274file arch/hpcmips/tx/tx39ir.c		tx39ir
275
276#	ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA)
277device it8368e: pcmciabus
278attach it8368e at txcsbus
279file arch/hpcmips/dev/it8368.c	it8368e
280
281device skbdif {}
282
283#	MITUBISHI M38813 keryboard controller
284device m38813c: skbdif
285attach m38813c at txcsbus
286file arch/hpcmips/dev/m38813c.c		m38813c		needs-flag
287
288#	PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard)
289device tc5165buf: skbdif
290attach tc5165buf at txcsbus
291file arch/hpcmips/dev/tc5165buf.c	tc5165buf	needs-flag
292
293#	Simple keyboard interface for wskbd
294device skbd: wskbddev
295attach skbd at skbdif
296file arch/hpcmips/dev/skbd.c		skbd
297
298
299#	TOSHIBA TC6358E(Plum2)
300device plumif {}
301device plum: plumif
302attach plum at txcsbus
303file arch/hpcmips/dev/plum.c		plum
304
305device plumicu
306attach plumicu at plumif
307file arch/hpcmips/dev/plumicu.c		plumicu
308
309device plumpower
310attach plumpower at plumif
311file arch/hpcmips/dev/plumpower.c	plumpower
312
313device plumvideo: hpcfbif
314attach plumvideo at plumif
315file arch/hpcmips/dev/plumvideo.c	plumvideo
316
317device plumpcmcia: pcmciabus
318attach plumpcmcia at plumif
319file arch/hpcmips/dev/plumpcmcia.c	plumpcmcia
320
321device plumiobusif {[platform = -1], [slot = -1]}
322device plumiobus: plumiobusif
323attach plumiobus at plumif
324file arch/hpcmips/dev/plumiobus.c	plumiobus
325
326device plumisab: isabus
327attach plumisab at plumiobusif
328file arch/hpcmips/isa/plumisa_machdep.c	plumisab
329
330# OHCI USB controller
331attach	ohci at plumif with plumohci
332file	arch/hpcmips/dev/plumohci.c	plumohci
333
334#device txisab: isabus
335#attach txisab at txcsbus
336#file arch/hpcmips/isa/txisa_machdep.c	txisab
337
338#
339#	Real-time clock (not optional)
340#
341file	arch/hpcmips/hpcmips/clock.c
342file	dev/clock_subr.c
343
344# Floppy disk controller
345device	fdc {drive = -1}
346#attach	fdc at isa
347#device	fd: disk, isadma
348device	fd: disk
349#attach	fd at fdc
350file	arch/i386/isa/fd.c		fdc needs-flag
351major	{fd = 2}
352
353# network devices MII bus
354include "dev/mii/files.mii"
355
356# XXXX pcic here because it needs to be late.  The catch: pcic needs
357# to be late, so devices which attach to it are attached late.  But it
358# needs to be before its isa and pci attachments.  This answer is
359# non-optimal, but I don't have a better answer right now.
360
361# PCIC pcmcia contoller
362# XXX this needs to be done very late, so it's done here.  This feels
363# like a kludge, but it might be for the best.
364
365defopt	PCIC_ISA_ALLOC_IOBASE
366defopt	PCIC_ISA_ALLOC_IOSIZE
367defopt	PCIC_ISA_INTR_ALLOC_MASK
368
369device	pcic: pcmciabus
370file	dev/ic/i82365.c			pcic
371
372#
373# PCIC pcmcia controller
374#
375attach	pcic at isa with pcic_isa
376file	dev/isa/i82365_isa.c			pcic_isa
377file	dev/isa/i82365_isasubr.c		pcic_isa
378
379#
380# Machine-independent PCMCIA drivers
381#
382include "dev/pcmcia/files.pcmcia"
383
384# Serial Interface Unit
385attach com at vrip with com_vrip
386file	arch/hpcmips/vr/com_vrip.c			com_vrip
387
388# Memory Disk for boot tape
389file arch/hpcmips/dev/md_root.c		memory_disk_hooks
390major	{md = 6}
391
392include "dev/usb/files.usb"
393