files.hpcmips revision 1.58
1#	$NetBSD: files.hpcmips,v 1.58 2001/06/13 07:32:48 enami Exp $
2
3# maxpartitions must be first item in files.${ARCH}.
4maxpartitions 8
5
6maxusers 2 8 64
7
8#
9# Machine-independent I2O drivers.
10#
11
12include "dev/i2o/files.i2o"
13
14#
15# Machine-independent SCSI drivers
16#
17
18include "dev/scsipi/files.scsipi"
19major	{sd = 3}
20major	{st = 4}
21major	{cd = 5}
22
23#
24# Machine-independent ATA drivers
25#
26
27include "dev/ata/files.ata"
28major	{wd = 1}
29
30#
31# Bus-independent devices
32#
33device mainbus { }			# no locators
34attach mainbus at root
35
36device cpu				# not optional
37attach cpu at mainbus
38file arch/hpcmips/hpcmips/cpu.c		cpu
39
40# CPU support option headers
41defopt	opt_vr41xx.h	VR41XX VR4101 VR4102 VR4111 VR4121 VR4122 VR4181
42defopt	opt_tx39xx.h	TX39XX TX3911 TX3912 TX3922
43
44#
45# CPU-dependent files
46#
47file	arch/hpcmips/vr/vr.c		vr41xx	# NEC VR4000 series
48file	arch/hpcmips/vr/vr_idle.S	vr41xx
49file	arch/hpcmips/tx/tx39.c		tx39xx	# TOSHIBA TX3900 series
50
51file	arch/mips/mips/fp.S		softfloat
52
53file	arch/hpcmips/hpcmips/autoconf.c
54file	arch/hpcmips/hpcmips/bus_dma.c
55file	arch/hpcmips/hpcmips/bus_space.c
56file	arch/hpcmips/hpcmips/conf.c
57file	arch/hpcmips/hpcmips/interrupt.c
58file	arch/hpcmips/hpcmips/machdep.c
59file	arch/hpcmips/hpcmips/mainbus.c
60file	arch/hpcmips/hpcmips/procfs_machdep.c	procfs
61
62#
63# H/PC Platform common files.
64#
65include "arch/hpc/conf/files.hpc"
66file	arch/hpc/hpc/disksubr.c			disk
67include "dev/hpc/files.bicons"
68include "dev/hpc/files.hpcfb"
69include "dev/hpc/files.hpckbd"
70include "dev/hpc/files.hpctp"
71
72# Console autoconfiguration code: selects between a framebuffers
73file	dev/cons.c
74
75#
76# Workstation Console
77#
78include "dev/wscons/files.wscons"
79
80#
81# power management
82#
83include "arch/hpcmips/dev/apm/files.apm"
84device hpcapm: apmdevif
85attach hpcapm at mainbus
86file	arch/hpcmips/dev/hpcapm.c	hpcapm
87
88#
89# ISA bus support
90#
91include "dev/pci/files.pci"	# XXX some ISA devs are 'at pci' too.
92include "dev/isa/files.isa"
93
94#
95#  Vr41xx integrated peripherals
96#
97device vrip { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [intr=-1], [pwctl=-1], [platform = -1] }
98attach vrip at mainbus
99file arch/hpcmips/vr/vrip.c		vrip needs-flag
100
101device vrbcu
102attach vrbcu at vrip
103file arch/hpcmips/vr/bcu_vrip.c			vrbcu needs-flag
104
105device vrrtc
106attach vrrtc at vrip
107file arch/hpcmips/vr/rtc.c			vrrtc needs-flag
108
109device vrcmu
110attach vrcmu at vrip
111file arch/hpcmips/vr/cmu.c			vrcmu needs-flag
112
113include "dev/hpc/files.hpcio"
114device	vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]}		# GIU attachment
115
116device vrgiu: vrisabif, hpcioif
117attach vrgiu at vrip
118file arch/hpcmips/vr/vrgiu.c			vrgiu
119
120device vrisab: isabus
121attach vrisab at vrisabif
122file arch/hpcmips/isa/isa_machdep.c		vrisab
123
124device vrkiu: hpckbdif
125attach vrkiu at vrip
126file arch/hpcmips/vr/vrkiu.c			vrkiu needs-flag
127
128device vrpmu
129attach vrpmu at vrip
130file arch/hpcmips/vr/vrpmu.c			vrpmu needs-flag
131
132device vrdsu
133attach vrdsu at vrip
134file arch/hpcmips/vr/vrdsu.c			vrdsu needs-flag
135
136device vrled
137attach vrled at vrip
138file arch/hpcmips/vr/vrled.c			vrled needs-flag
139
140device vrpiu: wsmousedev
141attach vrpiu at vrip: tpcalib
142file arch/hpcmips/vr/vrpiu.c			vrpiu
143
144attach ohci at vrip with ohci_vrip
145file arch/hpcmips/dev/ohci_vrip.c		ohci_vrip
146
147device vrpciu: pcibus
148attach vrpciu at vrip
149file arch/hpcmips/vr/vrpciu.c			vrpciu needs-flag
150
151defopt opt_mq200.h	MQ200_DEBUG MQ200_USECRT
152device mqvideo: hpcfbif
153attach mqvideo at vrip with mqvideo_vrip
154file arch/hpcmips/vr/mq200_vrip.c		mqvideo_vrip
155file arch/hpcmips/dev/mq200.c			mqvideo
156file arch/hpcmips/dev/mq200subr.c		mqvideo
157file arch/hpcmips/dev/mq200debug.c		mqvideo
158file arch/hpcmips/dev/mq200machdep.c		mqvideo
159
160attach mqvideo at pci with mqvideo_pci
161file arch/hpcmips/pci/mq200_pci.c		mqvideo_pci
162
163device ite8181video: hpcfbif
164attach ite8181video at vrip with ite8181video_vrip
165file arch/hpcmips/vr/ite8181_vrip.c		ite8181video_vrip
166file arch/hpcmips/dev/ite8181.c			ite8181video
167
168device vrc4172pwm
169attach vrc4172pwm at vrip
170file arch/hpcmips/vr/vrc4172pwm.c		vrc4172pwm needs-flag
171
172device vrc4172gpio: hpcioif, vrisabif
173attach vrc4172gpio at hpcioif
174file arch/hpcmips/vr/vrc4172gpio.c		vrc4172gpio
175
176device vrc4173cardu: pcmciabus
177attach vrc4173cardu at pci
178file arch/hpcmips/pci/vrc4173cardu.c		vrc4173cardu
179
180device vrc4173if {}
181
182device vrc4173bcu: vrc4173if
183attach vrc4173bcu at pci
184file arch/hpcmips/vr/vrc4173bcu.c		vrc4173bcu
185
186device vrc4173cmu
187attach vrc4173cmu at vrc4173if
188file arch/hpcmips/vr/vrc4173cmu.c		vrc4173cmu
189
190device vrc4173piu
191attach vrc4173piu at vrc4173if
192file arch/hpcmips/vr/vrc4173piu.c		vrc4173piu
193
194device vrc4173kiu
195attach vrc4173kiu at vrc4173if
196file arch/hpcmips/vr/vrc4173kiu.c		vrc4173kiu
197
198#
199#	TOSHIBA TX3912/3922
200#
201defopt TX39_DEBUG
202defopt TX39_WATCHDOGTIMER
203defopt TX39ICUDEBUG
204defopt TX39CLKDEBUG
205defopt TX39BIUDEBUG
206defopt TX39POWERDEBUG
207defopt TX39UARTDEBUG
208defopt USE_POLL
209
210device txsim {[platform = -1]}
211device txcsbusif {[platform = -1]}
212device txcomif {[slot = -1]}
213device txsibif {[slot = -1]}
214device ucbif { }
215device irif { }
216device txiomanif {[evtype = -1], [id = -1], [group = -1], [port = -1], [edge = -1], [initial = -1]}
217
218attach txsim at mainbus
219file arch/hpcmips/tx/txsim.c		txsim
220file arch/hpcmips/tx/txsnd.c		txsim
221
222device tx39biu: txcsbusif
223attach tx39biu at txsim
224file arch/hpcmips/tx/tx39biu.c		tx39biu
225
226device 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]}
227attach txcsbus at txcsbusif
228file arch/hpcmips/tx/txcsbus.c		txcsbus
229
230device tx39icu
231attach tx39icu at txsim
232file arch/hpcmips/tx/tx39icu.c		tx39icu
233
234device tx39power
235attach tx39power at txsim
236file arch/hpcmips/tx/tx39power.c	tx39power
237
238device tx39clock
239attach tx39clock at txsim
240file arch/hpcmips/tx/tx39clock.c	tx39clock
241
242device tx3912video: hpcfbif
243attach tx3912video at txsim
244file arch/hpcmips/tx/tx3912video.c	tx3912video
245
246device tx39io
247attach tx39io at txsim
248file arch/hpcmips/tx/tx39io.c		tx39io
249
250device txioman: txiomanif
251attach txioman at txsim
252file arch/hpcmips/tx/txioman.c		txioman
253
254device txin
255attach txin at txiomanif
256file arch/hpcmips/tx/txioman_in.c	txin
257
258device txout
259attach txout at txiomanif
260file arch/hpcmips/tx/txioman_out.c	txout
261
262device tx39sib: txsibif
263attach tx39sib at txsim
264file arch/hpcmips/tx/tx39sib.c		tx39sib
265
266#	PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end)
267device ucb: ucbif
268attach ucb at txsibif
269file arch/hpcmips/dev/ucb1200.c		ucb
270
271device ucbtp: wsmousedev
272attach ucbtp at ucbif: tpcalib
273file arch/hpcmips/dev/ucbtp.c		ucbtp
274
275device ucbsnd
276attach ucbsnd at ucbif
277file arch/hpcmips/dev/ucbsnd.c		ucbsnd		needs-flag
278
279device ucbio
280attach ucbio at ucbif
281file arch/hpcmips/dev/ucbio.c		ucbio
282
283device tx39uart: txcomif
284attach tx39uart at txsim
285file arch/hpcmips/tx/tx39uart.c		tx39uart	needs-flag
286
287device txcom: irif
288attach txcom at txcomif
289file arch/hpcmips/tx/txcom.c		txcom
290
291device tx39ir
292attach tx39ir at irif
293file arch/hpcmips/tx/tx39ir.c		tx39ir
294
295#	ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA)
296device it8368e: pcmciabus
297attach it8368e at txcsbus
298file arch/hpcmips/dev/it8368.c		it8368e
299
300#	MITUBISHI M38813 keryboard controller
301device m38813c: hpckbdif
302attach m38813c at txcsbus
303file arch/hpcmips/dev/m38813c.c		m38813c		needs-flag
304
305#	PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard)
306device tc5165buf: hpckbdif
307attach tc5165buf at txcsbus
308file arch/hpcmips/dev/tc5165buf.c	tc5165buf	needs-flag
309
310#	TOSHIBA TC6358E(Plum2)
311device plumif {}
312device plum: plumif
313attach plum at txcsbus
314file arch/hpcmips/dev/plum.c		plum
315
316device plumicu
317attach plumicu at plumif
318file arch/hpcmips/dev/plumicu.c		plumicu
319
320device plumpower
321attach plumpower at plumif
322file arch/hpcmips/dev/plumpower.c	plumpower
323
324device plumvideo: hpcfbif
325attach plumvideo at plumif
326file arch/hpcmips/dev/plumvideo.c	plumvideo
327
328device plumpcmcia: pcmciabus
329attach plumpcmcia at plumif
330file arch/hpcmips/dev/plumpcmcia.c	plumpcmcia
331
332device plumiobusif {[platform = -1], [slot = -1]}
333device plumiobus: plumiobusif
334attach plumiobus at plumif
335file arch/hpcmips/dev/plumiobus.c	plumiobus
336
337device plumisab: isabus
338attach plumisab at plumiobusif
339file arch/hpcmips/isa/plumisa_machdep.c	plumisab
340
341# OHCI USB controller
342attach	ohci at plumif with plumohci
343file	arch/hpcmips/dev/plumohci.c	plumohci	needs-flag
344
345#device txisab: isabus
346#attach txisab at txcsbus
347#file arch/hpcmips/isa/txisa_machdep.c	txisab
348
349file	dev/hpc/video_subr.c		tx3912video | plumvideo
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