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