files.hpcmips revision 1.48 1 # $NetBSD: files.hpcmips,v 1.48 2001/02/05 17:41:23 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/mainbus.c
51 file arch/hpcmips/hpcmips/bus_space.c
52 file arch/hpcmips/hpcmips/bus_dma.c
53 file arch/hpcmips/hpcmips/disksubr.c disk
54 file arch/hpcmips/hpcmips/procfs_machdep.c procfs
55
56 #
57 # H/PC Platform common files.
58 #
59 include "arch/hpc/conf/files.hpc"
60
61 # Console autoconfiguration code: selects between a framebuffers
62 file dev/cons.c
63 file arch/hpcmips/dev/bicons.c
64 file arch/hpcmips/dev/bifont.c
65
66 # Raster operations
67 include "dev/rasops/files.rasops"
68 include "dev/wsfont/files.wsfont"
69
70 #
71 # Workstation Console
72 #
73 include "dev/wscons/files.wscons"
74 file dev/pckbc/wskbdmap_mfii.c btnmgr | hpckbd
75 file arch/hpcmips/dev/pckbd_encode.c btnmgr | hpckbd
76 defopt PCKBD_LAYOUT
77
78 # Simple framebuffer interface for wsdisplay
79 define hpcfbif {}
80 device hpcfb: wsemuldisplaydev, rasops1, rasops2, rasops4, rasops8, rasops15, rasops16
81 attach hpcfb at hpcfbif
82 file arch/hpcmips/dev/hpcfb.c hpcfb needs-flag
83
84 # Simple keyboard interface for wskbd
85 device hpckbdif {}
86 device hpckbd: wskbddev
87 attach hpckbd at hpckbdif
88 file arch/hpcmips/dev/hpckbd.c hpckbd
89
90 device bivideo: hpcfbif
91 file arch/hpcmips/dev/bivideo.c bivideo needs-flag
92 file arch/hpcmips/dev/hpccmap.c bivideo
93 attach bivideo at mainbus
94
95 device btnmgr: wskbddev
96 attach btnmgr at mainbus
97 file arch/hpcmips/dev/btnmgr.c btnmgr
98
99 file arch/hpcmips/dev/video_subr.c tx3912video | plumvideo
100
101 #
102 # power management
103 #
104 include "arch/hpcmips/dev/apm/files.apm"
105 device hpcapm: apmdevif
106 attach hpcapm at mainbus
107 file arch/hpcmips/dev/hpcapm.c hpcapm
108
109 #
110 # ISA bus support
111 #
112 include "dev/isa/files.isa"
113
114 #
115 # pseudo devices
116 #
117 defpseudo biconsdev
118 file arch/hpcmips/dev/biconsdev.c biconsdev needs-count
119
120 #
121 # Vr41x1 integrated peripherals
122 #
123 device vrip { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [intr=-1], [pwctl=-1] }
124 attach vrip at mainbus
125 file arch/hpcmips/vr/vrip.c vrip needs-flag
126
127 device vrbcu
128 attach vrbcu at vrip
129 file arch/hpcmips/vr/bcu_vrip.c vrbcu needs-flag
130
131 device vrrtc
132 attach vrrtc at vrip
133 file arch/hpcmips/vr/rtc.c vrrtc needs-flag
134
135 device vrcmu
136 attach vrcmu at vrip
137 file arch/hpcmips/vr/cmu.c vrcmu needs-flag
138
139 device vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]} # GIU attachment
140 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]}
141 device newgpbusif { [platform = -1], [id = -1], [port = -1], [active = 1], [level = -1], [initvalue = -1] }
142
143 device vrgiu: vrisabif, gpbusif, newgpbusif
144 attach vrgiu at vrip
145 file arch/hpcmips/vr/vrgiu.c vrgiu
146
147 device gpbus
148 attach gpbus at gpbusif
149 file arch/hpcmips/vr/gpbus.c gpbus
150
151 device vrisab: isabus
152 attach vrisab at vrisabif
153 file arch/hpcmips/isa/isa_machdep.c vrisab
154
155 device pwctl
156 attach pwctl at newgpbusif with pwctl_vrgiu
157 file arch/hpcmips/vr/pwctl_vrgiu.c pwctl_vrgiu
158
159 device button
160 attach button at newgpbusif with button_vrgiu
161 file arch/hpcmips/vr/button_vrgiu.c button_vrgiu
162
163 device vrkiu: hpckbdif
164 attach vrkiu at vrip
165 file arch/hpcmips/vr/vrkiu.c vrkiu needs-flag
166
167 device vrpmu
168 attach vrpmu at vrip
169 file arch/hpcmips/vr/vrpmu.c vrpmu needs-flag
170
171 device vrdsu
172 attach vrdsu at vrip
173 file arch/hpcmips/vr/vrdsu.c vrdsu needs-flag
174
175 device vrled
176 attach vrled at vrip
177 file arch/hpcmips/vr/vrled.c vrled needs-flag
178
179 define tpcalib
180 file arch/hpcmips/dev/tpcalib.c tpcalib
181 file arch/hpcmips/dev/mra.c tpcalib
182
183 device vrpiu: wsmousedev
184 attach vrpiu at vrip: tpcalib
185 file arch/hpcmips/vr/vrpiu.c vrpiu
186
187 attach ohci at vrip with ohci_vrip
188 file arch/hpcmips/dev/ohci_vrip.c ohci_vrip
189
190 device mqvideo: hpcfbif
191 attach mqvideo at vrip with mqvideo_vrip
192 file arch/hpcmips/vr/mq200_vrip.c mqvideo_vrip
193 file arch/hpcmips/dev/mq200.c mqvideo
194
195 device ite8181video: hpcfbif
196 attach ite8181video at vrip with ite8181video_vrip
197 file arch/hpcmips/vr/ite8181_vrip.c ite8181video_vrip
198 file arch/hpcmips/dev/ite8181.c ite8181video
199
200 #
201 # TOSHIBA TX3912/3922
202 #
203 defopt TX39_DEBUG
204 defopt TX39_WATCHDOGTIMER
205 defopt TX39ICUDEBUG
206 defopt TX39CLKDEBUG
207 defopt TX39BIUDEBUG
208 defopt TX39POWERDEBUG
209 defopt TX39UARTDEBUG
210 defopt USE_POLL
211
212 device txsim {[platform = -1]}
213 device txcsbusif {[platform = -1]}
214 device txcomif {[slot = -1]}
215 device txsibif {[slot = -1]}
216 device ucbif { }
217 device irif { }
218 device txiomanif {[evtype = -1], [id = -1], [group = -1], [port = -1], [edge = -1], [initial = -1]}
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: txiomanif
253 attach txioman at txsim
254 file arch/hpcmips/tx/txioman.c txioman
255
256 device txin
257 attach txin at txiomanif
258 file arch/hpcmips/tx/txioman_in.c txin
259
260 device txout
261 attach txout at txiomanif
262 file arch/hpcmips/tx/txioman_out.c txout
263
264 device tx39sib: txsibif
265 attach tx39sib at txsim
266 file arch/hpcmips/tx/tx39sib.c tx39sib
267
268 # PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end)
269 device ucb: ucbif
270 attach ucb at txsibif
271 file arch/hpcmips/dev/ucb1200.c ucb
272
273 device ucbtp: wsmousedev
274 attach ucbtp at ucbif: tpcalib
275 file arch/hpcmips/dev/ucbtp.c ucbtp
276
277 device ucbsnd
278 attach ucbsnd at ucbif
279 file arch/hpcmips/dev/ucbsnd.c ucbsnd needs-flag
280
281 device ucbio
282 attach ucbio at ucbif
283 file arch/hpcmips/dev/ucbio.c ucbio
284
285 device tx39uart: txcomif
286 attach tx39uart at txsim
287 file arch/hpcmips/tx/tx39uart.c tx39uart needs-flag
288
289 device txcom: irif
290 attach txcom at txcomif
291 file arch/hpcmips/tx/txcom.c txcom
292
293 device tx39ir
294 attach tx39ir at irif
295 file arch/hpcmips/tx/tx39ir.c tx39ir
296
297 # ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA)
298 device it8368e: pcmciabus
299 attach it8368e at txcsbus
300 file arch/hpcmips/dev/it8368.c it8368e
301
302 # MITUBISHI M38813 keryboard controller
303 device m38813c: hpckbdif
304 attach m38813c at txcsbus
305 file arch/hpcmips/dev/m38813c.c m38813c needs-flag
306
307 # PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard)
308 device tc5165buf: hpckbdif
309 attach tc5165buf at txcsbus
310 file arch/hpcmips/dev/tc5165buf.c tc5165buf needs-flag
311
312 # TOSHIBA TC6358E(Plum2)
313 device plumif {}
314 device plum: plumif
315 attach plum at txcsbus
316 file arch/hpcmips/dev/plum.c plum
317
318 device plumicu
319 attach plumicu at plumif
320 file arch/hpcmips/dev/plumicu.c plumicu
321
322 device plumpower
323 attach plumpower at plumif
324 file arch/hpcmips/dev/plumpower.c plumpower
325
326 device plumvideo: hpcfbif
327 attach plumvideo at plumif
328 file arch/hpcmips/dev/plumvideo.c plumvideo
329
330 device plumpcmcia: pcmciabus
331 attach plumpcmcia at plumif
332 file arch/hpcmips/dev/plumpcmcia.c plumpcmcia
333
334 device plumiobusif {[platform = -1], [slot = -1]}
335 device plumiobus: plumiobusif
336 attach plumiobus at plumif
337 file arch/hpcmips/dev/plumiobus.c plumiobus
338
339 device plumisab: isabus
340 attach plumisab at plumiobusif
341 file arch/hpcmips/isa/plumisa_machdep.c plumisab
342
343 # OHCI USB controller
344 attach ohci at plumif with plumohci
345 file arch/hpcmips/dev/plumohci.c plumohci needs-flag
346
347 #device txisab: isabus
348 #attach txisab at txcsbus
349 #file arch/hpcmips/isa/txisa_machdep.c txisab
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 major {fd = 2}
365
366 # network devices MII bus
367 include "dev/mii/files.mii"
368
369 # XXXX pcic here because it needs to be late. The catch: pcic needs
370 # to be late, so devices which attach to it are attached late. But it
371 # needs to be before its isa and pci attachments. This answer is
372 # non-optimal, but I don't have a better answer right now.
373
374 # PCIC pcmcia contoller
375 # XXX this needs to be done very late, so it's done here. This feels
376 # like a kludge, but it might be for the best.
377
378 defopt PCIC_ISA_ALLOC_IOBASE
379 defopt PCIC_ISA_ALLOC_IOSIZE
380 defopt PCIC_ISA_INTR_ALLOC_MASK
381
382 device pcic: pcmciabus
383 file dev/ic/i82365.c pcic
384
385 #
386 # PCIC pcmcia controller
387 #
388 attach pcic at isa with pcic_isa
389 file dev/isa/i82365_isa.c pcic_isa
390 file dev/isa/i82365_isasubr.c pcic_isa
391
392 #
393 # Machine-independent PCMCIA drivers
394 #
395 include "dev/pcmcia/files.pcmcia"
396
397 # Serial Interface Unit
398 attach com at vrip with com_vrip
399 file arch/hpcmips/vr/com_vrip.c com_vrip
400
401 # Memory Disk for boot tape
402 file dev/md_root.c memory_disk_hooks
403 major {md = 6}
404
405 include "dev/usb/files.usb"
406