#
beecddb6 |
| 07-Aug-2021 |
thorpej <thorpej@NetBSD.org> |
Merge thorpej-cfargs2.
|
#
3bee0c11 |
| 24-Apr-2021 |
thorpej <thorpej@NetBSD.org> |
Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass a
Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
show more ...
|
#
5f819ca3 |
| 27-Oct-2012 |
chs <chs@NetBSD.org> |
split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
#
239987f3 |
| 19-Jul-2011 |
dyoung <dyoung@NetBSD.org> |
Change <machine/bus.h> to <sys/bus.h> throughout.
|
#
71def5d3 |
| 21-Jul-2010 |
jklos <jklos@NetBSD.org> |
Fix the port order so that port ttyC0 refers to port 1 on the IOBlix, ttyC1 to port 2, ttyC2 to port 3, and ttyC3 to port 4.
|
#
c0c4b308 |
| 20-Jul-2010 |
jklos <jklos@NetBSD.org> |
Properly initialize the IOBlix card's lpt port on boot. From Frank Wille and Michael L. Hitch.
|
#
c2dfc316 |
| 02-Feb-2010 |
phx <phx@NetBSD.org> |
Fix compilation warnings and errors with amigappc.
|
#
ce099b40 |
| 28-Apr-2008 |
martin <martin@NetBSD.org> |
Remove clause 3 and 4 from TNF licenses
|
#
95e1ffb1 |
| 11-Dec-2005 |
christos <christos@NetBSD.org> |
merge ktrace-lwp.
|
#
803a5ae1 |
| 13-Jun-2005 |
jmc <jmc@NetBSD.org> |
Fix a ton of const/volatile issues shown with new warning flags
|
#
7e681f70 |
| 06-Jan-2003 |
wiz <wiz@NetBSD.org> |
interrupt with two rs.
|
#
5001cdaf |
| 01-Jan-2003 |
thorpej <thorpej@NetBSD.org> |
Use aprint_normal() for cfprint routines.
|
#
c5e91d44 |
| 02-Oct-2002 |
thorpej <thorpej@NetBSD.org> |
Use CFATTACH_DECL().
|
#
9a711d69 |
| 27-Sep-2002 |
thorpej <thorpej@NetBSD.org> |
Declare all cfattach structures const.
|
#
77a6b82b |
| 06-Sep-2002 |
gehenna <gehenna@NetBSD.org> |
Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to dynamically generated by config(8).
- All device switches is defined as a constant st
Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch> by using this grammer.
- Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables.
- The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
show more ...
|
#
1ea4df81 |
| 28-Jan-2002 |
aymeric <aymeric@NetBSD.org> |
add __KERNEL_RCSID as suggested by Luke Mewburn
|
#
637649fa |
| 27-Jan-2002 |
is <is@NetBSD.org> |
Register a shutdown handler that switches off interupts.
|
#
9382c873 |
| 26-Jan-2002 |
aymeric <aymeric@NetBSD.org> |
- ANSIfy - remove some trailing spaces/tabs - minor style nits
|
#
782a7670 |
| 10-Mar-2001 |
is <is@NetBSD.org> |
- The ioblix zbus board comes in 24 MHz and 22.1184 MHz clock variants. We default to the (newer, more sane) 22.1184 MHz value, but set it from the iobzclock variable (in Hz), which is initialized fr
- The ioblix zbus board comes in 24 MHz and 22.1184 MHz clock variants. We default to the (newer, more sane) 22.1184 MHz value, but set it from the iobzclock variable (in Hz), which is initialized from the IOBZCLOCK configuration option and patchable. XXX we should time the clock at system startup. - add ioblix_zbus to the GENERIC configuration.
show more ...
|
#
6288edb5 |
| 08-Mar-2001 |
is <is@NetBSD.org> |
Add rcsid.
|
#
128258c1 |
| 23-Mar-2000 |
is <is@NetBSD.org> |
Initial IOBlix support. Only lpt and com; lpt untested; com assumes 24 MHz clock (needs autoprobe of clock speed).
|