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