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