Commit Graph

21 Commits

Author SHA1 Message Date
chs
2f02870f3b zero the i2c_attach_args structure before filling it in.
fixes occasional crashes in iic_attach().
2016-02-14 19:54:19 +00:00
macallan
99d6352116 if we get garbage from the RTC try again a couple times
this seems to happen more frequently when the PRAM battery goes bad
2014-08-13 10:56:35 +00:00
mrg
f6e33f02a8 remove various set-but-unused variables. 2014-03-14 21:59:41 +00:00
joerg
55f32eafe3 Strip redundant parenthesis. 2013-07-30 15:31:49 +00:00
dyoung
b6584574fc #include <sys/bus.h> instead of <machine/bus.h>. 2011-07-01 18:41:51 +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
cegger
df7f595ecd Ansify function definitions w/o arguments. Generated with sed. 2009-03-18 10:22:21 +00:00
pgoyette
397929c01e Return error status if an attempt is made to use the quick_{read,write}
i2c protocols, since we don't (yet) know how to make the controller do it.
2009-02-04 16:11:12 +00:00
macallan
345fb25dfd fix format instead of casting wildly 2009-01-11 18:26:21 +00:00
christos
d2f56df7fb don't truncate the print. 2009-01-11 18:02:39 +00:00
macallan
d785e78bf2 deal with 64bit time_t
Noticed by Wojciech Galazka
2009-01-11 17:04:37 +00:00
tsutsui
6bebd690e9 Fix attach messages. (extra colons, misplaced newline etc.) 2008-12-07 08:24:26 +00:00
macallan
b6c6870c6d struct device * -> device_t 2008-05-16 02:41:50 +00:00
martin
3028e483e4 Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
ad
065b6ba2fb lockmgr -> mutex 2007-12-06 17:00:31 +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
f3154089bb - don't go CUDA_IDLE before calling message handlers, that way we force all
writes they might issue to be delayed which keeps us from deadlocking
- don't splhigh() in cuda_intr() - usually we're there already. Instead do
  the splhigh()/splx() dance when we're polling
- remove some leftover debugging gunk
2007-02-05 18:26:06 +00:00
macallan
a17b551fce new drivers for pmu and cuda 2007-01-17 23:25:45 +00:00