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