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