files.hpcmips revision 1.39
1#	$NetBSD: files.hpcmips,v 1.39 2000/10/03 03:13:04 sato 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 vrbcu
126attach vrbcu at vrip
127file arch/hpcmips/vr/bcu_vrip.c			vrbcu needs-flag
128
129device vrrtc
130attach vrrtc at vrip
131file arch/hpcmips/vr/rtc.c			vrrtc needs-flag
132
133device vrcmu
134attach vrcmu at vrip
135file arch/hpcmips/vr/cmu.c			vrcmu needs-flag
136
137device	vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]}		# GIU attachment
138device  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]} 
139device  newgpbusif { [platform = -1], [id = -1], [port = -1], [active = 1], [level = -1] }
140
141device vrgiu: vrisabif, gpbusif, newgpbusif
142attach vrgiu at vrip
143file arch/hpcmips/vr/vrgiu.c			vrgiu
144
145device gpbus
146attach gpbus at gpbusif
147file arch/hpcmips/vr/gpbus.c			gpbus
148
149device vrisab: isabus
150attach vrisab at vrisabif
151file arch/hpcmips/isa/isa_machdep.c		vrisab
152
153device pwctl
154attach pwctl at newgpbusif with pwctl_vrgiu
155file arch/hpcmips/vr/pwctl_vrgiu.c		pwctl_vrgiu
156
157device button
158attach button at newgpbusif with button_vrgiu
159file arch/hpcmips/vr/button_vrgiu.c		button_vrgiu
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
173device vrled
174attach vrled at vrip
175file arch/hpcmips/vr/vrled.c			vrled needs-flag
176
177define	tpcalib
178file arch/hpcmips/dev/tpcalib.c			tpcalib
179file arch/hpcmips/dev/mra.c			tpcalib
180
181device vrpiu: wsmousedev
182attach vrpiu at vrip: tpcalib
183file arch/hpcmips/vr/vrpiu.c			vrpiu
184
185attach ohci at vrip with ohci_vrip
186file arch/hpcmips/dev/ohci_vrip.c		ohci_vrip
187
188device mqvideo: hpcfbif
189attach mqvideo at vrip with mqvideo_vrip
190file arch/hpcmips/vr/mq200_vrip.c		mqvideo_vrip
191file arch/hpcmips/dev/mq200.c			mqvideo
192
193device ite8181video: hpcfbif
194attach ite8181video at vrip with ite8181video_vrip
195file arch/hpcmips/vr/ite8181_vrip.c		ite8181video_vrip
196file arch/hpcmips/dev/ite8181.c			ite8181video
197
198#
199#	TOSHIBA TX3912/3922
200#
201defopt TX39_DEBUG
202defopt TX39_WATCHDOGTIMER
203defopt TX39ICUDEBUG
204defopt TX39CLKDEBUG
205defopt TX39BIUDEBUG
206defopt TX39IODEBUG
207defopt TX39POWERDEBUG
208defopt TX39UARTDEBUG
209defopt USE_POLL
210
211device txsim { }
212device txcsbusif {[platform = -1]}
213device txcomif {[slot = -1]}
214device txsibif {[slot = -1]}
215device ucbif { }
216device irif { }
217device txiomanif {[platform = -1]}
218
219attach txsim at mainbus
220file arch/hpcmips/tx/txsim.c		txsim
221file arch/hpcmips/tx/txsnd.c		txsim
222
223device tx39biu: txcsbusif
224attach tx39biu at txsim
225file arch/hpcmips/tx/tx39biu.c		tx39biu
226
227device 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]}
228attach txcsbus at txcsbusif
229file arch/hpcmips/tx/txcsbus.c		txcsbus
230
231device tx39icu
232attach tx39icu at txsim
233file arch/hpcmips/tx/tx39icu.c		tx39icu
234
235device tx39power
236attach tx39power at txsim
237file arch/hpcmips/tx/tx39power.c	tx39power
238
239device tx39clock
240attach tx39clock at txsim
241file arch/hpcmips/tx/tx39clock.c	tx39clock
242
243device tx3912video: hpcfbif
244attach tx3912video at txsim
245file arch/hpcmips/tx/tx3912video.c	tx3912video
246
247device tx39io: txiomanif
248attach tx39io at txsim
249file arch/hpcmips/tx/tx39io.c		tx39io
250
251device txioman
252attach txioman at txiomanif
253file arch/hpcmips/tx/txioman.c		txioman
254
255device tx39sib: txsibif
256attach tx39sib at txsim
257file arch/hpcmips/tx/tx39sib.c		tx39sib
258
259#	PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end)
260device ucb: ucbif
261attach ucb at txsibif
262file arch/hpcmips/dev/ucb1200.c		ucb
263
264device ucbtp: wsmousedev
265attach ucbtp at ucbif: tpcalib
266file arch/hpcmips/dev/ucbtp.c		ucbtp
267
268device ucbsnd
269attach ucbsnd at ucbif
270file arch/hpcmips/dev/ucbsnd.c		ucbsnd		needs-flag
271
272device ucbio: newgpbusif
273attach ucbio at ucbif
274file arch/hpcmips/dev/ucbio.c		ucbio
275
276device ucbioport
277attach ucbioport at newgpbusif
278file arch/hpcmips/dev/ucbioport.c	ucbioport
279
280device tx39uart: txcomif
281attach tx39uart at txsim
282file arch/hpcmips/tx/tx39uart.c		tx39uart	needs-flag
283
284device txcom: irif
285attach txcom at txcomif
286file arch/hpcmips/tx/txcom.c		txcom
287
288device tx39ir
289attach tx39ir at irif
290file arch/hpcmips/tx/tx39ir.c		tx39ir
291
292#	ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA)
293device it8368e: pcmciabus
294attach it8368e at txcsbus
295file arch/hpcmips/dev/it8368.c	it8368e
296
297#	MITUBISHI M38813 keryboard controller
298device m38813c: hpckbdif
299attach m38813c at txcsbus
300file arch/hpcmips/dev/m38813c.c		m38813c		needs-flag
301
302#	PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard)
303device tc5165buf: hpckbdif
304attach tc5165buf at txcsbus
305file arch/hpcmips/dev/tc5165buf.c	tc5165buf	needs-flag
306
307#	TOSHIBA TC6358E(Plum2)
308device plumif {}
309device plum: plumif
310attach plum at txcsbus
311file arch/hpcmips/dev/plum.c		plum
312
313device plumicu
314attach plumicu at plumif
315file arch/hpcmips/dev/plumicu.c		plumicu
316
317device plumpower
318attach plumpower at plumif
319file arch/hpcmips/dev/plumpower.c	plumpower
320
321device plumvideo: hpcfbif
322attach plumvideo at plumif
323file arch/hpcmips/dev/plumvideo.c	plumvideo
324
325device plumpcmcia: pcmciabus
326attach plumpcmcia at plumif
327file arch/hpcmips/dev/plumpcmcia.c	plumpcmcia
328
329device plumiobusif {[platform = -1], [slot = -1]}
330device plumiobus: plumiobusif
331attach plumiobus at plumif
332file arch/hpcmips/dev/plumiobus.c	plumiobus
333
334device plumisab: isabus
335attach plumisab at plumiobusif
336file arch/hpcmips/isa/plumisa_machdep.c	plumisab
337
338# OHCI USB controller
339attach	ohci at plumif with plumohci
340file	arch/hpcmips/dev/plumohci.c	plumohci
341
342#device txisab: isabus
343#attach txisab at txcsbus
344#file arch/hpcmips/isa/txisa_machdep.c	txisab
345
346#
347#	Real-time clock (not optional)
348#
349file	arch/hpcmips/hpcmips/clock.c
350file	dev/clock_subr.c
351
352# Floppy disk controller
353device	fdc {drive = -1}
354#attach	fdc at isa
355#device	fd: disk, isadma
356device	fd: disk
357#attach	fd at fdc
358file	arch/i386/isa/fd.c		fdc needs-flag
359major	{fd = 2}
360
361# network devices MII bus
362include "dev/mii/files.mii"
363
364# XXXX pcic here because it needs to be late.  The catch: pcic needs
365# to be late, so devices which attach to it are attached late.  But it
366# needs to be before its isa and pci attachments.  This answer is
367# non-optimal, but I don't have a better answer right now.
368
369# PCIC pcmcia contoller
370# XXX this needs to be done very late, so it's done here.  This feels
371# like a kludge, but it might be for the best.
372
373defopt	PCIC_ISA_ALLOC_IOBASE
374defopt	PCIC_ISA_ALLOC_IOSIZE
375defopt	PCIC_ISA_INTR_ALLOC_MASK
376
377device	pcic: pcmciabus
378file	dev/ic/i82365.c			pcic
379
380#
381# PCIC pcmcia controller
382#
383attach	pcic at isa with pcic_isa
384file	dev/isa/i82365_isa.c			pcic_isa
385file	dev/isa/i82365_isasubr.c		pcic_isa
386
387#
388# Machine-independent PCMCIA drivers
389#
390include "dev/pcmcia/files.pcmcia"
391
392# Serial Interface Unit
393attach com at vrip with com_vrip
394file	arch/hpcmips/vr/com_vrip.c			com_vrip
395
396# Memory Disk for boot tape
397file arch/hpcmips/dev/md_root.c		memory_disk_hooks
398major	{md = 6}
399
400include "dev/usb/files.usb"
401