History log of /src/sys/arch/macppc/dev/akbd.c |
Revision | | Date | Author | Comments |
1.49 |
| 13-Jan-2025 |
riastradh | macppc/aed, akbd: Nix trailing whitespace.
No functional change intended.
|
1.48 |
| 12-Jan-2025 |
nat | Catch up macppc to the same as mac68k.
Unfortunately these files could not be tested fully as aed/akbd/ams and adb_direct have suffered from bit rot and there corresponding attachments are commented out in all macppc kernels.
|
1.47 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.46 |
| 24-Apr-2021 |
thorpej | branches: 1.46.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.45 |
| 27-Oct-2012 |
chs | branches: 1.45.52; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.44 |
| 18-Jun-2011 |
matt | branches: 1.44.2; 1.44.12; 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.43 |
| 18-Mar-2009 |
cegger | branches: 1.43.10; Ansify function definitions w/o arguments. Generated with sed.
|
1.42 |
| 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.41 |
| 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.40 |
| 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.39 |
| 13-Jun-2008 |
cegger | branches: 1.39.4; 1.39.10; use device_lookup_private to get softc
|
1.38 |
| 17-Oct-2007 |
garbled | branches: 1.38.16; 1.38.18; 1.38.20; 1.38.22; 1.38.24; 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.37 |
| 08-Aug-2007 |
macallan | branches: 1.37.2; use the ADB keymap in dev/adb/
|
1.36 |
| 05-Mar-2007 |
tsutsui | branches: 1.36.2; 1.36.10; 1.36.14; 1.36.18; - use (uint8_t *) for buffer args on *_adbcomplete() functions - remove kbd_adbcomplete() decl from akbd.c since it's in akbdvar.h
|
1.35 |
| 04-Mar-2007 |
christos | Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.34 |
| 11-Dec-2005 |
christos | branches: 1.34.26; merge ktrace-lwp.
|
1.33 |
| 05-Jun-2005 |
nathanw | branches: 1.33.2; Pass NULL instead of (Ptr)0 to maintain function-pointer safety.
|
1.32 |
| 01-Feb-2005 |
briggs | 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.31 |
| 24-Jul-2003 |
nathanw | branches: 1.31.8; 1.31.10; Make kbd_passup() an exposed function.
|
1.30 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.29 |
| 02-Oct-2002 |
thorpej | branches: 1.29.6; Use CFATTACH_DECL().
|
1.28 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.27 |
| 14-Aug-2002 |
aymeric | Remove the key repeating feature. It is asking for trouble and is useless for the X server. We can add it back later if need be.
|
1.26 |
| 13-Aug-2002 |
aymeric | akbd's now have a raw mode, and implement the WSKBDIO_SETMODE ioctl. Adapted from OpenBSD.
|
1.25 |
| 14-Jun-2002 |
itojun | whitespace
|
1.24 |
| 14-Jun-2002 |
itojun | #define CAPS_IS_CONTROL will make caps key a control key (with weird LCD indicator). From: "Nathan J. Williams" <nathanw@wasabisystems.com> (#define name taken from arch/i386/isa/pccons.c)
|
1.23 |
| 17-Mar-2002 |
atatat | branches: 1.23.4; 1.23.6; Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for indicating an unhandled "command". ERESTART is -1, which can lead to confusion. ERESTART has been moved to -3 and EPASSTHROUGH has been placed at -4. No ioctl code should now return -1 anywhere. The ioctl() system call is now properly restartable.
|
1.22 |
| 12-Mar-2002 |
wrstuden | Only attach the first adb keyboard as the console kbd. Don't try for the others. It is perfectly reasonable to have multiple adb keyboards, and a number of multi-button mice have a fake kbd for the second and third mouse buttons. Now my machine doesn't panic during boot when it is trying to add a second ws console kbd.
|
1.21 |
| 24-Feb-2002 |
dbj | solve polled adb keyboard problems with dropped keys and unsynced caps lock by queueing polled keys.
|
1.20 |
| 23-Feb-2002 |
dbj | turn on polling using cnpollc
|
1.19 |
| 02-Jan-2002 |
dbj | defer attaching akbd as console until after it has been initialized in akbdattach
|
1.18 |
| 02-Oct-2001 |
mycroft | branches: 1.18.4; Use WSKBD_TYPE_ADB.
|
1.17 |
| 26-Jul-2001 |
tsubai | branches: 1.17.2; Change description of handler-ID == 195.
|
1.16 |
| 17-Jul-2001 |
tsubai | Eject PCMCIA card on ohare based models only.
|
1.15 |
| 12-Jul-2001 |
nathanw | Add the keyboard ID found on the American versions of the PowerBook G4 and iBook (dual USB).
|
1.14 |
| 08-Jun-2001 |
matt | branches: 1.14.2; 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.13 |
| 25-Jan-2001 |
tsubai | branches: 1.13.2; Generate key press event and key release event when capslock is pressed. Now capslock key works correctly on X11.
|
1.12 |
| 19-Dec-2000 |
tsubai | Remove unnecessary casts.
|
1.11 |
| 19-Dec-2000 |
tsubai | Sync with mac68k.
|
1.10 |
| 01-Sep-2000 |
tsubai | Add fr key layout. (From Manuel Bouyer, modified by me)
|
1.9 |
| 05-Sep-1999 |
tsubai | branches: 1.9.2; Recognize PCMCIA eject button. (Tested on only PowerBook 2400.)
|
1.8 |
| 16-Jun-1999 |
tsubai | Define PowerBook G3 Japanese keyboard.
|
1.7 |
| 06-May-1999 |
thorpej | Take all of the OpenFirmware "stdin" grovelling out of the ADB keyboard driver, as the smarts for this all live somewhere else now.
|
1.6 |
| 17-Feb-1999 |
tsubai | branches: 1.6.2; Sync with mac68k.
|
1.5 |
| 10-Jan-1999 |
tsubai | Add sanity checks in akbd_cnattach().
|
1.4 |
| 20-Oct-1998 |
tsubai | Add via-pmu support (only PowerBook 2400c/180 is tested).
|
1.3 |
| 18-Oct-1998 |
tsubai | Make compilable without aed.
|
1.2 |
| 14-Oct-1998 |
tsubai | akbd: wskbd support. ofb: OpenFirmware generic framebuffer.
|
1.1 |
| 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.6.2.1 |
| 06-May-1999 |
perry | branches: 1.6.2.1.2; pullup 1.6->1.7 (thorpej)
|
1.6.2.1.2.1 |
| 21-Jun-1999 |
thorpej | Sync w/ -current.
|
1.9.2.3 |
| 11-Feb-2001 |
bouyer | Sync with HEAD.
|
1.9.2.2 |
| 05-Jan-2001 |
bouyer | Sync with HEAD
|
1.9.2.1 |
| 20-Nov-2000 |
bouyer | Update thorpej_scsipi to -current as of a month ago A i386 GENERIC kernel compiles without the siop, ahc and bha drivers (will be updated later). i386 IDE/ATAPI and ncr work, as well as sparc/esp_sbus. alpha should work as well (untested yet). siop, ahc and bha will be updated once I've updated the branch to current -current, as well as machine-dependant code.
|
1.13.2.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.14.2.6 |
| 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.14.2.5 |
| 06-Sep-2002 |
jdolecek | sync kqueue branch with HEAD
|
1.14.2.4 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.14.2.3 |
| 16-Mar-2002 |
jdolecek | Catch up with -current.
|
1.14.2.2 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.14.2.1 |
| 03-Aug-2001 |
lukem | update to -current
|
1.17.2.1 |
| 11-Oct-2001 |
fvdl | Catch up with -current. Fix some bogons in the sparc64 kbd/ms attach code. cd18xx conversion provided by mrg.
|
1.18.4.7 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.18.4.6 |
| 27-Aug-2002 |
nathanw | Catch up to -current.
|
1.18.4.5 |
| 20-Jun-2002 |
nathanw | Catch up to -current.
|
1.18.4.4 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.18.4.3 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.18.4.2 |
| 11-Jan-2002 |
nathanw | More catchup.
|
1.18.4.1 |
| 02-Oct-2001 |
nathanw | file akbd.c was added on branch nathanw_sa on 2002-01-11 23:38:35 +0000
|
1.23.6.1 |
| 19-Jun-2003 |
grant | Pull up revisions 1.26-1.27 (requested by aymeric in ticket #1324):
akbd's now have a raw mode, and implement the WSKBDIO_SETMODE ioctl. Adapted from OpenBSD.
Remove the key repeating feature. It is asking for trouble and is useless for the X server. We can add it back later if need be.
|
1.23.4.2 |
| 31-Aug-2002 |
gehenna | catch up with -current.
|
1.23.4.1 |
| 14-Jul-2002 |
gehenna | catch up with -current.
|
1.29.6.6 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.29.6.5 |
| 04-Feb-2005 |
skrll | Sync with HEAD.
|
1.29.6.4 |
| 13-Jan-2005 |
skrll | Adapt to branch
|
1.29.6.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.29.6.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.29.6.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.31.10.1 |
| 12-Feb-2005 |
yamt | sync with head.
|
1.31.8.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.33.2.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.33.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.34.26.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.36.18.1 |
| 09-Aug-2007 |
jmcneill | Sync with HEAD.
|
1.36.14.1 |
| 15-Aug-2007 |
skrll | Sync with HEAD.
|
1.36.10.1 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.36.2.1 |
| 20-Aug-2007 |
ad | Sync with HEAD.
|
1.37.2.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.38.24.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.38.22.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.38.20.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.38.18.1 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.38.16.1 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.39.10.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.39.4.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.43.10.1 |
| 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
1.44.12.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.44.2.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.45.52.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.46.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|