f71c01cc52
Use Warner Losh's "hint" driver to decode ascii strings to fill the resource table at boot time. config(8) no longer generates an ioconf.c table - ie: the configuration no longer has to be compiled into the kernel. You can reconfigure your isa devices with the likes of this at loader(8) time: set hint.ed.0.port=0x320 userconfig will be rewritten to use this style interface one day and will move to /boot/userconfig.4th or something like that. It is still possible to statically compile in a set of hints into a kernel if you do not wish to use loader(8). See the "hints" directive in GENERIC as an example. All device wiring has been moved out of config(8). There is a set of helper scripts (see i386/conf/gethints.pl, and the same for alpha and pc98) that extract the 'at isa? port foo irq bar' from the old files and produces a hints file. If you install this file as /boot/device.hints (and update /boot/defaults/loader.conf - You can do a build/install in sys/boot) then loader will load it automatically for you. You can also compile in the hints directly with: hints "device.hints" as well. There are a few things that I'm not too happy with yet. Under this scheme, things like LINT would no longer be useful as "documentation" of settings. I have renamed this file to 'NOTES' and stored the example hints strings in it. However... this is not something that config(8) understands, so there is a script that extracts the build-specific data from the documentation file (NOTES) to produce a LINT that can be config'ed and built. A stack of man4 pages will need updating. :-/ Also, since there is no longer a difference between 'device' and 'pseudo-device' I collapsed the two together, and the resulting 'device' takes a 'number of units' for devices that still have it statically allocated. eg: 'device fe 4' will compile the fe driver with NFE set to 4. You can then set hints for 4 units (0 - 3). Also note that 'device fe0' will be interpreted as "zero units of 'fe'" which would be bad, so there is a config warning for this. This is only needed for old drivers that still have static limits on numbers of units. All the statically limited drivers that I could find were marked. Please exercise EXTREME CAUTION when transitioning! Moral support by: phk, msmith, dfr, asmodai, imp, and others
71 lines
1.4 KiB
Plaintext
71 lines
1.4 KiB
Plaintext
# $FreeBSD$
|
|
hint.fdc.0.at="isa"
|
|
hint.fdc.0.port="0x090"
|
|
hint.fdc.0.irq="11"
|
|
hint.fdc.0.drq="2"
|
|
hint.fd.0.at="fdc0"
|
|
hint.fd.0.drive="0"
|
|
hint.fd.1.at="fdc0"
|
|
hint.fd.1.drive="1"
|
|
hint.fd.2.at="fdc0"
|
|
hint.fd.2.drive="2"
|
|
hint.fd.3.at="fdc0"
|
|
hint.fd.3.drive="3"
|
|
hint.wdc.0.at="isa"
|
|
hint.wdc.0.port="0x640"
|
|
hint.wdc.0.irq="9"
|
|
hint.wd.0.at="wdc0"
|
|
hint.wd.0.drive="0"
|
|
#hint.wd.1.at="wdc0"
|
|
#hint.wd.1.drive="1"
|
|
#hint.wd.2.at="wdc0"
|
|
#hint.wd.2.drive="2"
|
|
#hint.wd.3.at="wdc0"
|
|
#hint.wd.3.drive="3"
|
|
hint.bs.0.at="isa"
|
|
hint.bs.0.port="0xCC0"
|
|
hint.bs.0.irq="5"
|
|
hint.bs.0.drq="3"
|
|
hint.bs.0.flags="0"
|
|
hint.aic.0.at="isa"
|
|
hint.aic.0.port="0x1840"
|
|
hint.aic.0.irq="5"
|
|
hint.aic.0.flags="0x10000"
|
|
hint.pckbd.0.at="isa"
|
|
hint.pckbd.0.port="0x041"
|
|
hint.pckbd.0.irq="1"
|
|
hint.gdc.0.at="isa"
|
|
hint.sc.0.at="isa"
|
|
hint.npx.0.at="nexus"
|
|
hint.npx.0.port="0x0F8"
|
|
hint.npx.0.irq="8"
|
|
hint.pcic.0.at="isa"
|
|
hint.pcic.0.irq="6"
|
|
hint.pcic.0.port="0x3e0"
|
|
hint.sio.0.at="isa"
|
|
hint.sio.0.port="0x030"
|
|
hint.sio.0.irq="4"
|
|
hint.sio.1.at="isa"
|
|
hint.sio.1.port="0x238"
|
|
hint.sio.1.irq="5"
|
|
hint.sio.1.flags="0x12000010"
|
|
hint.mse.0.at="isa"
|
|
hint.mse.0.port="0x7FD9"
|
|
hint.mse.0.irq="13"
|
|
hint.ppc.0.at="isa"
|
|
hint.ppc.0.irq="14"
|
|
hint.olpt.0.at="isa"
|
|
hint.olpt.0.port="0x040"
|
|
hint.fe.0.at="isa"
|
|
hint.fe.0.port="0x00d0"
|
|
hint.fe.0.irq="3"
|
|
hint.fe.1.at="isa"
|
|
hint.fe.1.port="0x73d0"
|
|
hint.fe.1.irq="5"
|
|
hint.ep.0.at="isa"
|
|
hint.ep.0.port="0x40d0"
|
|
hint.ep.0.irq="3"
|
|
hint.lnc.0.at="isa"
|
|
hint.lnc.0.port="0x03d0"
|
|
hint.lnc.0.irq="6"
|