files.hpcmips revision 1.52 1 # $NetBSD: files.hpcmips,v 1.52 2001/02/26 09:34:22 sato 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/procfs_machdep.c procfs
54
55 #
56 # H/PC Platform common files.
57 #
58 include "arch/hpc/conf/files.hpc"
59 file arch/hpc/hpc/disksubr.c disk
60 include "dev/hpc/files.bicons"
61 include "dev/hpc/files.hpcfb"
62 include "dev/hpc/files.hpckbd"
63 include "dev/hpc/files.hpctp"
64
65 # Console autoconfiguration code: selects between a framebuffers
66 file dev/cons.c
67
68 #
69 # Workstation Console
70 #
71 include "dev/wscons/files.wscons"
72
73 #
74 # power management
75 #
76 include "arch/hpcmips/dev/apm/files.apm"
77 device hpcapm: apmdevif
78 attach hpcapm at mainbus
79 file arch/hpcmips/dev/hpcapm.c hpcapm
80
81 #
82 # ISA bus support
83 #
84 include "dev/isa/files.isa"
85
86 #
87 # Vr41x1 integrated peripherals
88 #
89 device vrip { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [intr=-1], [pwctl=-1], [platform = -1] }
90 attach vrip at mainbus
91 file arch/hpcmips/vr/vrip.c vrip needs-flag
92
93 device vrbcu
94 attach vrbcu at vrip
95 file arch/hpcmips/vr/bcu_vrip.c vrbcu needs-flag
96
97 device vrrtc
98 attach vrrtc at vrip
99 file arch/hpcmips/vr/rtc.c vrrtc needs-flag
100
101 device vrcmu
102 attach vrcmu at vrip
103 file arch/hpcmips/vr/cmu.c vrcmu needs-flag
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], [initvalue = -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 vrkiu: hpckbdif
130 attach vrkiu at vrip
131 file arch/hpcmips/vr/vrkiu.c vrkiu needs-flag
132
133 device vrpmu
134 attach vrpmu at vrip
135 file arch/hpcmips/vr/vrpmu.c vrpmu needs-flag
136
137 device vrdsu
138 attach vrdsu at vrip
139 file arch/hpcmips/vr/vrdsu.c vrdsu needs-flag
140
141 device vrled
142 attach vrled at vrip
143 file arch/hpcmips/vr/vrled.c vrled needs-flag
144
145 device vrpiu: wsmousedev
146 attach vrpiu at vrip: tpcalib
147 file arch/hpcmips/vr/vrpiu.c vrpiu
148
149 attach ohci at vrip with ohci_vrip
150 file arch/hpcmips/dev/ohci_vrip.c ohci_vrip
151
152 device mqvideo: hpcfbif
153 attach mqvideo at vrip with mqvideo_vrip
154 file arch/hpcmips/vr/mq200_vrip.c mqvideo_vrip
155 file arch/hpcmips/dev/mq200.c mqvideo
156
157 device ite8181video: hpcfbif
158 attach ite8181video at vrip with ite8181video_vrip
159 file arch/hpcmips/vr/ite8181_vrip.c ite8181video_vrip
160 file arch/hpcmips/dev/ite8181.c ite8181video
161
162 device vrc4172pwm
163 attach vrc4172pwm at vrip
164 file arch/hpcmips/vr/vrc4172pwm.c vrc4172pwm needs-flag
165
166 #
167 # TOSHIBA TX3912/3922
168 #
169 defopt TX39_DEBUG
170 defopt TX39_WATCHDOGTIMER
171 defopt TX39ICUDEBUG
172 defopt TX39CLKDEBUG
173 defopt TX39BIUDEBUG
174 defopt TX39POWERDEBUG
175 defopt TX39UARTDEBUG
176 defopt USE_POLL
177
178 device txsim {[platform = -1]}
179 device txcsbusif {[platform = -1]}
180 device txcomif {[slot = -1]}
181 device txsibif {[slot = -1]}
182 device ucbif { }
183 device irif { }
184 device txiomanif {[evtype = -1], [id = -1], [group = -1], [port = -1], [edge = -1], [initial = -1]}
185
186 attach txsim at mainbus
187 file arch/hpcmips/tx/txsim.c txsim
188 file arch/hpcmips/tx/txsnd.c txsim
189
190 device tx39biu: txcsbusif
191 attach tx39biu at txsim
192 file arch/hpcmips/tx/tx39biu.c tx39biu
193
194 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]}
195 attach txcsbus at txcsbusif
196 file arch/hpcmips/tx/txcsbus.c txcsbus
197
198 device tx39icu
199 attach tx39icu at txsim
200 file arch/hpcmips/tx/tx39icu.c tx39icu
201
202 device tx39power
203 attach tx39power at txsim
204 file arch/hpcmips/tx/tx39power.c tx39power
205
206 device tx39clock
207 attach tx39clock at txsim
208 file arch/hpcmips/tx/tx39clock.c tx39clock
209
210 device tx3912video: hpcfbif
211 attach tx3912video at txsim
212 file arch/hpcmips/tx/tx3912video.c tx3912video
213
214 device tx39io
215 attach tx39io at txsim
216 file arch/hpcmips/tx/tx39io.c tx39io
217
218 device txioman: txiomanif
219 attach txioman at txsim
220 file arch/hpcmips/tx/txioman.c txioman
221
222 device txin
223 attach txin at txiomanif
224 file arch/hpcmips/tx/txioman_in.c txin
225
226 device txout
227 attach txout at txiomanif
228 file arch/hpcmips/tx/txioman_out.c txout
229
230 device tx39sib: txsibif
231 attach tx39sib at txsim
232 file arch/hpcmips/tx/tx39sib.c tx39sib
233
234 # PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end)
235 device ucb: ucbif
236 attach ucb at txsibif
237 file arch/hpcmips/dev/ucb1200.c ucb
238
239 device ucbtp: wsmousedev
240 attach ucbtp at ucbif: tpcalib
241 file arch/hpcmips/dev/ucbtp.c ucbtp
242
243 device ucbsnd
244 attach ucbsnd at ucbif
245 file arch/hpcmips/dev/ucbsnd.c ucbsnd needs-flag
246
247 device ucbio
248 attach ucbio at ucbif
249 file arch/hpcmips/dev/ucbio.c ucbio
250
251 device tx39uart: txcomif
252 attach tx39uart at txsim
253 file arch/hpcmips/tx/tx39uart.c tx39uart needs-flag
254
255 device txcom: irif
256 attach txcom at txcomif
257 file arch/hpcmips/tx/txcom.c txcom
258
259 device tx39ir
260 attach tx39ir at irif
261 file arch/hpcmips/tx/tx39ir.c tx39ir
262
263 # ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA)
264 device it8368e: pcmciabus
265 attach it8368e at txcsbus
266 file arch/hpcmips/dev/it8368.c it8368e
267
268 # MITUBISHI M38813 keryboard controller
269 device m38813c: hpckbdif
270 attach m38813c at txcsbus
271 file arch/hpcmips/dev/m38813c.c m38813c needs-flag
272
273 # PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard)
274 device tc5165buf: hpckbdif
275 attach tc5165buf at txcsbus
276 file arch/hpcmips/dev/tc5165buf.c tc5165buf needs-flag
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: hpcfbif
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 needs-flag
312
313 #device txisab: isabus
314 #attach txisab at txcsbus
315 #file arch/hpcmips/isa/txisa_machdep.c txisab
316
317 file dev/hpc/video_subr.c tx3912video | plumvideo
318
319 #
320 # Real-time clock (not optional)
321 #
322 file arch/hpcmips/hpcmips/clock.c
323 file dev/clock_subr.c
324
325 # Floppy disk controller
326 device fdc {drive = -1}
327 #attach fdc at isa
328 #device fd: disk, isadma
329 device fd: disk
330 #attach fd at fdc
331 file arch/i386/isa/fd.c fdc needs-flag
332 major {fd = 2}
333
334 # network devices MII bus
335 include "dev/mii/files.mii"
336
337 # XXXX pcic here because it needs to be late. The catch: pcic needs
338 # to be late, so devices which attach to it are attached late. But it
339 # needs to be before its isa and pci attachments. This answer is
340 # non-optimal, but I don't have a better answer right now.
341
342 # PCIC pcmcia contoller
343 # XXX this needs to be done very late, so it's done here. This feels
344 # like a kludge, but it might be for the best.
345
346 defopt PCIC_ISA_ALLOC_IOBASE
347 defopt PCIC_ISA_ALLOC_IOSIZE
348 defopt PCIC_ISA_INTR_ALLOC_MASK
349
350 device pcic: pcmciabus
351 file dev/ic/i82365.c pcic
352
353 #
354 # PCIC pcmcia controller
355 #
356 attach pcic at isa with pcic_isa
357 file dev/isa/i82365_isa.c pcic_isa
358 file dev/isa/i82365_isasubr.c pcic_isa
359
360 #
361 # Machine-independent PCMCIA drivers
362 #
363 include "dev/pcmcia/files.pcmcia"
364
365 # Serial Interface Unit
366 attach com at vrip with com_vrip
367 file arch/hpcmips/vr/com_vrip.c com_vrip
368
369 # Memory Disk for boot tape
370 file dev/md_root.c memory_disk_hooks
371 major {md = 6}
372
373 include "dev/usb/files.usb"
374