History log of /src/sys/arch/macppc/dev/adb.c |
Revision | | Date | Author | Comments |
1.37 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.36 |
| 24-Apr-2021 |
thorpej | branches: 1.36.8; 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?).
|
1.35 |
| 05-Mar-2021 |
rin | branches: 1.35.2; Convert to intr_establish_xname().
|
1.34 |
| 27-Oct-2012 |
chs | branches: 1.34.50; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.33 |
| 01-Feb-2012 |
matt | branches: 1.33.6; Use C89 function prototypes.
|
1.32 |
| 01-Jul-2011 |
dyoung | branches: 1.32.2; 1.32.6; #include <sys/bus.h> instead of <machine/bus.h>.
|
1.31 |
| 30-Jun-2011 |
matt | Modify mapiodev to take a third argument indicating whether the space should be prefetchable (true) or not (false).
|
1.30 |
| 18-Jun-2011 |
matt | 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
|
1.29 |
| 12-Dec-2009 |
tsutsui | branches: 1.29.10; Remove `volatile' qualifier from argument types of struct timeval passed to todr_gettime(9) and todr_settime(9). We no longer have an ancient and volatile struct timeval `time' global since we have switched to MI timercounter(9) on all port.
XXX1: some of these RTC drivers still assume 32bit time_t XXX2: some of these should be rewritten to use todr_[gs]ettime_ymdhms() XXX3: todr(9) man page doesn't mention todr_[gs]ettime_ymdhms()
|
1.28 |
| 01-Nov-2009 |
snj | Drop 3rd and 4th clauses. Approved by Brad Grantham (copyright holder).
|
1.27 |
| 14-Mar-2009 |
dsl | ANSIfy another 1261 function definitions. The only ones left in sys are beyond by sed script! (or in sys/dist or sys/external) Mostly they have function pointer parameters.
|
1.26 |
| 14-Mar-2009 |
dsl | 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.)
|
1.25 |
| 14-Mar-2009 |
dsl | Remove all the __P() from sys (excluding sys/dist) Diff checked with grep and MK1 eyeball. i386 and amd64 GENERIC and sys still build.
|
1.24 |
| 07-Nov-2007 |
garbled | branches: 1.24.18; 1.24.26; 1.24.32; Convert macppc to shared ofw_autoconf.c. Compile tested only.
|
1.23 |
| 17-Oct-2007 |
garbled | branches: 1.23.2; 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.
|
1.22 |
| 15-Feb-2007 |
macallan | branches: 1.22.6; 1.22.14; 1.22.22; 1.22.24; 1.22.26; 1.22.28; don't use IPL_HIGH
|
1.21 |
| 10-Dec-2006 |
macallan | don't issue ADB commands if there's no adb node. This should fix spontaneous poweroffs seen on PowerBooks that have no ADB (last generation PBG4 which have only USB) needs testing on more machines
|
1.20 |
| 13-Sep-2006 |
gdamore | branches: 1.20.2; Convert macppc to generic todr. ok macallan@.
|
1.19 |
| 11-Dec-2005 |
christos | branches: 1.19.8; 1.19.20; merge ktrace-lwp.
|
1.18 |
| 01-Feb-2005 |
briggs | branches: 1.18.6; Remove one level of interrupt redirection by switching on the ADB hardware type and registering a Cuda or PMU interrupt handler specifically instead of an intermediate interrupt handler.
|
1.17 |
| 01-Feb-2005 |
briggs | Add a PMU initialization call at ADB init time. This probes the machine type for PMU / battery information, then uses that when getting battery information for APM. Allows older PowerBooks (pre-smart batteries) to function with apm enabled in the kernel. Thanks to Linux code for battery information for these old batteries. Something is still odd, though, because a charging battery can show > 100% when it's near to full charge.
Enable more interrupts from PMU and handle PB3400 card eject buttons properly, too.
Also use #defines for commands instead of raw hex codes.
|
1.16 |
| 01-Feb-2005 |
briggs | ADB_HW_PB is really ADB_HW_PMU.
|
1.15 |
| 15-Jul-2003 |
lukem | branches: 1.15.8; 1.15.10; __KERNEL_RCSID()
|
1.14 |
| 01-Jan-2003 |
thorpej | branches: 1.14.2; Use aprint_normal() in cfprint routines.
|
1.13 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.12 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.11 |
| 18-Jun-2002 |
itojun | apm emulation, from openbsd
|
1.10 |
| 18-Jun-2002 |
itojun | extern decl for adbHardware
|
1.9 |
| 08-Jun-2001 |
matt | branches: 1.9.2; 1.9.8; 1.9.16; Make macppc compile by default with -Wall -Wmissing-prototype in addition to its currently enabled warnings. For the lack of a better place, most global function prototype wound up in <machine/autoconf.h> unless there was a better place for them. ofb_* structs renamed to offb_* to avoid conflict with ofb_softc in <dev/ofw/openfirm.h>
|
1.8 |
| 01-Apr-2001 |
tsubai | Adjust timing for pmu99. Internal keyboard of recent PowerBooks should work now.
|
1.7 |
| 19-Dec-2000 |
tsubai | branches: 1.7.2; Sync with mac68k.
|
1.6 |
| 16-Aug-1999 |
tsubai | branches: 1.6.2; 1.6.12; Make configurable without ams.
|
1.5 |
| 20-Oct-1998 |
tsubai | Add via-pmu support (only PowerBook 2400c/180 is tested).
|
1.4 |
| 18-Oct-1998 |
tsubai | Make compilable without aed.
|
1.3 |
| 13-Oct-1998 |
tsubai | Split ADB driver to aed (ADB event device), akbd (ADB keyboard), and ams (ADB mouse). adb is a bus now. (from Colin Wood)
|
1.2 |
| 02-Jul-1998 |
tsubai | Console support.
|
1.1 |
| 15-May-1998 |
tsubai | Initial import of macppc port.
|
1.6.12.1 |
| 01-Apr-2001 |
he | Pull up revision 1.8 (requested by tsubai): Fix Keyboard problem of recent PowerBooks (Pismo, PowerBook G4, etc.).
|
1.6.2.2 |
| 21-Apr-2001 |
bouyer | Sync with HEAD
|
1.6.2.1 |
| 05-Jan-2001 |
bouyer | Sync with HEAD
|
1.7.2.2 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.7.2.1 |
| 09-Apr-2001 |
nathanw | Catch up with -current.
|
1.9.16.1 |
| 16-Jul-2002 |
gehenna | catch up with -current.
|
1.9.8.4 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
|
1.9.8.3 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.9.8.2 |
| 20-Jun-2002 |
nathanw | Catch up to -current.
|
1.9.8.1 |
| 08-Jun-2001 |
nathanw | file adb.c was added on branch nathanw_sa on 2002-06-20 03:39:32 +0000
|
1.9.2.2 |
| 10-Oct-2002 |
jdolecek | sync kqueue with -current; this includes merge of gehenna-devsw branch, merge of i386 MP branch, and part of autoconf rototil work
|
1.9.2.1 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.14.2.4 |
| 04-Feb-2005 |
skrll | Sync with HEAD.
|
1.14.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.14.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.14.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.15.10.1 |
| 12-Feb-2005 |
yamt | sync with head.
|
1.15.8.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.18.6.4 |
| 15-Nov-2007 |
yamt | sync with head.
|
1.18.6.3 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.18.6.2 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.18.6.1 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.19.20.2 |
| 12-Jan-2007 |
ad | Sync with head.
|
1.19.20.1 |
| 18-Nov-2006 |
ad | Sync with head.
|
1.19.8.1 |
| 14-Sep-2006 |
yamt | sync with head.
|
1.20.2.1 |
| 18-Dec-2006 |
yamt | sync with head.
|
1.22.28.2 |
| 13-Nov-2007 |
bouyer | Sync with HEAD
|
1.22.28.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.22.26.1 |
| 18-Oct-2007 |
yamt | sync with head.
|
1.22.24.2 |
| 08-Nov-2007 |
matt | sync with -HEAD
|
1.22.24.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.22.22.2 |
| 11-Nov-2007 |
joerg | Sync with HEAD.
|
1.22.22.1 |
| 26-Oct-2007 |
joerg | Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup code to restore CR4 before jumping back into kernel space as the large page option might cover that.
|
1.22.14.1 |
| 07-Jun-2007 |
garbled | Convert macppc to powerpc bus_space. Lots of work here from Matt Thomas, as well as the common ofwoea code from myself. Compile tested only, still probably needs some fine tuning.
Also in this commit: Convert macppc to new shared ofwoea routines. Lots of KNF.
|
1.22.6.2 |
| 03-Dec-2007 |
ad | Sync with HEAD.
|
1.22.6.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.23.2.1 |
| 19-Nov-2007 |
mjf | Sync with HEAD.
|
1.24.32.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.24.26.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.24.18.2 |
| 11-Mar-2010 |
yamt | sync with head
|
1.24.18.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.29.10.1 |
| 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
1.32.6.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.32.2.2 |
| 30-Oct-2012 |
yamt | sync with head
|
1.32.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.33.6.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.34.50.1 |
| 03-Apr-2021 |
thorpej | Sync with HEAD.
|
1.35.2.1 |
| 21-Mar-2021 |
thorpej | Give config_found() the same variadic arguments treatment as config_search(). This commit only adds the CFARG_EOL sentinel to the existing config_found() calls. Conversion of config_found_sm_loc() and config_found_ia() call sites will be in subsequent commits.
|
1.36.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|