Commit Graph

34 Commits

Author SHA1 Message Date
chs
cbab9cadce split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
2012-10-27 17:17:22 +00:00
matt
2144269334 Use C89 function prototypes. 2012-02-01 02:02:07 +00:00
dyoung
b6584574fc #include <sys/bus.h> instead of <machine/bus.h>. 2011-07-01 18:41:51 +00:00
matt
4a40b01453 Modify mapiodev to take a third argument indicating whether the space
should be prefetchable (true) or not (false).
2011-06-30 00:52:55 +00:00
matt
05b09539a2 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
2011-06-18 08:08:27 +00:00
tsutsui
471e528b58 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()
2009-12-12 14:44:08 +00:00
snj
cf5c962817 Drop 3rd and 4th clauses. Approved by Brad Grantham (copyright holder). 2009-11-01 01:51:35 +00:00
dsl
82357f6d42 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.
2009-03-14 21:04:01 +00:00
dsl
454af1c0e8 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.)
2009-03-14 15:35:58 +00:00
dsl
02cdf4d2c8 Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
2009-03-14 14:45:51 +00:00
garbled
23a7584d7e Convert macppc to shared ofw_autoconf.c. Compile tested only. 2007-11-07 19:47:00 +00:00
garbled
d974db0ada 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.
2007-10-17 19:52:51 +00:00
macallan
9c80d19d08 don't use IPL_HIGH 2007-02-15 01:45:40 +00:00
macallan
610ea4a4c0 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
2006-12-10 19:28:12 +00:00
gdamore
490f9510c6 Convert macppc to generic todr. ok macallan@. 2006-09-13 03:37:20 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
briggs
969369e173 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.
2005-02-01 03:08:16 +00:00
briggs
da18d7cc5e 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.
2005-02-01 02:46:00 +00:00
briggs
805b9387ef ADB_HW_PB is really ADB_HW_PMU. 2005-02-01 02:05:10 +00:00
lukem
4b2744bf35 __KERNEL_RCSID() 2003-07-15 02:43:09 +00:00
thorpej
703e7687a9 Use aprint_normal() in cfprint routines. 2003-01-01 00:16:46 +00:00
thorpej
c5e91d447d Use CFATTACH_DECL(). 2002-10-02 04:55:47 +00:00
thorpej
f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
itojun
524e044ee5 apm emulation, from openbsd 2002-06-18 05:22:50 +00:00
itojun
b00d5fb87a extern decl for adbHardware 2002-06-18 04:33:36 +00:00
matt
d2f0c68d47 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>
2001-06-08 00:32:01 +00:00
tsubai
158796407f Adjust timing for pmu99. Internal keyboard of recent PowerBooks
should work now.
2001-04-01 10:40:45 +00:00
tsubai
0f4768af30 Sync with mac68k. 2000-12-19 02:50:11 +00:00
tsubai
775199a39f Make configurable without ams. 1999-08-16 06:28:09 +00:00
tsubai
6f402eb495 Add via-pmu support (only PowerBook 2400c/180 is tested). 1998-10-20 14:56:30 +00:00
tsubai
07e2c44982 Make compilable without aed. 1998-10-18 09:52:16 +00:00
tsubai
7756c05cc4 Split ADB driver to aed (ADB event device), akbd (ADB keyboard),
and ams (ADB mouse).  adb is a bus now.  (from Colin Wood)
1998-10-13 11:21:20 +00:00
tsubai
a8ce5c2403 Console support. 1998-07-02 18:58:32 +00:00
tsubai
2be6df07c6 Initial import of macppc port. 1998-05-15 10:15:45 +00:00