files.hpcmips revision 1.74 1 # $NetBSD: files.hpcmips,v 1.74 2002/02/13 16:25:34 uch Exp $
2
3 # maxpartitions must be first item in files.${ARCH}.
4 maxpartitions 8
5
6 maxusers 2 8 64
7
8 #
9 # Machine-independent I2O drivers.
10 #
11
12 include "dev/i2o/files.i2o"
13
14 #
15 # Machine-independent SCSI drivers
16 #
17
18 include "dev/scsipi/files.scsipi"
19 major {sd = 3}
20 major {st = 4}
21 major {cd = 5}
22
23 #
24 # Machine-independent ATA drivers
25 #
26
27 include "dev/ata/files.ata"
28 major {wd = 1}
29
30 #
31 # Bus-independent devices
32 #
33 device mainbus { [platform = -1] }
34 attach mainbus at root
35
36 device cpu # not optional
37 attach cpu at mainbus
38 file arch/hpcmips/hpcmips/cpu.c cpu
39
40 # CPU support option headers
41 defflag opt_vr41xx.h VR41XX VR4101 VR4102 VR4111 VR4121 VR4122 VR4181 VR4131
42 defflag opt_tx39xx.h TX39XX TX3911 TX3912 TX3922
43
44 #
45 # CPU-dependent files
46 #
47 file arch/hpcmips/vr/vr.c vr41xx # NEC VR4000 series
48 file arch/hpcmips/vr/vr_idle.S vr41xx
49 file arch/hpcmips/tx/tx39.c tx39xx # TOSHIBA TX3900 series
50
51 file arch/mips/mips/fp.S softfloat
52
53 file arch/hpcmips/hpcmips/autoconf.c
54 file arch/hpcmips/hpcmips/bus_dma.c
55 file arch/hpcmips/hpcmips/bus_space.c
56 file arch/hpcmips/hpcmips/bus_space_notimpl.c
57 file arch/hpcmips/hpcmips/bus_space_through.c
58 file arch/hpcmips/hpcmips/conf.c
59 file arch/hpcmips/hpcmips/interrupt.c
60 file arch/hpcmips/hpcmips/machdep.c
61 file arch/hpcmips/hpcmips/mainbus.c
62 file arch/hpcmips/hpcmips/procfs_machdep.c procfs
63
64 file arch/hpc/hpc/kloader.c
65 file arch/hpcmips/hpcmips/kloader_machdep.c
66 file arch/hpcmips/hpcmips/kloader_vr41.S vr41xx
67 file arch/hpcmips/hpcmips/kloader_tx39.S tx39xx
68 defflag debug_kloader.h KLOADER_DEBUG
69 defparam opt_kloader_kernel_path.h KLOADER_KERNEL_PATH
70
71 #
72 # H/PC Platform common files.
73 #
74 include "arch/hpc/conf/files.hpc"
75 file arch/hpc/hpc/disksubr.c disk
76 include "dev/hpc/files.bicons"
77 include "dev/hpc/files.hpcfb"
78 include "dev/hpc/files.hpckbd"
79 include "dev/hpc/files.hpctp"
80
81 #
82 # Debug utility
83 #
84 include "arch/hpc/conf/files.debug"
85
86 # Console autoconfiguration code: selects between a framebuffers
87 file dev/cons.c
88
89 #
90 # Workstation Console
91 #
92 include "dev/wscons/files.wscons"
93
94 #
95 # power management
96 #
97 include "arch/hpcmips/dev/apm/files.apm"
98 device hpcapm: apmdevif
99 attach hpcapm at mainbus
100 file arch/hpcmips/dev/hpcapm.c hpcapm
101
102 #
103 # ISA bus support
104 #
105 include "dev/pci/files.pci" # XXX some ISA devs are 'at pci' too.
106 include "dev/isa/files.isa"
107
108 #
109 # Vr41xx integrated peripherals
110 #
111 device vripif { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [unit=-1], [pwctl=-1], [platform = -1] }
112 define vrip_common
113 file arch/hpcmips/vr/vrip.c vrip_common needs-flag
114 device vrip: vripif
115 attach vrip at mainbus: vrip_common
116 device vr4102ip: vripif
117 attach vr4102ip at mainbus: vrip_common
118 file arch/hpcmips/vr/vr4102ip.c vr4102ip
119 device vr4122ip: vripif
120 attach vr4122ip at mainbus: vrip_common
121 file arch/hpcmips/vr/vr4122ip.c vr4122ip
122
123 device vrbcu
124 attach vrbcu at vripif
125 file arch/hpcmips/vr/bcu_vrip.c vrbcu needs-flag
126
127 device vrrtc
128 attach vrrtc at vripif
129 file arch/hpcmips/vr/rtc.c vrrtc needs-flag
130
131 device vrcmu
132 attach vrcmu at vripif
133 file arch/hpcmips/vr/cmu.c vrcmu needs-flag
134
135 include "dev/hpc/files.hpcio"
136 device vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]} # GIU attachment
137
138 device vrgiu: vrisabif, hpcioif
139 attach vrgiu at vripif
140 file arch/hpcmips/vr/vrgiu.c vrgiu
141
142 device vrisab: isabus
143 attach vrisab at vrisabif
144 file arch/hpcmips/isa/isa_machdep.c vrisab
145
146 device vrkiu: hpckbdif
147 attach vrkiu at vripif
148 file arch/hpcmips/vr/vrkiu.c vrkiu needs-flag
149
150 device vrpmu
151 attach vrpmu at vripif
152 file arch/hpcmips/vr/vrpmu.c vrpmu needs-flag
153
154 device vrdsu
155 attach vrdsu at vripif
156 file arch/hpcmips/vr/vrdsu.c vrdsu needs-flag
157
158 device vrled
159 attach vrled at vripif
160 file arch/hpcmips/vr/vrled.c vrled needs-flag
161
162 device vrpiu: wsmousedev
163 attach vrpiu at vripif: tpcalib
164 file arch/hpcmips/vr/vrpiu.c vrpiu
165
166 attach ohci at vripif with ohci_vrip
167 file arch/hpcmips/dev/ohci_vrip.c ohci_vrip
168
169 device vrpciu: pcibus
170 attach vrpciu at vripif
171 file arch/hpcmips/vr/vrpciu.c vrpciu needs-flag
172
173 defflag opt_mq200.h MQ200_DEBUG MQ200_USECRT
174 device mqvideo: hpcfbif
175 attach mqvideo at vripif with mqvideo_vrip
176 file arch/hpcmips/vr/mq200_vrip.c mqvideo_vrip
177 file arch/hpcmips/dev/mq200.c mqvideo
178 file arch/hpcmips/dev/mq200subr.c mqvideo
179 file arch/hpcmips/dev/mq200debug.c mqvideo
180 file arch/hpcmips/dev/mq200machdep.c mqvideo
181
182 attach mqvideo at pci with mqvideo_pci
183 file arch/hpcmips/pci/mq200_pci.c mqvideo_pci
184
185 device ite8181video: hpcfbif
186 attach ite8181video at vripif with ite8181video_vrip
187 file arch/hpcmips/vr/ite8181_vrip.c ite8181video_vrip
188 file arch/hpcmips/dev/ite8181.c ite8181video
189
190 device vrc4172pwm
191 attach vrc4172pwm at vripif
192 file arch/hpcmips/vr/vrc4172pwm.c vrc4172pwm needs-flag
193
194 device vrc4172gpio: hpcioif, vrisabif
195 attach vrc4172gpio at hpcioif
196 file arch/hpcmips/vr/vrc4172gpio.c vrc4172gpio
197
198 device vrc4173cardu: pcmciabus
199 attach vrc4173cardu at pci
200 file arch/hpcmips/pci/vrc4173cardu.c vrc4173cardu
201
202 device vrc4173if {}
203
204 device vrc4173bcu: vrc4173if
205 attach vrc4173bcu at pci
206 file arch/hpcmips/vr/vrc4173bcu.c vrc4173bcu
207
208 device vrc4173cmu
209 attach vrc4173cmu at vrc4173if
210 file arch/hpcmips/vr/vrc4173cmu.c vrc4173cmu
211
212 device vrc4173piu
213 attach vrc4173piu at vrc4173if
214 file arch/hpcmips/vr/vrc4173piu.c vrc4173piu
215
216 device vrc4173kiu
217 attach vrc4173kiu at vrc4173if
218 file arch/hpcmips/vr/vrc4173kiu.c vrc4173kiu
219
220 #
221 # TOSHIBA TX3912/3922
222 #
223 defflag TX39_WATCHDOGTIMER
224 defflag TX39ICU_DEBUG
225 defflag TX39CLOCK_DEBUG
226 defflag TX39BIU_DEBUG
227 defflag TX39POWER_DEBUG
228 defflag TX39UART_DEBUG
229 defflag USE_POLL
230
231 device txsim { }
232 device txcsbusif {[platform = -1]}
233 device txcomif {[slot = -1]}
234 device txsibif {[slot = -1]}
235 device ucbif { }
236 device irif { }
237
238 attach txsim at mainbus
239 file arch/hpcmips/tx/txsim.c txsim
240 file arch/hpcmips/tx/txsnd.c txsim
241
242 device tx39biu: txcsbusif
243 attach tx39biu at txsim
244 file arch/hpcmips/tx/tx39biu.c tx39biu
245
246 device 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]}
247 attach txcsbus at txcsbusif
248 file arch/hpcmips/tx/txcsbus.c txcsbus
249
250 device tx39icu
251 attach tx39icu at txsim
252 file arch/hpcmips/tx/tx39icu.c tx39icu
253
254 device tx39power
255 attach tx39power at txsim
256 file arch/hpcmips/tx/tx39power.c tx39power
257
258 device tx39clock
259 attach tx39clock at txsim
260 file arch/hpcmips/tx/tx39clock.c tx39clock
261
262 device tx3912video: hpcfbif
263 attach tx3912video at txsim
264 file arch/hpcmips/tx/tx3912video.c tx3912video
265
266 device tx39io
267 attach tx39io at txsim
268 file arch/hpcmips/tx/tx39io.c tx39io
269
270 device txioman: hpcioif
271 attach txioman at txsim
272 file arch/hpcmips/tx/txioman.c txioman
273
274 device tx39sib: txsibif
275 attach tx39sib at txsim
276 file arch/hpcmips/tx/tx39sib.c tx39sib
277
278 # PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end)
279 device ucb: ucbif
280 attach ucb at txsibif
281 file arch/hpcmips/dev/ucb1200.c ucb
282
283 device ucbtp: wsmousedev
284 attach ucbtp at ucbif: tpcalib
285 file arch/hpcmips/dev/ucbtp.c ucbtp
286
287 device ucbsnd
288 attach ucbsnd at ucbif
289 file arch/hpcmips/dev/ucbsnd.c ucbsnd needs-flag
290
291 device ucbio
292 attach ucbio at ucbif
293 file arch/hpcmips/dev/ucbio.c ucbio
294
295 device tx39uart: txcomif
296 attach tx39uart at txsim
297 file arch/hpcmips/tx/tx39uart.c tx39uart needs-flag
298
299 device txcom: irif
300 attach txcom at txcomif
301 file arch/hpcmips/tx/txcom.c txcom
302
303 device tx39ir
304 attach tx39ir at irif
305 file arch/hpcmips/tx/tx39ir.c tx39ir
306
307 # ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA)
308 device it8368e: pcmciabus
309 attach it8368e at txcsbus
310 file arch/hpcmips/dev/it8368.c it8368e
311
312 # MITUBISHI M38813 keryboard controller
313 device m38813c: hpckbdif
314 attach m38813c at txcsbus
315 file arch/hpcmips/dev/m38813c.c m38813c needs-flag
316
317 # PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard)
318 device tc5165buf: hpckbdif
319 attach tc5165buf at txcsbus
320 file arch/hpcmips/dev/tc5165buf.c tc5165buf needs-flag
321
322 # TOSHIBA TC6358E(Plum2)
323 device plumif {}
324 device plum: plumif
325 attach plum at txcsbus
326 file arch/hpcmips/dev/plum.c plum
327
328 device plumicu
329 attach plumicu at plumif
330 file arch/hpcmips/dev/plumicu.c plumicu
331
332 device plumpower
333 attach plumpower at plumif
334 file arch/hpcmips/dev/plumpower.c plumpower
335
336 device plumvideo: hpcfbif
337 attach plumvideo at plumif
338 file arch/hpcmips/dev/plumvideo.c plumvideo
339
340 device plumpcmcia: pcmciabus
341 attach plumpcmcia at plumif
342 file arch/hpcmips/dev/plumpcmcia.c plumpcmcia
343
344 device plumiobusif {[platform = -1], [slot = -1]}
345 device plumiobus: plumiobusif
346 attach plumiobus at plumif
347 file arch/hpcmips/dev/plumiobus.c plumiobus
348
349 device plumisab: isabus
350 attach plumisab at plumiobusif
351 file arch/hpcmips/isa/plumisa_machdep.c plumisab
352
353 # OHCI USB controller
354 attach ohci at plumif with plumohci
355 file arch/hpcmips/dev/plumohci.c plumohci needs-flag
356
357 #device txisab: isabus
358 #attach txisab at txcsbus
359 #file arch/hpcmips/isa/txisa_machdep.c txisab
360
361 file dev/hpc/video_subr.c tx3912video | plumvideo
362
363 #
364 # Real-time clock (not optional)
365 #
366 file arch/hpcmips/hpcmips/clock.c
367 file dev/clock_subr.c
368
369 # Floppy disk controller
370 device fdc {drive = -1}
371 #attach fdc at isa
372 #device fd: disk, isadma
373 device fd: disk
374 #attach fd at fdc
375 file arch/i386/isa/fd.c fdc needs-flag
376 major {fd = 2}
377
378 # network devices MII bus
379 include "dev/mii/files.mii"
380
381 # XXXX pcic here because it needs to be late. The catch: pcic needs
382 # to be late, so devices which attach to it are attached late. But it
383 # needs to be before its isa and pci attachments. This answer is
384 # non-optimal, but I don't have a better answer right now.
385
386 # PCIC pcmcia contoller
387 # XXX this needs to be done very late, so it's done here. This feels
388 # like a kludge, but it might be for the best.
389
390 defparam PCIC_ISA_ALLOC_IOBASE
391 defparam PCIC_ISA_ALLOC_IOSIZE
392 defparam PCIC_ISA_INTR_ALLOC_MASK
393
394 device pcic: pcmciabus
395 file dev/ic/i82365.c pcic
396
397 #
398 # PCIC pcmcia controller
399 #
400 attach pcic at isa with pcic_isa
401 file dev/isa/i82365_isa.c pcic_isa
402 file dev/isa/i82365_isasubr.c pcic_isa
403
404 #
405 # Machine-independent PCMCIA drivers
406 #
407 include "dev/pcmcia/files.pcmcia"
408
409 # Serial Interface Unit
410 attach com at vripif with com_vrip
411 file arch/hpcmips/vr/com_vrip.c com_vrip needs-flag
412
413 attach com at hpcioif with com_hpcio
414 file arch/hpcmips/dev/com_hpcio.c com_hpcio needs-flag
415
416 # Memory Disk for boot tape
417 file dev/md_root.c memory_disk_hooks
418 major {md = 6}
419
420 include "dev/usb/files.usb"
421
422 # DMA Address Unit
423 device vrdmaau
424 attach vrdmaau at vripif
425 file arch/hpcmips/vr/vrdmaau.c vrdmaau
426
427 # DMA Controll Unit
428 device vrdcu
429 attach vrdcu at vripif
430 file arch/hpcmips/vr/vrdcu.c vrdcu
431