files.hpcmips revision 1.42
1#	$NetBSD: files.hpcmips,v 1.42 2000/10/22 10:42:31 uch 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], [initvalue = -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 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
349#
350#	Real-time clock (not optional)
351#
352file	arch/hpcmips/hpcmips/clock.c
353file	dev/clock_subr.c
354
355# Floppy disk controller
356device	fdc {drive = -1}
357#attach	fdc at isa
358#device	fd: disk, isadma
359device	fd: disk
360#attach	fd at fdc
361file	arch/i386/isa/fd.c		fdc needs-flag
362major	{fd = 2}
363
364# network devices MII bus
365include "dev/mii/files.mii"
366
367# XXXX pcic here because it needs to be late.  The catch: pcic needs
368# to be late, so devices which attach to it are attached late.  But it
369# needs to be before its isa and pci attachments.  This answer is
370# non-optimal, but I don't have a better answer right now.
371
372# PCIC pcmcia contoller
373# XXX this needs to be done very late, so it's done here.  This feels
374# like a kludge, but it might be for the best.
375
376defopt	PCIC_ISA_ALLOC_IOBASE
377defopt	PCIC_ISA_ALLOC_IOSIZE
378defopt	PCIC_ISA_INTR_ALLOC_MASK
379
380device	pcic: pcmciabus
381file	dev/ic/i82365.c			pcic
382
383#
384# PCIC pcmcia controller
385#
386attach	pcic at isa with pcic_isa
387file	dev/isa/i82365_isa.c			pcic_isa
388file	dev/isa/i82365_isasubr.c		pcic_isa
389
390#
391# Machine-independent PCMCIA drivers
392#
393include "dev/pcmcia/files.pcmcia"
394
395# Serial Interface Unit
396attach com at vrip with com_vrip
397file	arch/hpcmips/vr/com_vrip.c			com_vrip
398
399# Memory Disk for boot tape
400file arch/hpcmips/dev/md_root.c		memory_disk_hooks
401major	{md = 6}
402
403include "dev/usb/files.usb"
404