files.hpcmips revision 1.69 1 # $NetBSD: files.hpcmips,v 1.69 2002/01/29 18:47:29 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 { [id = -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 file arch/hpc/hpc/debug_subr.c
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 device vrip: vripif
113 attach vrip at mainbus
114 file arch/hpcmips/vr/vrip.c vrip needs-flag
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 attach ohci at vripif with ohci_vrip
160 file arch/hpcmips/dev/ohci_vrip.c ohci_vrip
161
162 device vrpciu: pcibus
163 attach vrpciu at vripif
164 file arch/hpcmips/vr/vrpciu.c vrpciu needs-flag
165
166 defflag opt_mq200.h MQ200_DEBUG MQ200_USECRT
167 device mqvideo: hpcfbif
168 attach mqvideo at vripif with mqvideo_vrip
169 file arch/hpcmips/vr/mq200_vrip.c mqvideo_vrip
170 file arch/hpcmips/dev/mq200.c mqvideo
171 file arch/hpcmips/dev/mq200subr.c mqvideo
172 file arch/hpcmips/dev/mq200debug.c mqvideo
173 file arch/hpcmips/dev/mq200machdep.c mqvideo
174
175 attach mqvideo at pci with mqvideo_pci
176 file arch/hpcmips/pci/mq200_pci.c mqvideo_pci
177
178 device ite8181video: hpcfbif
179 attach ite8181video at vripif with ite8181video_vrip
180 file arch/hpcmips/vr/ite8181_vrip.c ite8181video_vrip
181 file arch/hpcmips/dev/ite8181.c ite8181video
182
183 device vrc4172pwm
184 attach vrc4172pwm at vripif
185 file arch/hpcmips/vr/vrc4172pwm.c vrc4172pwm needs-flag
186
187 device vrc4172gpio: hpcioif, vrisabif
188 attach vrc4172gpio at hpcioif
189 file arch/hpcmips/vr/vrc4172gpio.c vrc4172gpio
190
191 device vrc4173cardu: pcmciabus
192 attach vrc4173cardu at pci
193 file arch/hpcmips/pci/vrc4173cardu.c vrc4173cardu
194
195 device vrc4173if {}
196
197 device vrc4173bcu: vrc4173if
198 attach vrc4173bcu at pci
199 file arch/hpcmips/vr/vrc4173bcu.c vrc4173bcu
200
201 device vrc4173cmu
202 attach vrc4173cmu at vrc4173if
203 file arch/hpcmips/vr/vrc4173cmu.c vrc4173cmu
204
205 device vrc4173piu
206 attach vrc4173piu at vrc4173if
207 file arch/hpcmips/vr/vrc4173piu.c vrc4173piu
208
209 device vrc4173kiu
210 attach vrc4173kiu at vrc4173if
211 file arch/hpcmips/vr/vrc4173kiu.c vrc4173kiu
212
213 #
214 # TOSHIBA TX3912/3922
215 #
216 defflag TX39_WATCHDOGTIMER
217 defflag TX39ICU_DEBUG
218 defflag TX39CLOCK_DEBUG
219 defflag TX39BIU_DEBUG
220 defflag TX39POWER_DEBUG
221 defflag TX39UART_DEBUG
222 defflag USE_POLL
223
224 device txsim { }
225 device txcsbusif {[platform = -1]}
226 device txcomif {[slot = -1]}
227 device txsibif {[slot = -1]}
228 device ucbif { }
229 device irif { }
230
231 attach txsim at mainbus
232 file arch/hpcmips/tx/txsim.c txsim
233 file arch/hpcmips/tx/txsnd.c txsim
234
235 device tx39biu: txcsbusif
236 attach tx39biu at txsim
237 file arch/hpcmips/tx/tx39biu.c tx39biu
238
239 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]}
240 attach txcsbus at txcsbusif
241 file arch/hpcmips/tx/txcsbus.c txcsbus
242
243 device tx39icu
244 attach tx39icu at txsim
245 file arch/hpcmips/tx/tx39icu.c tx39icu
246
247 device tx39power
248 attach tx39power at txsim
249 file arch/hpcmips/tx/tx39power.c tx39power
250
251 device tx39clock
252 attach tx39clock at txsim
253 file arch/hpcmips/tx/tx39clock.c tx39clock
254
255 device tx3912video: hpcfbif
256 attach tx3912video at txsim
257 file arch/hpcmips/tx/tx3912video.c tx3912video
258
259 device tx39io
260 attach tx39io at txsim
261 file arch/hpcmips/tx/tx39io.c tx39io
262
263 device txioman: hpcioif
264 attach txioman at txsim
265 file arch/hpcmips/tx/txioman.c txioman
266
267 device tx39sib: txsibif
268 attach tx39sib at txsim
269 file arch/hpcmips/tx/tx39sib.c tx39sib
270
271 # PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end)
272 device ucb: ucbif
273 attach ucb at txsibif
274 file arch/hpcmips/dev/ucb1200.c ucb
275
276 device ucbtp: wsmousedev
277 attach ucbtp at ucbif: tpcalib
278 file arch/hpcmips/dev/ucbtp.c ucbtp
279
280 device ucbsnd
281 attach ucbsnd at ucbif
282 file arch/hpcmips/dev/ucbsnd.c ucbsnd needs-flag
283
284 device ucbio
285 attach ucbio at ucbif
286 file arch/hpcmips/dev/ucbio.c ucbio
287
288 device tx39uart: txcomif
289 attach tx39uart at txsim
290 file arch/hpcmips/tx/tx39uart.c tx39uart needs-flag
291
292 device txcom: irif
293 attach txcom at txcomif
294 file arch/hpcmips/tx/txcom.c txcom
295
296 device tx39ir
297 attach tx39ir at irif
298 file arch/hpcmips/tx/tx39ir.c tx39ir
299
300 # ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA)
301 device it8368e: pcmciabus
302 attach it8368e at txcsbus
303 file arch/hpcmips/dev/it8368.c it8368e
304
305 # MITUBISHI M38813 keryboard controller
306 device m38813c: hpckbdif
307 attach m38813c at txcsbus
308 file arch/hpcmips/dev/m38813c.c m38813c needs-flag
309
310 # PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard)
311 device tc5165buf: hpckbdif
312 attach tc5165buf at txcsbus
313 file arch/hpcmips/dev/tc5165buf.c tc5165buf needs-flag
314
315 # TOSHIBA TC6358E(Plum2)
316 device plumif {}
317 device plum: plumif
318 attach plum at txcsbus
319 file arch/hpcmips/dev/plum.c plum
320
321 device plumicu
322 attach plumicu at plumif
323 file arch/hpcmips/dev/plumicu.c plumicu
324
325 device plumpower
326 attach plumpower at plumif
327 file arch/hpcmips/dev/plumpower.c plumpower
328
329 device plumvideo: hpcfbif
330 attach plumvideo at plumif
331 file arch/hpcmips/dev/plumvideo.c plumvideo
332
333 device plumpcmcia: pcmciabus
334 attach plumpcmcia at plumif
335 file arch/hpcmips/dev/plumpcmcia.c plumpcmcia
336
337 device plumiobusif {[platform = -1], [slot = -1]}
338 device plumiobus: plumiobusif
339 attach plumiobus at plumif
340 file arch/hpcmips/dev/plumiobus.c plumiobus
341
342 device plumisab: isabus
343 attach plumisab at plumiobusif
344 file arch/hpcmips/isa/plumisa_machdep.c plumisab
345
346 # OHCI USB controller
347 attach ohci at plumif with plumohci
348 file arch/hpcmips/dev/plumohci.c plumohci needs-flag
349
350 #device txisab: isabus
351 #attach txisab at txcsbus
352 #file arch/hpcmips/isa/txisa_machdep.c txisab
353
354 file dev/hpc/video_subr.c tx3912video | plumvideo
355
356 #
357 # Real-time clock (not optional)
358 #
359 file arch/hpcmips/hpcmips/clock.c
360 file dev/clock_subr.c
361
362 # Floppy disk controller
363 device fdc {drive = -1}
364 #attach fdc at isa
365 #device fd: disk, isadma
366 device fd: disk
367 #attach fd at fdc
368 file arch/i386/isa/fd.c fdc needs-flag
369 major {fd = 2}
370
371 # network devices MII bus
372 include "dev/mii/files.mii"
373
374 # XXXX pcic here because it needs to be late. The catch: pcic needs
375 # to be late, so devices which attach to it are attached late. But it
376 # needs to be before its isa and pci attachments. This answer is
377 # non-optimal, but I don't have a better answer right now.
378
379 # PCIC pcmcia contoller
380 # XXX this needs to be done very late, so it's done here. This feels
381 # like a kludge, but it might be for the best.
382
383 defparam PCIC_ISA_ALLOC_IOBASE
384 defparam PCIC_ISA_ALLOC_IOSIZE
385 defparam PCIC_ISA_INTR_ALLOC_MASK
386
387 device pcic: pcmciabus
388 file dev/ic/i82365.c pcic
389
390 #
391 # PCIC pcmcia controller
392 #
393 attach pcic at isa with pcic_isa
394 file dev/isa/i82365_isa.c pcic_isa
395 file dev/isa/i82365_isasubr.c pcic_isa
396
397 #
398 # Machine-independent PCMCIA drivers
399 #
400 include "dev/pcmcia/files.pcmcia"
401
402 # Serial Interface Unit
403 attach com at vripif with com_vrip
404 file arch/hpcmips/vr/com_vrip.c com_vrip needs-flag
405
406 attach com at hpcioif with com_hpcio
407 file arch/hpcmips/dev/com_hpcio.c com_hpcio needs-flag
408
409 # Memory Disk for boot tape
410 file dev/md_root.c memory_disk_hooks
411 major {md = 6}
412
413 include "dev/usb/files.usb"
414