files.hpcmips revision 1.57
1#	$NetBSD: files.hpcmips,v 1.57 2001/06/13 06:03:10 enami 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	opt_vr41xx.h	VR41XX VR4101 VR4102 VR4111 VR4121 VR4122 VR4181
36defopt	opt_tx39xx.h	TX39XX TX3911 TX3912 TX3922
37
38#
39# CPU-dependent files
40#
41file	arch/hpcmips/vr/vr.c		vr41xx	# NEC VR4000 series
42file	arch/hpcmips/vr/vr_idle.S	vr41xx
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/interrupt.c
50file	arch/hpcmips/hpcmips/machdep.c
51file	arch/hpcmips/hpcmips/mainbus.c
52file	arch/hpcmips/hpcmips/bus_space.c
53file	arch/hpcmips/hpcmips/bus_dma.c
54file	arch/hpcmips/hpcmips/procfs_machdep.c	procfs
55
56#
57# H/PC Platform common files.
58#
59include "arch/hpc/conf/files.hpc"
60file	arch/hpc/hpc/disksubr.c			disk
61include "dev/hpc/files.bicons"
62include "dev/hpc/files.hpcfb"
63include "dev/hpc/files.hpckbd"
64include "dev/hpc/files.hpctp"
65
66# Console autoconfiguration code: selects between a framebuffers
67file	dev/cons.c
68
69#
70# Workstation Console
71#
72include "dev/wscons/files.wscons"
73
74#
75# power management
76#
77include "arch/hpcmips/dev/apm/files.apm"
78device hpcapm: apmdevif
79attach hpcapm at mainbus
80file	arch/hpcmips/dev/hpcapm.c	hpcapm
81
82#
83# ISA bus support
84#
85include "dev/isa/files.isa"
86
87#
88#  Vr41xx integrated peripherals
89#
90device vrip { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [intr=-1], [pwctl=-1], [platform = -1] }
91attach vrip at mainbus
92file arch/hpcmips/vr/vrip.c		vrip needs-flag
93
94device vrbcu
95attach vrbcu at vrip
96file arch/hpcmips/vr/bcu_vrip.c			vrbcu needs-flag
97
98device vrrtc
99attach vrrtc at vrip
100file arch/hpcmips/vr/rtc.c			vrrtc needs-flag
101
102device vrcmu
103attach vrcmu at vrip
104file arch/hpcmips/vr/cmu.c			vrcmu needs-flag
105
106include "dev/hpc/files.hpcio"
107device	vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]}		# GIU attachment
108
109device vrgiu: vrisabif, hpcioif
110attach vrgiu at vrip
111file arch/hpcmips/vr/vrgiu.c			vrgiu
112
113device vrisab: isabus
114attach vrisab at vrisabif
115file arch/hpcmips/isa/isa_machdep.c		vrisab
116
117device vrkiu: hpckbdif
118attach vrkiu at vrip
119file arch/hpcmips/vr/vrkiu.c			vrkiu needs-flag
120
121device vrpmu
122attach vrpmu at vrip
123file arch/hpcmips/vr/vrpmu.c			vrpmu needs-flag
124
125device vrdsu
126attach vrdsu at vrip
127file arch/hpcmips/vr/vrdsu.c			vrdsu needs-flag
128
129device vrled
130attach vrled at vrip
131file arch/hpcmips/vr/vrled.c			vrled needs-flag
132
133device vrpiu: wsmousedev
134attach vrpiu at vrip: tpcalib
135file arch/hpcmips/vr/vrpiu.c			vrpiu
136
137attach ohci at vrip with ohci_vrip
138file arch/hpcmips/dev/ohci_vrip.c		ohci_vrip
139
140defopt opt_mq200.h	MQ200_DEBUG MQ200_USECRT
141device mqvideo: hpcfbif
142attach mqvideo at vrip with mqvideo_vrip
143file arch/hpcmips/vr/mq200_vrip.c		mqvideo_vrip
144file arch/hpcmips/dev/mq200.c			mqvideo
145file arch/hpcmips/dev/mq200subr.c		mqvideo
146file arch/hpcmips/dev/mq200debug.c		mqvideo
147file arch/hpcmips/dev/mq200machdep.c		mqvideo
148
149device ite8181video: hpcfbif
150attach ite8181video at vrip with ite8181video_vrip
151file arch/hpcmips/vr/ite8181_vrip.c		ite8181video_vrip
152file arch/hpcmips/dev/ite8181.c			ite8181video
153
154device vrc4172pwm
155attach vrc4172pwm at vrip
156file arch/hpcmips/vr/vrc4172pwm.c		vrc4172pwm needs-flag
157
158device vrc4172gpio: hpcioif, vrisabif
159attach vrc4172gpio at hpcioif
160file arch/hpcmips/vr/vrc4172gpio.c		vrc4172gpio
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