files.hpcmips revision 1.26 1 # $NetBSD: files.hpcmips,v 1.26 2000/03/12 12:08:16 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 SCSI drivers
10 #
11
12 include "dev/scsipi/files.scsipi"
13 major {sd = 3}
14 major {st = 4}
15 major {cd = 5}
16
17 #
18 # Machine-independent ATA drivers
19 #
20
21 include "dev/ata/files.ata"
22 major {wd = 1}
23
24 #
25 # Bus-independent devices
26 #
27 device mainbus { } # no locators
28 attach mainbus at root
29
30 device cpu # not optional
31 attach cpu at mainbus
32 file arch/hpcmips/hpcmips/cpu.c cpu
33
34 # CPU support option headers
35 defopt VR41X1
36 defopt TX39XX
37
38 #
39 # CPU-dependent files
40 #
41 file arch/hpcmips/vr/vr.c vr41x1 # NEC VR4000 series
42 file arch/hpcmips/vr/vr_idle.S vr41x1
43 file arch/hpcmips/tx/tx39.c tx39xx # TOSHIBA TX3900 series
44
45 file arch/mips/mips/fp.S softfloat
46
47 file arch/hpcmips/hpcmips/autoconf.c
48 file arch/hpcmips/hpcmips/conf.c
49 file arch/hpcmips/hpcmips/machdep.c
50 file arch/hpcmips/hpcmips/platid.c
51 file arch/hpcmips/hpcmips/platid_mask.c
52 file arch/hpcmips/hpcmips/platid_name.c
53 file arch/hpcmips/hpcmips/mainbus.c
54 file arch/hpcmips/hpcmips/bus_space.c
55 #file arch/hpcmips/hpcmips/bus_dma.c
56 file arch/hpcmips/hpcmips/disksubr.c disk
57 file arch/hpcmips/hpcmips/config_hook.c
58
59 # Console autoconfiguration code: selects between a framebuffers
60 file dev/cons.c
61 file arch/hpcmips/dev/bicons.c
62 file arch/hpcmips/dev/bifont.c
63
64 # Raster operations
65 include "dev/rasops/files.rasops"
66 include "dev/wsfont/files.wsfont"
67
68 #
69 # Workstation Console
70 #
71 include "dev/wscons/files.wscons"
72 device fb: wsemuldisplaydev, rasops1, rasops2, rasops8, rasops15, rasops16
73 attach fb at mainbus
74 file arch/hpcmips/dev/fb.c fb needs-flag
75
76 define hpcfbif {}
77 device hpcfb: wsemuldisplaydev, rasops1, rasops2, rasops8, rasops15, rasops16
78 attach hpcfb at hpcfbif
79 file arch/hpcmips/dev/hpcfb.c hpcfb needs-flag
80
81 device bivideo: hpcfbif
82 file arch/hpcmips/dev/bivideo.c bivideo needs-flag
83 attach bivideo at mainbus
84
85 device btnmgr: wskbddev
86 attach btnmgr at mainbus
87 file arch/hpcmips/dev/btnmgr.c btnmgr
88
89 #
90 # ISA bus support
91 #
92 include "dev/isa/files.isa"
93
94 #
95 # pseudo devices
96 #
97 defpseudo biconsdev
98 file arch/hpcmips/dev/biconsdev.c biconsdev needs-count
99
100 #
101 # Vr41x1 integrated peripherals
102 #
103 device vrip { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [intr=-1], [pwctl=-1] }
104 attach vrip at mainbus
105 file arch/hpcmips/vr/vrip.c vrip needs-flag
106
107 device vrrtc
108 attach vrrtc at vrip
109 file arch/hpcmips/vr/rtc.c vrrtc
110
111 device vrcmu
112 attach vrcmu at vrip
113 file arch/hpcmips/vr/cmu.c vrcmu
114
115 device vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]} # GIU attachment
116 device gpbusif {[platform = -1], [comctrl = -1], [button0 = -1], [button1 = -1], [button2 = -1], [button3 = -1], [button4 = -1], [button5 = -1], [button6 = -1], [button7 = -1], [button8 = -1], [button9 = -1], [button10 = -1], [button11 = -1]}
117 device newgpbusif { [platform = -1], [id = -1], [port = -1], [active = 1], [level = -1] }
118
119 device vrgiu: vrisabif, gpbusif, newgpbusif
120 attach vrgiu at vrip
121 file arch/hpcmips/vr/vrgiu.c vrgiu
122
123 device gpbus
124 attach gpbus at gpbusif
125 file arch/hpcmips/vr/gpbus.c gpbus
126
127 device vrisab: isabus
128 attach vrisab at vrisabif
129 file arch/hpcmips/isa/isa_machdep.c vrisab
130
131 device pwctl
132 attach pwctl at newgpbusif with pwctl_vrgiu
133 file arch/hpcmips/vr/pwctl_vrgiu.c pwctl_vrgiu
134
135 device button
136 attach button at newgpbusif with button_vrgiu
137 file arch/hpcmips/vr/button_vrgiu.c button_vrgiu
138
139 device vrbcu
140 attach vrbcu at vrip
141 file arch/hpcmips/vr/bcu_vrip.c vrbcu needs-flag
142
143 device vrkiu: wskbddev
144 attach vrkiu at vrip
145 file arch/hpcmips/vr/vrkiu.c vrkiu needs-flag
146
147 #
148 # XXX files.pckbc XXX
149 #
150 device pckbd: wskbddev
151 attach pckbd at pckbc
152 file dev/pckbc/pckbd.c pckbd needs-flag
153 file dev/pckbc/wskbdmap_mfii.c pckbd | vrkiu | skbd
154 defopt PCKBD_LAYOUT
155
156 device vrpmu
157 attach vrpmu at vrip
158 file arch/hpcmips/vr/vrpmu.c vrpmu needs-flag
159
160 device vrdsu
161 attach vrdsu at vrip
162 file arch/hpcmips/vr/vrdsu.c vrdsu needs-flag
163
164 define tpcalib
165 file arch/hpcmips/dev/tpcalib.c tpcalib
166 file arch/hpcmips/dev/mra.c tpcalib
167
168 device vrpiu: wsmousedev
169 attach vrpiu at vrip: tpcalib
170 file arch/hpcmips/vr/vrpiu.c vrpiu
171
172 #
173 # TOSHIBA TX3912/3922
174 #
175 defopt TX39_DEBUG
176 defopt TX39_WATCHDOGTIMER
177 defopt TX39ICUDEBUG
178 defopt TX39CLKDEBUG
179 defopt TX39BIUDEBUG
180 defopt TX39IODEBUG
181 defopt TX39POWERDEBUG
182 defopt TX39UARTDEBUG
183 defopt USE_POLL
184
185 device txsim { }
186 device txcsbusif {[platform = -1]}
187 device txcomif {[slot = -1]}
188 device txsibif {[slot = -1]}
189 device ucbif { }
190 device irif { }
191 device txiomanif {[platform = -1]}
192
193 attach txsim at mainbus
194 file arch/hpcmips/tx/txsim.c txsim
195 file arch/hpcmips/tx/txsnd.c txsim
196
197 device tx39biu: txcsbusif
198 attach tx39biu at txsim
199 file arch/hpcmips/tx/tx39biu.c tx39biu
200
201 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]}
202 attach txcsbus at txcsbusif
203 file arch/hpcmips/tx/txcsbus.c txcsbus
204
205 device tx39icu
206 attach tx39icu at txsim
207 file arch/hpcmips/tx/tx39icu.c tx39icu
208
209 device tx39power
210 attach tx39power at txsim
211 file arch/hpcmips/tx/tx39power.c tx39power
212
213 device tx39clock
214 attach tx39clock at txsim
215 file arch/hpcmips/tx/tx39clock.c tx39clock
216
217 device tx3912video: mainbus # XXX crazy XXX
218 attach tx3912video at txsim
219 file arch/hpcmips/tx/tx3912video.c tx3912video
220
221 device tx39io: txiomanif
222 attach tx39io at txsim
223 file arch/hpcmips/tx/tx39io.c tx39io
224
225 device txioman
226 attach txioman at txiomanif
227 file arch/hpcmips/tx/txioman.c txioman
228
229 device tx39sib: txsibif
230 attach tx39sib at txsim
231 file arch/hpcmips/tx/tx39sib.c tx39sib
232
233 # PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end)
234 device ucb: ucbif
235 attach ucb at txsibif
236 file arch/hpcmips/dev/ucb1200.c ucb
237
238 device ucbtp: wsmousedev
239 attach ucbtp at ucbif: tpcalib
240 file arch/hpcmips/dev/ucbtp.c ucbtp
241
242 device ucbsnd
243 attach ucbsnd at ucbif
244 file arch/hpcmips/dev/ucbsnd.c ucbsnd needs-flag
245
246 device ucbio: newgpbusif
247 attach ucbio at ucbif
248 file arch/hpcmips/dev/ucbio.c ucbio
249
250 device ucbioport
251 attach ucbioport at newgpbusif
252 file arch/hpcmips/dev/ucbioport.c ucbioport
253
254 device tx39uart: txcomif
255 attach tx39uart at txsim
256 file arch/hpcmips/tx/tx39uart.c tx39uart needs-flag
257
258 device txcom: irif
259 attach txcom at txcomif
260 file arch/hpcmips/tx/txcom.c txcom
261
262 device tx39ir
263 attach tx39ir at irif
264 file arch/hpcmips/tx/tx39ir.c tx39ir
265
266 # ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA)
267 device it8368e: pcmciabus
268 attach it8368e at txcsbus
269 file arch/hpcmips/dev/it8368.c it8368e
270
271 device skbdif {}
272
273 # MITUBISHI M38813 keryboard controller
274 device m38813c: skbdif
275 attach m38813c at txcsbus
276 file arch/hpcmips/dev/m38813c.c m38813c needs-flag
277
278 # PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard)
279 device tc5165buf: skbdif
280 attach tc5165buf at txcsbus
281 file arch/hpcmips/dev/tc5165buf.c tc5165buf needs-flag
282
283 # Simple keyboard interface for wskbd
284 device skbd: wskbddev
285 attach skbd at skbdif
286 file arch/hpcmips/dev/skbd.c skbd
287
288
289 # TOSHIBA TC6358E(Plum2)
290 device plumif {}
291 device plum: plumif
292 attach plum at txcsbus
293 file arch/hpcmips/dev/plum.c plum
294
295 device plumicu
296 attach plumicu at plumif
297 file arch/hpcmips/dev/plumicu.c plumicu
298
299 device plumpower
300 attach plumpower at plumif
301 file arch/hpcmips/dev/plumpower.c plumpower
302
303 device plumvideo: mainbus # XXX crazy XXX
304 attach plumvideo at plumif
305 file arch/hpcmips/dev/plumvideo.c plumvideo
306
307 device plumpcmcia: pcmciabus
308 attach plumpcmcia at plumif
309 file arch/hpcmips/dev/plumpcmcia.c plumpcmcia
310
311 device plumiobusif {[platform = -1], [slot = -1]}
312 device plumiobus: plumiobusif
313 attach plumiobus at plumif
314 file arch/hpcmips/dev/plumiobus.c plumiobus
315
316 device plumisab: isabus
317 attach plumisab at plumiobusif
318 file arch/hpcmips/isa/plumisa_machdep.c plumisab
319
320 # OHCI USB controller
321 #attach ohci at plumif with plumohci
322 #file arch/hpcmips/dev/plumohci.c plumohci
323
324 #device txisab: isabus
325 #attach txisab at txcsbus
326 #file arch/hpcmips/isa/txisa_machdep.c txisab
327
328 #
329 # Real-time clock (not optional)
330 #
331 file arch/hpcmips/hpcmips/clock.c
332 file dev/clock_subr.c
333
334 # Floppy disk controller
335 device fdc {drive = -1}
336 #attach fdc at isa
337 #device fd: disk, isadma
338 device fd: disk
339 #attach fd at fdc
340 file arch/i386/isa/fd.c fdc needs-flag
341 major {fd = 2}
342
343 # network devices MII bus
344 include "dev/mii/files.mii"
345
346 # XXXX pcic here because it needs to be late. The catch: pcic needs
347 # to be late, so devices which attach to it are attached late. But it
348 # needs to be before its isa and pci attachments. This answer is
349 # non-optimal, but I don't have a better answer right now.
350
351 # PCIC pcmcia contoller
352 # XXX this needs to be done very late, so it's done here. This feels
353 # like a kludge, but it might be for the best.
354
355 defopt PCIC_ISA_ALLOC_IOBASE
356 defopt PCIC_ISA_ALLOC_IOSIZE
357 defopt PCIC_ISA_INTR_ALLOC_MASK
358
359 device pcic: pcmciabus
360 file dev/ic/i82365.c pcic
361
362 #
363 # PCIC pcmcia controller
364 #
365 attach pcic at isa with pcic_isa
366 file dev/isa/i82365_isa.c pcic_isa
367 file dev/isa/i82365_isasubr.c pcic_isa
368
369 #
370 # Machine-independent PCMCIA drivers
371 #
372 include "dev/pcmcia/files.pcmcia"
373
374 # Serial Interface Unit
375 attach com at vrip with com_vrip
376 file arch/hpcmips/vr/com_vrip.c com_vrip
377
378 # Memory Disk for boot tape
379 file arch/hpcmips/dev/md_root.c memory_disk_hooks
380 major {md = 6}
381
382 #include "dev/usb/files.usb"
383