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