Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/macppc/dev/adb_direct.c
RevisionDateAuthorComments
 1.47  07-Sep-2025  andvar Fix various typos, mainly in comments.
 1.46  05-Mar-2024  andvar Remove duplicate "when" word in comments.
 1.45  21-Sep-2023  msaitoh s/ for for / for / in comment.
 1.44  18-Oct-2014  snj src is too big these days to tolerate superfluous apostrophes. It's
"its", people!
 1.43  01-Feb-2012  matt branches: 1.43.6;
Use C89 function prototypes.
 1.42  18-Mar-2009  cegger branches: 1.42.12; 1.42.16;
Ansify function definitions w/o arguments. Generated with sed.
 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  17-Oct-2007  garbled branches: 1.39.20; 1.39.28; 1.39.34;
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.38  09-Jul-2007  ad branches: 1.38.8; 1.38.10; 1.38.12; 1.38.14;
Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
 1.37  04-Mar-2007  christos branches: 1.37.2; 1.37.4; 1.37.10;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.36  24-Jan-2007  hubertf branches: 1.36.2;
Remove duplicate #includes, patch contributed in private mail
by Slava Semushin <slava.semushin@gmail.com>.

To verify that no nasty side effects of duplicate includes (or their
removal) have an effect here, I've compiled an i386/ALL kernel with
and without the patch, and the only difference in the resulting .o
files was in shifted line numbers in some assert() calls.
The comparison of the .o files was based on the output of "objdump -D".

Thanks to martin@ for the input on testing.
 1.35  24-Nov-2006  wiz s/independant/independent/, from Zafer.
 1.34  07-Jun-2006  kardel branches: 1.34.6; 1.34.8;
avoid shadowing time while it still exists
 1.33  11-Dec-2005  christos branches: 1.33.4; 1.33.6; 1.33.8; 1.33.14;
merge ktrace-lwp.
 1.32  05-Jun-2005  nathanw branches: 1.32.2;
Rearrange some of the ADB types and void * abuse to make -Wcast-qual
happy in the presence of the "volatile int flag" construct. Fix up a variety
of calls to pass NULL instead of (Ptr)0 to maintain function-pointer safety.
 1.31  05-Jun-2005  nathanw Nuke the II and IIsi code from this file; it's never used on a
macppc. Remove variables and macros no longer used as a result.

This driver *still* needs an enema.
 1.30  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.29  01-Feb-2005  briggs Clear all interrupts set by cuda. From Michael Lorenz.
 1.28  01-Feb-2005  briggs ADB_HW_PB is really ADB_HW_PMU.
 1.27  27-Oct-2003  dyoung branches: 1.27.8; 1.27.10;
Stop false uninitialized variable warning.
 1.26  26-Oct-2003  mycroft Remove optimization hack.
 1.25  15-Jul-2003  lukem __KERNEL_RCSID()
 1.24  05-May-2002  tsutsui branches: 1.24.10;
Add a null asm statement in adb_read_date_time()
to avoid wrong reordering by gcc-2.95.3 with -fgcse.

XXX Should we disable -fgcse everywhere?
 1.23  05-May-2002  tsutsui Backout previous. It is not timing problem, but gcc optimization bug.
 1.22  29-Apr-2002  tsutsui Add a delay() in adb_read_date_time() so that my Apus2000 can get
correct date in inittodr().
 1.21  23-Feb-2002  dbj In adb_soft_intr, remove the packet from the queue before calling the
completion routine so that the completion routine can reentrantly
process the queue. This happens, for example. when polling is turned
on by entering the debugger by keystroke.
 1.20  02-Jan-2002  dbj add some error checks in adb_reinit, enabled with ADB_DEBUG and adb_debug
 1.19  03-Aug-2001  tsubai branches: 1.19.6;
