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