#
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 ...
|
#
d4dfecea |
| 23-May-2016 |
chs <chs@NetBSD.org> |
remove unused variables.
|
#
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.
|
#
bd26c726 |
| 13-Mar-2012 |
elad <elad@NetBSD.org> |
Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with something meaningful. All relevant documentation has been updated or written.
Most of these changes were brought up in the follow
Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with something meaningful. All relevant documentation has been updated or written.
Most of these changes were brought up in the following messages:
http://mail-index.netbsd.org/tech-kern/2012/01/18/msg012490.html http://mail-index.netbsd.org/tech-kern/2012/01/19/msg012502.html http://mail-index.netbsd.org/tech-kern/2012/02/17/msg012728.html
Thanks to christos, manu, njoly, and jmmv for input.
Huge thanks to pgoyette for spinning these changes through some build cycles and ATF.
show more ...
|
#
8cf919c1 |
| 01-Jul-2011 |
dyoung <dyoung@NetBSD.org> |
#include <sys/bus.h> instead of <machine/bus.h>.
|
#
44a91a83 |
| 18-Jun-2011 |
matt <matt@NetBSD.org> |
struct device * -> device_t struct cfdata * -> cfdata_t use device accessors, use device_private. some softc/device_t splits (macppc needs a bunch more) aprint*_dev used considerably more
|
#
ccde4787 |
| 20-Dec-2010 |
matt <matt@NetBSD.org> |
Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch from uvmexp to per-cpu cpu_data and move them to 64bits. Remove unneeded includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.
|
#
105d9a09 |
| 06-May-2009 |
elad <elad@NetBSD.org> |
Replace curlwp->l_cred with kauth_cred_get().
Mailing list reference:
http://mail-index.netbsd.org/tech-kern/2009/05/05/msg005038.html
|
#
b0f4d9f9 |
| 26-Nov-2007 |
garbled <garbled@NetBSD.org> |
Apply a set of patches from Frank Wille to make the genfb attachment work better on ofppc. In doing so, we also move a few functions around in macppc and the generic ofw powerpc stuff to allow bette
Apply a set of patches from Frank Wille to make the genfb attachment work better on ofppc. In doing so, we also move a few functions around in macppc and the generic ofw powerpc stuff to allow better sharing of code. Also, introduce a model_init function.
move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons. This gets rid of some naming confusion, and makes it OFW-MI rather than macppc specific.
show more ...
|
#
d974db0a |
| 17-Oct-2007 |
garbled <garbled@NetBSD.org> |
Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the v
Merge the ppcoea-renovation branch to HEAD.
This branch was a major cleanup and rototill of many of the various OEA cpu based PPC ports that focused on sharing as much code as possible between the various ports to eliminate near-identical copies of files in every tree. Additionally there is a new PIC system that unifies the interface to interrupt code for all different OEA ppc arches. The work for this branch was done by a variety of people, too long to list here.
TODO: bebox still needs work to complete the transition to -renovation. ofppc still needs a bunch of work, which I will be looking at. ev64260 still needs to be renovated amigappc was not attempted.
NOTES: pmppc was removed as an arch, and moved to a evbppc target.
show more ...
|
#
0591adcd |
| 05-Aug-2007 |
macallan <macallan@NetBSD.org> |
fix another typo, now wsfb on ofb should work properly
|
#
fbbad8fb |
| 24-Jul-2007 |
macallan <macallan@NetBSD.org> |
add support for ioctl(WSDISPLAYIO_LINEBYTES) so XFree86/wsfb should work now. Doh.
|
#
744a92f0 |
| 21-Jul-2007 |
ad <ad@NetBSD.org> |
Don't depend on uvm_extern.h pulling in proc.h.
|
#
03d6f84d |
| 16-Jul-2007 |
macallan <macallan@NetBSD.org> |
fix a typo - if we pass no parameters to OF_interpret we better don't say we do...
|
#
451dceb6 |
| 25-Mar-2007 |
macallan <macallan@NetBSD.org> |
attach a drm
|
#
53524e44 |
| 04-Mar-2007 |
christos <christos@NetBSD.org> |
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
#
09c5f9cc |
| 28-Feb-2007 |
thorpej <thorpej@NetBSD.org> |
TRUE -> true, FALSE -> false
|
#
ceeb812c |
| 20-Jan-2007 |
he <he@NetBSD.org> |
Unify the declaration of OF_interpret() between sparc{,64} and macppc by adding the "nargs" argument to the macppc version, and fix the macppc ports uses of OF_interpret() accordingly.
Also move the
Unify the declaration of OF_interpret() between sparc{,64} and macppc by adding the "nargs" argument to the macppc version, and fix the macppc ports uses of OF_interpret() accordingly.
Also move the declaration of OF_interpt() from macppc's autoconf.h to ofw/openfirm.h. This fixes the build of the macppc port.
Approved by macallan@.
show more ...
|
#
af3a3c27 |
| 16-Dec-2006 |
macallan <macallan@NetBSD.org> |
(hopefully) fix a panic when ofb attaches without being console
|
#
4f70466a |
| 08-Nov-2006 |
macallan <macallan@NetBSD.org> |
split ofb into one part that attaches right on kernel startup and one that attaches to pci so we can build kernels with - say - machfb but without ofb at pci.
|
#
265929b2 |
| 05-Aug-2006 |
sanjayl <sanjayl@NetBSD.org> |
1st cut of Powermac G5 support (uses bridge mode).
|
#
f474dceb |
| 23-Jul-2006 |
ad <ad@NetBSD.org> |
Use the LWP cached credentials where sane.
|
#
8ccb6c93 |
| 14-May-2006 |
elad <elad@NetBSD.org> |
integrate kauth.
|
#
7a51d4dd |
| 12-Apr-2006 |
jmmv <jmmv@NetBSD.org> |
Add an extra cookie to the ioctl and mmap wsdisplay accessops that points to the screen on which they are being called. The driver cannot guess this by itself but it is needed to implement, at least
Add an extra cookie to the ioctl and mmap wsdisplay accessops that points to the screen on which they are being called. The driver cannot guess this by itself but it is needed to implement, at least, the getwschar and putwschar functions in the correct place. There are no functional changes yet.
Tested on i386 (vga, vga_raster, machfb, vesafb), macppc and sparc64. Suggested and reviewed by macallan@.
show more ...
|