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