files.hpcmips revision 1.87
1#	$NetBSD: files.hpcmips,v 1.87 2002/09/06 13:18:43 gehenna 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"
19
20#
21# Machine-independent ATA drivers
22#
23
24include "dev/ata/files.ata"
25
26#
27# Bus-independent devices
28#
29device mainbus { [platform = -1] }
30attach mainbus at root
31
32device cpu				# not optional
33attach cpu at mainbus
34file arch/hpcmips/hpcmips/cpu.c		cpu
35
36# CPU support option headers
37defflag	opt_vr41xx.h	VR41XX VR4101 VR4102 VR4111 VR4121 VR4122 VR4181 VR4131
38defflag	opt_tx39xx.h	TX39XX TX3911 TX3912 TX3922
39
40#
41# CPU-dependent files
42#
43file	arch/hpcmips/vr/vr.c		vr41xx	# NEC VR4000 series
44file	arch/hpcmips/vr/vr_idle.S	vr41xx
45file	arch/hpcmips/tx/tx39.c		tx39xx	# TOSHIBA TX3900 series
46
47file	arch/hpcmips/hpcmips/autoconf.c
48file	arch/hpcmips/hpcmips/bus_dma.c
49file	arch/hpcmips/hpcmips/bus_space.c
50file	arch/hpcmips/hpcmips/bus_space_notimpl.c
51file	arch/hpcmips/hpcmips/bus_space_through.c
52file	arch/hpcmips/hpcmips/conf.c
53file	arch/hpcmips/hpcmips/interrupt.c
54file	arch/hpcmips/hpcmips/machdep.c
55file	arch/hpcmips/hpcmips/mainbus.c
56
57file	arch/hpc/hpc/kloader.c			kloader
58file	arch/hpcmips/hpcmips/kloader_machdep.c	kloader
59file	arch/hpcmips/hpcmips/kloader_vr41.S	vr41xx & kloader
60file	arch/hpcmips/hpcmips/kloader_tx39.S	tx39xx & kloader
61defflag	opt_kloader.h			KLOADER
62defflag	debug_kloader.h			KLOADER_DEBUG
63defparam opt_kloader_kernel_path.h	KLOADER_KERNEL_PATH
64
65#
66# H/PC Platform common files.
67#
68include "arch/hpc/conf/files.hpc"
69file	arch/hpc/hpc/disksubr.c			disk
70include "dev/hpc/files.bicons"
71include "dev/hpc/files.hpcfb"
72include "dev/hpc/files.hpckbd"
73include "dev/hpc/files.hpctp"
74
75#
76# Debug utility
77#
78include "arch/hpc/conf/files.debug"
79
80# Console autoconfiguration code: selects between a framebuffers
81file	dev/cons.c
82
83#
84# Workstation Console
85#
86include "dev/wscons/files.wscons"
87
88#
89# power management
90#
91include "arch/hpcmips/dev/apm/files.apm"
92device hpcapm: apmdevif
93attach hpcapm at mainbus
94file	arch/hpcmips/dev/hpcapm.c	hpcapm
95
96#
97# ISA bus support
98#
99include "dev/pci/files.pci"	# XXX some ISA devs are 'at pci' too.
100include "dev/isa/files.isa"
101
102#
103#  Vr41xx integrated peripherals
104#
105device vripif { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [unit=-1], [pwctl=-1], [platform = -1] }
106define vrip_common
107file arch/hpcmips/vr/vrip.c		vrip_common needs-flag
108device vrip: vripif
109attach vrip at mainbus: vrip_common
110device vr4102ip: vripif
111attach vr4102ip at mainbus: vrip_common
112file arch/hpcmips/vr/vr4102ip.c		vr4102ip
113device vr4122ip: vripif
114attach vr4122ip at mainbus: vrip_common
115file arch/hpcmips/vr/vr4122ip.c		vr4122ip
116
117device vrbcu
118attach vrbcu at vripif
119file arch/hpcmips/vr/bcu_vrip.c			vrbcu needs-flag
120
121device vrrtc
122attach vrrtc at vripif
123file arch/hpcmips/vr/rtc.c			vrrtc needs-flag
124
125device vrcmu
126attach vrcmu at vripif
127file arch/hpcmips/vr/cmu.c			vrcmu needs-flag
128
129include "dev/hpc/files.hpcio"
130device	vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]}		# GIU attachment
131
132device vrgiu: vrisabif, hpcioif
133attach vrgiu at vripif
134file arch/hpcmips/vr/vrgiu.c			vrgiu
135
136device vrisab: isabus
137attach vrisab at vrisabif
138file arch/hpcmips/isa/isa_machdep.c		vrisab
139
140device vrkiu: hpckbdif
141attach vrkiu at vripif
142file arch/hpcmips/vr/vrkiu.c			vrkiu needs-flag
143
144device vrpmu
145attach vrpmu at vripif
146file arch/hpcmips/vr/vrpmu.c			vrpmu needs-flag
147
148device vrdsu
149attach vrdsu at vripif
150file arch/hpcmips/vr/vrdsu.c			vrdsu needs-flag
151
152device vrled
153attach vrled at vripif
154file arch/hpcmips/vr/vrled.c			vrled needs-flag
155
156device vrpiu: wsmousedev
157attach vrpiu at vripif: tpcalib
158file arch/hpcmips/vr/vrpiu.c			vrpiu
159
160device vrdsiu_mouse: wsmousedev
161attach vrdsiu_mouse at vripif
162file arch/hpcmips/vr/vrdsiu_mouse.c		vrdsiu_mouse
163
164attach ohci at vripif with ohci_vrip
165file arch/hpcmips/dev/ohci_vrip.c		ohci_vrip
166
167device vrpciu: pcibus
168attach vrpciu at vripif
169file arch/hpcmips/vr/vrpciu.c			vrpciu needs-flag
170
171defflag opt_mq200.h	MQ200_DEBUG MQ200_USECRT
172device mqvideo: hpcfbif
173attach mqvideo at vripif with mqvideo_vrip
174file arch/hpcmips/vr/mq200_vrip.c		mqvideo_vrip
175file arch/hpcmips/dev/mq200.c			mqvideo
176file arch/hpcmips/dev/mq200subr.c		mqvideo
177file arch/hpcmips/dev/mq200debug.c		mqvideo
178file arch/hpcmips/dev/mq200machdep.c		mqvideo
179
180attach mqvideo at pci with mqvideo_pci
181file arch/hpcmips/dev/mq200_pci.c		mqvideo_pci
182
183device ite8181video: hpcfbif, hpccmap
184attach ite8181video at vripif with ite8181video_vrip
185file arch/hpcmips/vr/ite8181_vrip.c		ite8181video_vrip
186file arch/hpcmips/dev/ite8181.c			ite8181video
187
188defflag opt_vrc4172pci.h	VRC4172PCI_MCR700_SUPPORT
189device vrc4172pci: pcibus
190attach vrc4172pci at vripif
191file arch/hpcmips/vr/vrc4172pci.c		vrc4172pci
192
193device vrc4172pwm
194attach vrc4172pwm at vripif
195file arch/hpcmips/vr/vrc4172pwm.c		vrc4172pwm needs-flag
196
197device vrc4172gpio: hpcioif, vrisabif
198attach vrc4172gpio at hpcioif
199file arch/hpcmips/vr/vrc4172gpio.c		vrc4172gpio
200
201device vrc4173cardu: pcmciabus
202attach vrc4173cardu at pci
203file arch/hpcmips/pci/vrc4173cardu.c		vrc4173cardu
204
205device vrc4173bcu: vripif
206attach vrc4173bcu at pci
207file arch/hpcmips/vr/vrc4173bcu.c		vrc4173bcu
208
209#
210#	TOSHIBA TX3912/3922
211#
212defflag			TX39_WATCHDOGTIMER
213defflag			TX39ICU_DEBUG
214defflag			TX39CLOCK_DEBUG
215defflag			TX39BIU_DEBUG
216defflag			TX39POWER_DEBUG
217defflag			TX39UART_DEBUG
218defflag			USE_POLL
219
220device txsim { }
221device txcsbusif {[platform = -1]}
222device txcomif {[slot = -1]}
223device txsibif {[slot = -1]}
224device ucbif { }
225device irif { }
226
227attach txsim at mainbus
228file arch/hpcmips/tx/txsim.c		txsim
229file arch/hpcmips/tx/txsnd.c		txsim
230
231device tx39biu: txcsbusif
232attach tx39biu at txsim
233file arch/hpcmips/tx/tx39biu.c		tx39biu
234
235device 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]}
236attach txcsbus at txcsbusif
237file arch/hpcmips/tx/txcsbus.c		txcsbus
238
239device tx39icu
240attach tx39icu at txsim
241file arch/hpcmips/tx/tx39icu.c		tx39icu
242
243device tx39power
244attach tx39power at txsim
245file arch/hpcmips/tx/tx39power.c	tx39power
246
247device tx39clock
248attach tx39clock at txsim
249file arch/hpcmips/tx/tx39clock.c	tx39clock
250
251device tx3912video: hpcfbif
252attach tx3912video at txsim
253file arch/hpcmips/tx/tx3912video.c	tx3912video
254
255device tx39io
256attach tx39io at txsim
257file arch/hpcmips/tx/tx39io.c		tx39io
258
259device txioman: hpcioif
260attach txioman at txsim
261file arch/hpcmips/tx/txioman.c		txioman
262
263device tx39sib: txsibif
264attach tx39sib at txsim
265file arch/hpcmips/tx/tx39sib.c		tx39sib
266
267#	PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end)
268device ucb: ucbif
269attach ucb at txsibif
270file arch/hpcmips/dev/ucb1200.c		ucb
271
272device ucbtp: wsmousedev
273attach ucbtp at ucbif: tpcalib
274file arch/hpcmips/dev/ucbtp.c		ucbtp
275
276device ucbsnd
277attach ucbsnd at ucbif
278file arch/hpcmips/dev/ucbsnd.c		ucbsnd		needs-flag
279
280device ucbio
281attach ucbio at ucbif
282file arch/hpcmips/dev/ucbio.c		ucbio
283
284device tx39uart: txcomif
285attach tx39uart at txsim
286file arch/hpcmips/tx/tx39uart.c		tx39uart	needs-flag
287
288device txcom: irif
289attach txcom at txcomif
290file arch/hpcmips/tx/txcom.c		txcom
291
292device tx39ir
293attach tx39ir at irif
294file arch/hpcmips/tx/tx39ir.c		tx39ir
295
296#	ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA)
297device it8368e: pcmciabus
298attach it8368e at txcsbus
299file arch/hpcmips/dev/it8368.c		it8368e
300
301#	MITUBISHI M38813 keryboard controller
302device m38813c: hpckbdif
303attach m38813c at txcsbus
304file arch/hpcmips/dev/m38813c.c		m38813c		needs-flag
305
306#	PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard)
307device tc5165buf: hpckbdif
308attach tc5165buf at txcsbus
309file arch/hpcmips/dev/tc5165buf.c	tc5165buf	needs-flag
310
311#	TOSHIBA TC6358E(Plum2)
312device plumif {}
313device plum: plumif
314attach plum at txcsbus
315file arch/hpcmips/dev/plum.c		plum
316
317device plumicu
318attach plumicu at plumif
319file arch/hpcmips/dev/plumicu.c		plumicu
320
321device plumpower
322attach plumpower at plumif
323file arch/hpcmips/dev/plumpower.c	plumpower
324
325device plumvideo: hpcfbif
326attach plumvideo at plumif
327file arch/hpcmips/dev/plumvideo.c	plumvideo
328
329device plumpcmcia: pcmciabus
330attach plumpcmcia at plumif
331file arch/hpcmips/dev/plumpcmcia.c	plumpcmcia
332
333device plumiobusif {[platform = -1], [slot = -1]}
334device plumiobus: plumiobusif
335attach plumiobus at plumif
336file arch/hpcmips/dev/plumiobus.c	plumiobus
337
338device plumisab: isabus
339attach plumisab at plumiobusif
340file arch/hpcmips/isa/plumisa_machdep.c	plumisab
341
342# OHCI USB controller
343attach	ohci at plumif with plumohci
344file	arch/hpcmips/dev/plumohci.c	plumohci	needs-flag
345
346#device txisab: isabus
347#attach txisab at txcsbus
348#file arch/hpcmips/isa/txisa_machdep.c	txisab
349
350file	dev/hpc/video_subr.c		tx3912video | plumvideo
351
352#
353#	Real-time clock (not optional)
354#
355file	arch/hpcmips/hpcmips/clock.c
356file	dev/clock_subr.c
357
358# Floppy disk controller
359device	fdc {drive = -1}
360#attach	fdc at isa
361#device	fd: disk, isadma
362device	fd: disk
363#attach	fd at fdc
364file	arch/i386/isa/fd.c		fdc needs-flag
365
366# XXXX pcic here because it needs to be late.  The catch: pcic needs
367# to be late, so devices which attach to it are attached late.  But it
368# needs to be before its isa and pci attachments.  This answer is
369# non-optimal, but I don't have a better answer right now.
370
371# PCIC pcmcia contoller
372# XXX this needs to be done very late, so it's done here.  This feels
373# like a kludge, but it might be for the best.
374
375defparam		PCIC_ISA_ALLOC_IOBASE
376defparam		PCIC_ISA_ALLOC_IOSIZE
377defparam		PCIC_ISA_INTR_ALLOC_MASK
378
379device	pcic: pcmciabus
380file	dev/ic/i82365.c			pcic
381
382#
383# PCIC pcmcia controller
384#
385attach	pcic at isa with pcic_isa
386file	dev/isa/i82365_isa.c			pcic_isa
387file	dev/isa/i82365_isasubr.c		pcic_isa
388
389#
390# Machine-independent PCMCIA drivers
391#
392include "dev/pcmcia/files.pcmcia"
393
394# Serial Interface Unit
395attach com at vripif with com_vrip
396file	arch/hpcmips/vr/com_vrip.c		com_vrip needs-flag
397
398attach com at hpcioif with com_hpcio
399file arch/hpcmips/dev/com_hpcio.c		com_hpcio needs-flag
400
401# Memory Disk for boot tape
402file dev/md_root.c				memory_disk_hooks
403
404include "dev/usb/files.usb"
405
406# DMA Address Unit
407device vrdmaau
408attach vrdmaau at vripif
409file arch/hpcmips/vr/vrdmaau.c	vrdmaau
410
411# DMA Controll Unit
412device vrdcu
413attach vrdcu at vripif
414file arch/hpcmips/vr/vrdcu.c	vrdcu
415
416# Audio Interface Unit
417device vraiu: audiobus
418attach vraiu at vripif
419file arch/hpcmips/vr/vraiu.c	vraiu
420
421include "arch/hpcmips/conf/majors.hpcmips"
422