files.hpcmips revision 1.11 1 # $NetBSD: files.hpcmips,v 1.11 1999/12/12 17:11:20 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/tx/tx39.c tx39xx # TOSHIBA TX3900 series
43
44 file arch/hpcmips/hpcmips/autoconf.c
45 file arch/hpcmips/hpcmips/conf.c
46 file arch/hpcmips/hpcmips/machdep.c
47 file arch/hpcmips/hpcmips/platid.c
48 file arch/hpcmips/hpcmips/platid_mask.c
49 file arch/hpcmips/hpcmips/mainbus.c
50 file arch/hpcmips/hpcmips/bus_space.c
51 #file arch/hpcmips/hpcmips/bus_dma.c
52 file arch/hpcmips/hpcmips/disksubr.c disk
53
54 # Console autoconfiguration code: selects between a framebuffers
55 file dev/cons.c
56 file arch/hpcmips/dev/bicons.c
57 file arch/hpcmips/dev/bifont.c
58 defpseudo biconsdev
59 file arch/hpcmips/dev/biconsdev.c biconsdev needs-count
60
61 # Raster operations
62 include "dev/rasops/files.rasops"
63 include "dev/wsfont/files.wsfont"
64
65 #
66 # Workstation Console
67 #
68 include "dev/wscons/files.wscons"
69 #device fb: wsemuldisplaydev, wsrasteremulops
70 device fb: wsemuldisplaydev, rasops1, rasops2, rasops8, rasops15, rasops16
71 attach fb at mainbus
72 file arch/hpcmips/dev/fb.c fb needs-flag
73
74 #
75 # ISA bus support
76 #
77 include "dev/isa/files.isa"
78
79 #
80 # Vr41x1 integrated peripherals
81 #
82 device vrip { [addr=-1], [size=-1], [addr2=-1], [size2=-1], [intr=-1] }
83 attach vrip at mainbus
84 file arch/hpcmips/vr/vrip.c vrip needs-flag
85
86 device vrrtc
87 attach vrrtc at vrip
88 file arch/hpcmips/vr/rtc.c vrrtc
89
90 device vrcmu
91 attach vrcmu at vrip
92 file arch/hpcmips/vr/cmu.c vrcmu
93
94 device vrisabif {[platform = -1], [isaportoffset=0], [isamemoffset=0]} # GIU attachment
95 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]}
96
97 device vrgiu: vrisabif, gpbusif
98 attach vrgiu at vrip
99 file arch/hpcmips/vr/vrgiu.c vrgiu
100
101 device gpbus
102 attach gpbus at gpbusif
103 file arch/hpcmips/vr/gpbus.c gpbus
104
105 device vrisab: isabus
106 attach vrisab at vrisabif
107 file arch/hpcmips/isa/isa_machdep.c vrisab
108
109 device vrbcu
110 attach vrbcu at vrip
111 file arch/hpcmips/vr/bcu_vrip.c vrbcu needs-flag
112
113 device vrkiu: wskbddev
114 attach vrkiu at vrip
115 file arch/hpcmips/vr/vrkiu.c vrkiu needs-flag
116 #
117 # XXX files.pckbc XXX
118 #
119 device pckbd: wskbddev
120 attach pckbd at pckbc
121 file dev/pckbc/pckbd.c pckbd needs-flag
122 file dev/pckbc/wskbdmap_mfii.c pckbd | vrkiu | skbd
123 defopt PCKBD_LAYOUT
124
125 device vrpmu
126 attach vrpmu at vrip
127 file arch/hpcmips/vr/vrpmu.c vrpmu needs-flag
128
129 device vrdsu
130 attach vrdsu at vrip
131 file arch/hpcmips/vr/vrdsu.c vrdsu needs-flag
132
133 #
134 # TOSHIBA TX3912/3922
135 #
136 defopt TX39_DEBUG
137 defopt TX39_WATCHDOGTIMER
138 defopt TX39ICUDEBUG
139 defopt TX39CLKDEBUG
140 defopt TX39BIUDEBUG
141 defopt TX39IODEBUG
142 defopt TX39POWERDEBUG
143 defopt TX39UARTDEBUG
144 defopt IT8368DEBUG
145 defopt USE_POLL
146
147 device txsim { }
148 device txcsbusif {[platform = -1]}
149 device txcomif {[slot = -1]}
150
151 attach txsim at mainbus
152 file arch/hpcmips/tx/txsim.c txsim
153
154 device tx39biu: txcsbusif
155 attach tx39biu at txsim
156 file arch/hpcmips/tx/tx39biu.c tx39biu
157
158 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]}
159 attach txcsbus at txcsbusif
160 file arch/hpcmips/tx/txcsbus.c txcsbus
161
162 device tx39icu
163 attach tx39icu at txsim
164 file arch/hpcmips/tx/tx39icu.c tx39icu
165
166 device tx39power
167 attach tx39power at txsim
168 file arch/hpcmips/tx/tx39power.c tx39power
169
170 device tx39clock
171 attach tx39clock at txsim
172 file arch/hpcmips/tx/tx39clock.c tx39clock
173
174 device tx3912video: mainbus # XXX crazy XXX
175 attach tx3912video at txsim
176 file arch/hpcmips/tx/tx3912video.c tx3912video
177
178 device tx39io
179 attach tx39io at txsim
180 file arch/hpcmips/tx/tx39io.c tx39io
181
182 device tx39uart: txcomif
183 attach tx39uart at txsim
184 file arch/hpcmips/tx/tx39uart.c tx39uart needs-flag
185
186 device txcom
187 attach txcom at txcomif
188 file arch/hpcmips/tx/txcom.c txcom
189
190 # ITE 8368E PCMCIA controller
191 device it8368e: pcmciabus
192 attach it8368e at txcsbus
193 file arch/hpcmips/dev/it8368.c it8368e
194
195 device skbdif {}
196 # PHILIPS 74ALVC16241 buffer driver (keyboard)
197 device p7416buf: skbdif
198 attach p7416buf at txcsbus
199 file arch/hpcmips/dev/p7416buf.c p7416buf needs-flag
200
201 # MITUBISHI M38813 keryboard controller
202 device m38813c: skbdif
203 attach m38813c at txcsbus
204 file arch/hpcmips/dev/m38813c.c m38813c needs-flag
205
206 # TOSHIBA TC5165BTFS buffer driver (keyboard)
207 device tc5165buf: skbdif
208 attach tc5165buf at txcsbus
209 file arch/hpcmips/dev/tc5165buf.c tc5165buf needs-flag
210
211 # Simple keyboard interface for wskbd
212 device skbd: wskbddev
213 attach skbd at skbdif
214 file arch/hpcmips/dev/skbd.c skbd
215
216
217 # TOSHIBA TC6358E(Plum2)
218 device plumif {}
219 device plum: plumif
220 attach plum at txcsbus
221 file arch/hpcmips/dev/plum.c plum
222
223 device plumicu
224 attach plumicu at plumif
225 file arch/hpcmips/dev/plumicu.c plumicu
226
227 device plumpower
228 attach plumpower at plumif
229 file arch/hpcmips/dev/plumpower.c plumpower
230
231 device plumvideo: mainbus # XXX crazy XXX
232 attach plumvideo at plumif
233 file arch/hpcmips/dev/plumvideo.c plumvideo
234
235 device plumpcmcia: pcmciabus
236 attach plumpcmcia at plumif
237 file arch/hpcmips/dev/plumpcmcia.c plumpcmcia
238
239 device plumiobusif {[platform = -1], [slot = -1]}
240 device plumiobus: plumiobusif
241 attach plumiobus at plumif
242 file arch/hpcmips/dev/plumiobus.c plumiobus
243
244 device plumisab: isabus
245 attach plumisab at plumiobusif
246 file arch/hpcmips/isa/plumisa_machdep.c plumisab
247
248 # OHCI USB controller
249 #attach ohci at plumif with plumohci
250 #file arch/hpcmips/dev/plumohci.c plumohci
251
252 #device txisab: isabus
253 #attach txisab at txcsbus
254 #file arch/hpcmips/isa/txisa_machdep.c txisab
255
256 #
257 # Real-time clock (not optional)
258 #
259 file arch/hpcmips/hpcmips/clock.c
260 file dev/clock_subr.c
261
262 # Floppy disk controller
263 device fdc {drive = -1}
264 #attach fdc at isa
265 #device fd: disk, isadma
266 device fd: disk
267 #attach fd at fdc
268 file arch/i386/isa/fd.c fdc needs-flag
269 major {fd = 2}
270
271 # network devices MII bus
272 include "dev/mii/files.mii"
273
274 # XXXX pcic here because it needs to be late. The catch: pcic needs
275 # to be late, so devices which attach to it are attached late. But it
276 # needs to be before its isa and pci attachments. This answer is
277 # non-optimal, but I don't have a better answer right now.
278
279 # PCIC pcmcia contoller
280 # XXX this needs to be done very late, so it's done here. This feels
281 # like a kludge, but it might be for the best.
282
283 defopt PCIC_ISA_ALLOC_IOBASE
284 defopt PCIC_ISA_ALLOC_IOSIZE
285 defopt PCIC_ISA_INTR_ALLOC_MASK
286
287 device pcic: pcmciabus
288 file dev/ic/i82365.c pcic
289
290 #
291 # PCIC pcmcia controller
292 #
293 attach pcic at isa with pcic_isa
294 file dev/isa/i82365_isa.c pcic_isa
295 file dev/isa/i82365_isasubr.c pcic_isa
296
297 #
298 # Machine-independent PCMCIA drivers
299 #
300 include "dev/pcmcia/files.pcmcia"
301
302 # Serial Interface Unit
303 attach com at vrip with com_vrip
304 file arch/hpcmips/vr/com_vrip.c com_vrip
305
306 # Memory Disk for boot tape
307 file arch/hpcmips/dev/md_root.c memory_disk_hooks
308 major {md = 6}
309
310 #include "dev/usb/files.usb"
311