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