summaryrefslogtreecommitdiff
path: root/sys/arch/amiga/dev/hyper.c
AgeCommit message (Collapse)Author
2021-08-07Merge thorpej-cfargs2.thorpej
2021-04-24Merge thorpej-cfargs branch:thorpej
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?).
2012-10-27split device_t/softc for all remaining drivers.chs
replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
2011-07-19Change <machine/bus.h> to <sys/bus.h> throughout.dyoung
2010-02-02Fix compilation warnings and errors with amigappc.phx
2008-04-28Remove clause 3 and 4 from TNF licensesmartin
2005-12-11merge ktrace-lwp.christos
2005-06-13Fix a ton of const/volatile issues shown with new warning flagsjmc
2003-01-01Use aprint_normal() for cfprint routines.thorpej
2002-10-02Use CFATTACH_DECL().thorpej
2002-09-27Declare all cfattach structures const.thorpej
2002-09-06Merge the gehenna-devsw branch into the trunk.gehenna
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.
2002-01-28add __KERNEL_RCSID as suggested by Luke Mewburnaymeric
2002-01-26- ANSIfyaymeric
- remove some trailing spaces/tabs - minor style nits
1999-12-30Rewrite of the Amiga bus_space machinery to prepare for the support ofis
the generic IDE driver and the PCMCIA slots.
1999-05-10Add HyperCom 3+/4+ parallel port supportis
1999-02-16Fix Copyright datesis
1999-02-16Assign my files to The NetBSD Foundation, Inc.is
1999-01-10Make this compile again. 1.5 was committed from the wrong directory.is
We apologize for any inconvenience caused.
1998-12-26Make it table-driven. Besides making adding more devices easier, the resultingis
code is 14% smaller (alas, for this file only).
1998-12-14Support for Hypercom 3+ / 4+. Untested yet, but its only some additionalis
entries in a table.
1998-08-09Cosmetics: it's a "HyperCom 3Z" on a ZBUS, no "HyperCom 3".is
1998-01-12Adjust for changes to config.thorpej
1997-10-18Driver for the VMC HyperCom3/zbus and the VMC HyperCom4.is
lpt on HyperCom3 isn't supported yet.