#
58784512 |
| 28-Dec-2022 |
macallan <macallan@NetBSD.org> |
one more skiplist entry...
|
#
304f33c0 |
| 28-Dec-2022 |
macallan <macallan@NetBSD.org> |
suppress 'not configured' message for mpic on G5s
|
#
09eb5c43 |
| 22-Jan-2022 |
thorpej <thorpej@NetBSD.org> |
Change the devhandle_from_*() functions to also take a "super handle", from which the newly created handle will inherit it's implementation. The root implementation for a new handle type is used if a
Change the devhandle_from_*() functions to also take a "super handle", from which the newly created handle will inherit it's implementation. The root implementation for a new handle type is used if an invalid "super handle" is passed.
show more ...
|
#
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 ...
|
#
bab8cb27 |
| 26-Jan-2021 |
thorpej <thorpej@NetBSD.org> |
There is not much point in of_compatible() returning -1 for "no match" and >= 0 for "match". Just make it return 0 for "no match" and >0 for "match" so it can be treated like a boolean expression.
There is not much point in of_compatible() returning -1 for "no match" and >= 0 for "match". Just make it return 0 for "no match" and >0 for "match" so it can be treated like a boolean expression.
As such of_match_compatible() (a wrapper around of_compatible()) is now obsolete, and will be removed once all call sites are converted to an appropriate replacement.
show more ...
|
#
f207db76 |
| 25-Oct-2020 |
nia <nia@NetBSD.org> |
Normalize some machine dependent CPU frequenct sysctl variables.
This moves machdep.*.frequency.* to machdep.cpu.frequency.*.
This was proposed on tech-kern some time ago. The intention is to allow
Normalize some machine dependent CPU frequenct sysctl variables.
This moves machdep.*.frequency.* to machdep.cpu.frequency.*.
This was proposed on tech-kern some time ago. The intention is to allow third-party tools such as estd and conky to more easily and reliably fetch or modify the current CPU frequency without iterating through various machine-dependent variables to check their presence.
show more ...
|
#
56b9bd49 |
| 08-Jun-2018 |
macallan <macallan@NetBSD.org> |
fix low CPU speed reporting when using DFS
|
#
5fa6380f |
| 04-May-2018 |
macallan <macallan@NetBSD.org> |
map 64KB register space on G5, provide function to bus_space_subregion() from this area so we don't run into mapping conflicts on G5 Not really relevant on 32bit where we BAT-map everything
|
#
3812c88d |
| 29-Mar-2018 |
macallan <macallan@NetBSD.org> |
don't map more PCI space than needed, avoid overlap with snapper so this has a chance of working on G5
|
#
b59721f1 |
| 04-Mar-2018 |
mrg <mrg@NetBSD.org> |
avoid indentation issues. re-do previous in obio.c to avoid the does-nothing change, by fixing the intended indentation.
|
#
42d6703e |
| 04-Mar-2018 |
christos <christos@NetBSD.org> |
add braces.
|
#
786dc27a |
| 11-Nov-2014 |
macallan <macallan@NetBSD.org> |
appease gcc 4.8
|
#
35ce645c |
| 25-Apr-2013 |
macallan <macallan@NetBSD.org> |
map more register space on Shasta/K2, needed for SMU mailbox registers
|
#
de22e278 |
| 17-Apr-2013 |
macallan <macallan@NetBSD.org> |
support Shasta from Phileas Fogg
|
#
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.
|
#
7c283e77 |
| 02-Jun-2012 |
dsl <dsl@NetBSD.org> |
Add some pre-processor magic to verify that the type of the data item passed to sysctl_createv() actually matches the declared type for the item itself. In the places where the caller specifies a
Add some pre-processor magic to verify that the type of the data item passed to sysctl_createv() actually matches the declared type for the item itself. In the places where the caller specifies a function and a structure address (typically the 'softc') an explicit (void *) cast is now needed. Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting AcpiGbl_EnableAmlDebugObject. (mostly passing the address of a uint64_t when typed as CTLTYPE_INT). I've test built quite a few kernels, but there may be some unfixed MD fallout. Most likely passing &char[] to char *. Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.
show more ...
|
#
8bd7be1f |
| 19-Oct-2011 |
macallan <macallan@NetBSD.org> |
add cpufreq support
|
#
b815b80b |
| 01-Aug-2011 |
macallan <macallan@NetBSD.org> |
sanitize sysctl interface in order to appease gcc 4.5
|
#
05266210 |
| 26-Jul-2011 |
macallan <macallan@NetBSD.org> |
finish device_t-ification
|
#
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
|
#
ff624c58 |
| 16-Mar-2011 |
macallan <macallan@NetBSD.org> |
change the CPU speed sysctl to look more like the ACPI ones, as in machdep.<name>.frequency.available etc. so estd can work with minimal changes
|
#
f11961b1 |
| 05-Dec-2010 |
phx <phx@NetBSD.org> |
The gpio children have either register offsets based on gpio or on obio. Implemented a workaround to deal with this uncertainty. This fixes the machdep.cpu_speed control for 7447A-based iBookG4s.
|
#
0295fcde |
| 20-Oct-2010 |
phx <phx@NetBSD.org> |
Support sysctl machdep.cpu_speed for 7447A and 7448 based Macs. On those machines the CPU's DFS (Dynamic Frequency Switching) feature is used instead of a GPIO to control the speed. Two new functions
Support sysctl machdep.cpu_speed for 7447A and 7448 based Macs. On those machines the CPU's DFS (Dynamic Frequency Switching) feature is used instead of a GPIO to control the speed. Two new functions in powerpc/oea/cpu_subr.c were introduced to support reading and writing of DFS: cpu_get_dfs() and cpu_set_dfs(). Also works for multiple CPUs, but not before interrupts are enabled.
show more ...
|
#
454af1c0 |
| 14-Mar-2009 |
dsl <dsl@NetBSD.org> |
Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle
Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
show more ...
|