files.hpcmips revision 1.51 1 # $NetBSD: files.hpcmips,v 1.51 2001/02/22 18:37:57 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/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] }
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 #
163 # TOSHIBA TX3912/3922
164 #
165 defopt TX39_DEBUG
166 defopt TX39_WATCHDOGTIMER
167 defopt TX39ICUDEBUG
168 defopt TX39CLKDEBUG
169 defopt TX39BIUDEBUG
170 defopt TX39POWERDEBUG
171 defopt TX39UARTDEBUG
172 defopt USE_POLL
173
174 device txsim {[platform = -1]}
175 device txcsbusif {[platform = -1]}
176 device txcomif {[slot = -1]}
177 device txsibif {[slot = -1]}
178 device ucbif { }
179 device irif { }
180 device txiomanif {[evtype = -1], [id = -1], [group = -1], [port = -1], [edge = -1], [initial = -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: hpcfbif
207 attach tx3912video at txsim
208 file arch/hpcmips/tx/tx3912video.c tx3912video
209
210 device tx39io
211 attach tx39io at txsim
212 file arch/hpcmips/tx/tx39io.c tx39io
213
214 device txioman: txiomanif
215 attach txioman at txsim
216 file arch/hpcmips/tx/txioman.c txioman
217
218 device txin
219 attach txin at txiomanif
220 file arch/hpcmips/tx/txioman_in.c txin
221
222 device txout
223 attach txout at txiomanif
224 file arch/hpcmips/tx/txioman_out.c txout
225
226 device tx39sib: txsibif
227 attach tx39sib at txsim
228 file arch/hpcmips/tx/tx39sib.c tx39sib
229
230 # PHILIPS UCB1200 / TOSHIBA TC35413F (modem/audio analog front-end)
231 device ucb: ucbif
232 attach ucb at txsibif
233 file arch/hpcmips/dev/ucb1200.c ucb
234
235 device ucbtp: wsmousedev
236 attach ucbtp at ucbif: tpcalib
237 file arch/hpcmips/dev/ucbtp.c ucbtp
238
239 device ucbsnd
240 attach ucbsnd at ucbif
241 file arch/hpcmips/dev/ucbsnd.c ucbsnd needs-flag
242
243 device ucbio
244 attach ucbio at ucbif
245 file arch/hpcmips/dev/ucbio.c ucbio
246
247 device tx39uart: txcomif
248 attach tx39uart at txsim
249 file arch/hpcmips/tx/tx39uart.c tx39uart needs-flag
250
251 device txcom: irif
252 attach txcom at txcomif
253 file arch/hpcmips/tx/txcom.c txcom
254
255 device tx39ir
256 attach tx39ir at irif
257 file arch/hpcmips/tx/tx39ir.c tx39ir
258
259 # ITE IT8368E PCMCIA / TOSHIBA TC6345AF buffer chip (PCMCIA)
260 device it8368e: pcmciabus
261 attach it8368e at txcsbus
262 file arch/hpcmips/dev/it8368.c it8368e
263
264 # MITUBISHI M38813 keryboard controller
265 device m38813c: hpckbdif
266 attach m38813c at txcsbus
267 file arch/hpcmips/dev/m38813c.c m38813c needs-flag
268
269 # PHILIPS 74ALVC16241 / TOSHIBA TC5165BTFS buffer driver (keyboard)
270 device tc5165buf: hpckbdif
271 attach tc5165buf at txcsbus
272 file arch/hpcmips/dev/tc5165buf.c tc5165buf needs-flag
273
274 # TOSHIBA TC6358E(Plum2)
275 device plumif {}
276 device plum: plumif
277 attach plum at txcsbus
278 file arch/hpcmips/dev/plum.c plum
279
280 device plumicu
281 attach plumicu at plumif
282 file arch/hpcmips/dev/plumicu.c plumicu
283
284 device plumpower
285 attach plumpower at plumif
286 file arch/hpcmips/dev/plumpower.c plumpower
287
288 device plumvideo: hpcfbif
289 attach plumvideo at plumif
290 file arch/hpcmips/dev/plumvideo.c plumvideo
291
292 device plumpcmcia: pcmciabus
293 attach plumpcmcia at plumif
294 file arch/hpcmips/dev/plumpcmcia.c plumpcmcia
295
296 device plumiobusif {[platform = -1], [slot = -1]}
297 device plumiobus: plumiobusif
298 attach plumiobus at plumif
299 file arch/hpcmips/dev/plumiobus.c plumiobus
300
301 device plumisab: isabus
302 attach plumisab at plumiobusif
303 file arch/hpcmips/isa/plumisa_machdep.c plumisab
304
305 # OHCI USB controller
306 attach ohci at plumif with plumohci
307 file arch/hpcmips/dev/plumohci.c plumohci needs-flag
308
309 #device txisab: isabus
310 #attach txisab at txcsbus
311 #file arch/hpcmips/isa/txisa_machdep.c txisab
312
313 file dev/hpc/video_subr.c tx3912video | plumvideo
314
315 #
316 # Real-time clock (not optional)
317 #
318 file arch/hpcmips/hpcmips/clock.c
319 file dev/clock_subr.c
320
321 # Floppy disk controller
322 device fdc {drive = -1}
323 #attach fdc at isa
324 #device fd: disk, isadma
325 device fd: disk
326 #attach fd at fdc
327 file arch/i386/isa/fd.c fdc needs-flag
328 major {fd = 2}
329
330 # network devices MII bus
331 include "dev/mii/files.mii"
332
333 # XXXX pcic here because it needs to be late. The catch: pcic needs
334 # to be late, so devices which attach to it are attached late. But it
335 # needs to be before its isa and pci attachments. This answer is
336 # non-optimal, but I don't have a better answer right now.
337
338 # PCIC pcmcia contoller
339 # XXX this needs to be done very late, so it's done here. This feels
340 # like a kludge, but it might be for the best.
341
342 defopt PCIC_ISA_ALLOC_IOBASE
343 defopt PCIC_ISA_ALLOC_IOSIZE
344 defopt PCIC_ISA_INTR_ALLOC_MASK
345
346 device pcic: pcmciabus
347 file dev/ic/i82365.c pcic
348
349 #
350 # PCIC pcmcia controller
351 #
352 attach pcic at isa with pcic_isa
353 file dev/isa/i82365_isa.c pcic_isa
354 file dev/isa/i82365_isasubr.c pcic_isa
355
356 #
357 # Machine-independent PCMCIA drivers
358 #
359 include "dev/pcmcia/files.pcmcia"
360
361 # Serial Interface Unit
362 attach com at vrip with com_vrip
363 file arch/hpcmips/vr/com_vrip.c com_vrip
364
365 # Memory Disk for boot tape
366 file dev/md_root.c memory_disk_hooks
367 major {md = 6}
368
369 include "dev/usb/files.usb"
370