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