Remove (#if 0'ed) m68k asm codes.
 1.18  19-Jun-2001  simonb branches: 1.18.2;
Add/change prototypes so that macpcc builds with -Wstrict-prototypes.
 1.17  08-Jun-2001  matt 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.16  01-Apr-2001  tsubai Adjust timing for pmu99. Internal keyboard of recent PowerBooks
should work now.
 1.15  19-Dec-2000  tsubai branches: 1.15.2;
Sync with mac68k.
 1.14  08-Jun-2000  tsubai branches: 1.14.2;
Sync with mac68k.
 1.13  23-Mar-2000  thorpej branches: 1.13.2;
New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
resource allocation.
- Insertion and removal of callouts is constant time, important as
this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.
 1.12  27-Jan-2000  tsubai Make this work on the G4 too.
 1.11  11-Jul-1999  tsubai branches: 1.11.2;
Enable soft poweroff on PowerBook.
 1.10  22-Jun-1999  tsubai Use RTC on PB.
 1.9  12-Jan-1999  tsubai branches: 1.9.4;
Always use polling when poweroff/restart.
 1.8  24-Nov-1998  tsubai Add more delay in adb_reinit().
 1.7  15-Nov-1998  tsubai RTC support for pmu (read only).
 1.6  05-Nov-1998  tsubai Sync to mac68k.
 1.5  04-Nov-1998  tsubai Move conversion of PRAM-time to UNIX-time to clock.c (like mac68k).
 1.4  20-Oct-1998  tsubai Add via-pmu support (only PowerBook 2400c/180 is tested).
 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  26-Jun-1998  tsubai Powerdown support.
 1.1  15-May-1998  tsubai Initial import of macppc port.
 1.9.4.2  02-Aug-1999  thorpej Update from trunk.
 1.9.4.1  01-Jul-1999  thorpej Sync w/ -current.
 1.11.2.3  21-Apr-2001  bouyer Sync with HEAD
 1.11.2.2  05-Jan-2001  bouyer Sync with HEAD
 1.11.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  22-Jun-2000  minoura Sync w/ netbsd-1-5-base.
 1.14.2.1  01-Apr-2001  he Pull up revision 1.16 (requested by tsubai):
Fix Keyboard problem of recent PowerBooks (Pismo, PowerBook G4,
etc.).
 1.15.2.2  21-Jun-2001  nathanw Catch up to -current.
 1.15.2.1  09-Apr-2001  nathanw Catch up with -current.
 1.18.2.4  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.18.2.3  16-Mar-2002  jdolecek Catch up with -current.
 1.18.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.18.2.1  25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.19.6.4  20-Jun-2002  nathanw Catch up to -current.
 1.19.6.3  28-Feb-2002  nathanw Catch up to -current.
 1.19.6.2  11-Jan-2002  nathanw More catchup.
 1.19.6.1  03-Aug-2001  nathanw file adb_direct.c was added on branch nathanw_sa on 2002-01-11 23:38:34 +0000
 1.24.10.5  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.24.10.4  04-Feb-2005  skrll Sync with HEAD.
 1.24.10.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.24.10.2  18-Sep-2004  skrll Sync with HEAD.
 1.24.10.1  03-Aug-2004  skrll Sync with HEAD
 1.27.10.1  12-Feb-2005  yamt sync with head.
 1.27.8.1  29-Apr-2005  kent sync with -current
 1.32.2.5  27-Oct-2007  yamt sync with head.
 1.32.2.4  03-Sep-2007  yamt sync with head.
 1.32.2.3  26-Feb-2007  yamt sync with head.
 1.32.2.2  30-Dec-2006  yamt sync with head.
 1.32.2.1  21-Jun-2006  yamt sync with head.
 1.33.14.1  19-Jun-2006  chap Sync with head.
 1.33.8.1  26-Jun-2006  yamt sync with head.
 1.33.6.1  22-Apr-2006  simonb Fix some shadowed variable warnings.
 1.33.4.1  09-Sep-2006  rpaulo sync with head
 1.34.8.1  10-Dec-2006  yamt sync with head.
 1.34.6.2  01-Feb-2007  ad Sync with head.
 1.34.6.1  12-Jan-2007  ad Sync with head.
 1.36.2.1  12-Mar-2007  rmind Sync with HEAD.
 1.37.10.3  03-Oct-2007  garbled Sync with HEAD
 1.37.10.2  02-Aug-2007  macallan sync with HEAD
 1.37.10.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.37.4.1  11-Jul-2007  mjf Sync with head.
 1.37.2.2  23-Oct-2007  ad Sync with head.
 1.37.2.1  15-Jul-2007  ad Sync with head.
 1.38.14.1  25-Oct-2007  bouyer Sync with HEAD.
 1.38.12.1  18-Oct-2007  yamt sync with head.
 1.38.10.1  06-Nov-2007  matt sync with HEAD
 1.38.8.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.39.34.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.39.28.1  28-Apr-2009  skrll Sync with HEAD.
 1.39.20.1  04-May-2009  yamt sync with head.
 1.42.16.1  18-Feb-2012  mrg merge to -current.
 1.42.12.1  17-Apr-2012  yamt sync with head
 1.43.6.1  03-Dec-2017  jdolecek update from HEAD

RSS XML Feed