#
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 ...
|
#
38bf12c8 |
| 21-Jul-2016 |
christos <christos@NetBSD.org> |
Don't include <mips/locore.h> in <machine/intr.h>, introduces circular dependencies; instead include it in the 4 driver files that need it, and reorder it in machdep.c
|
#
995d4be2 |
| 26-Jun-2010 |
tsutsui <tsutsui@NetBSD.org> |
Pull a similar fix from sparc/dev/zs.c rev 1.119: Establish interrupt handlers with proper softc per each zs device rather than sharing them among all zs devices and searching softc in handlers, t
Pull a similar fix from sparc/dev/zs.c rev 1.119: Establish interrupt handlers with proper softc per each zs device rather than sharing them among all zs devices and searching softc in handlers, to avoid possible recursive lock.
show more ...
|
#
ce099b40 |
| 28-Apr-2008 |
martin <martin@NetBSD.org> |
Remove clause 3 and 4 from TNF licenses
|
#
02cb47ca |
| 29-Mar-2008 |
tsutsui <tsutsui@NetBSD.org> |
Split softc and device_t for zsc(4) and its children.
XXX we should restructure MI APIs and make it really machine independent.
|
#
34db2867 |
| 26-Nov-2007 |
ad <ad@NetBSD.org> |
Use the softint API.
|
#
f2c57d85 |
| 09-Nov-2007 |
ad <ad@NetBSD.org> |
Call zs_lock_init() to set up the chanstate's lock.
|
#
2be6494f |
| 29-Mar-2006 |
thorpej <thorpej@NetBSD.org> |
Use device_cfdata().
|
#
39cd836e |
| 28-Mar-2006 |
thorpej <thorpej@NetBSD.org> |
Use device_unit().
|
#
95e1ffb1 |
| 11-Dec-2005 |
christos <christos@NetBSD.org> |
merge ktrace-lwp.
|
#
fd4afa03 |
| 06-Feb-2005 |
tsutsui <tsutsui@NetBSD.org> |
Misc cleanup: - ANSI function decls - remove __P() - u_intNN_t -> uintNN_t - remove register decls - bcopy -> memcpy, strcpy - bzero -> memset - bcmp -> memcmp - use malloc(9) with M_ZERO - some KNF
Misc cleanup: - ANSI function decls - remove __P() - u_intNN_t -> uintNN_t - remove register decls - bcopy -> memcpy, strcpy - bzero -> memset - bcmp -> memcmp - use malloc(9) with M_ZERO - some KNF etc.
show more ...
|
#
ed517291 |
| 15-Jul-2003 |
lukem <lukem@NetBSD.org> |
__KERNEL_RCSID()
|
#
c9058cdc |
| 25-May-2003 |
tsutsui <tsutsui@NetBSD.org> |
Add MI softintr(9) support with common mips/softintr.c.
|
#
764da5a4 |
| 10-May-2003 |
tsutsui <tsutsui@NetBSD.org> |
- Prepare common structures for interrupt handler and share them between Hyper-bus and AP-bus. - Use LIST rather than static array for interrupt dispatcher.
|
#
fb67a7f5 |
| 10-May-2003 |
tsutsui <tsutsui@NetBSD.org> |
Call zshard() twice in zshard_hb() interrupt handler for workaround otherwise news3400 sometimes losts zs interrupts.
This should fix "serial console hiccups on sysinst" problem reported by Mauricio
Call zshard() twice in zshard_hb() interrupt handler for workaround otherwise news3400 sometimes losts zs interrupts.
This should fix "serial console hiccups on sysinst" problem reported by Mauricio <raub at kudria.com> on port-newsmips.
show more ...
|
#
dac2b81d |
| 09-May-2003 |
tsutsui <tsutsui@NetBSD.org> |
Remove bogus comments.
|
#
f6962055 |
| 09-May-2003 |
tsutsui <tsutsui@NetBSD.org> |
- Define and use struct hb_attach_args rather than struct confargs for hb devices. - Move declarations for hb functions and macros to dev/hbvar.h. - Define and use hb_badaddr() macro for hb devices
- Define and use struct hb_attach_args rather than struct confargs for hb devices. - Move declarations for hb functions and macros to dev/hbvar.h. - Define and use hb_badaddr() macro for hb devices. - Declare news3400_badaddr() in machine/cpu.h rather than machine/autoconf.h. - Remove unused stuff from machine/autoconf.h.
show more ...
|
#
f08b4ccb |
| 26-Apr-2003 |
tsutsui <tsutsui@NetBSD.org> |
- Move some common declarations into z8530var.h. - Fix struct consdev properly. - Remove register declarations. - some more KNF.
|
#
397febeb |
| 11-Feb-2003 |
tsutsui <tsutsui@NetBSD.org> |
Backout previous. <sys/lock.h> is pulled from <sys/tty.h>.
|
#
ff776237 |
| 10-Feb-2003 |
tsutsui <tsutsui@NetBSD.org> |
MI z8530sc driver now requires <sys/lock.h>.
|
#
be1188e0 |
| 28-Jan-2003 |
pk <pk@NetBSD.org> |
Provide locking required by the interrupt handlers running at IPL_SERIAL.
|
#
d52d005f |
| 02-Oct-2002 |
thorpej <thorpej@NetBSD.org> |
Use CFATTACH_DECL().
|
#
f818766a |
| 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 ...
|