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