Commit Graph

1442 Commits

Author SHA1 Message Date
tsutsui
6dd319dcc5 Use (char *) cast on pointer arith. 2007-03-05 10:50:24 +00:00
tsutsui
4082de62d1 Use (uint8_t *) for RX buffer. 2007-03-05 10:50:01 +00:00
tsutsui
2036f3e3a3 - use (uint8_t *) for buffer args on *_adbcomplete() functions
- remove kbd_adbcomplete() decl from akbd.c since it's in akbdvar.h
2007-03-05 10:47:05 +00:00
macallan
287d873bc3 make this compile again 2007-03-04 10:06:49 +00:00
macallan
ba442162aa make this compile again 2007-03-04 10:02:23 +00:00
christos
53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
thorpej
09c5f9cc49 TRUE -> true, FALSE -> false 2007-02-28 04:21:51 +00:00
mrg
4410329b87 add a pair of new bus_dma(9) functions:
int _bus_dmatag_subregion(bus_dma_tag_t tag,
				  bus_addr_t min_addr,
				  bus_addr_t max_addr,
				  bus_dma_tag_t *newtag,
				  int flags)
	void _bus_dmatag_destroy(bus_dma_tag_t tag)

that allow a (normally broken/limited) device to restrict the bus address
range it can talk to.  this is used by bce(4) to limit DMA addresses to
1GB range, the maximum the chip can address.

all this is from Yorick Hardy <yhardy@uj.ac.za> with input from several
people on tech-kern.

XXX: bus_dma(9) needs an update still.
2007-02-21 20:41:23 +00:00
ad
3363855a4a Remove spllowersoftclock() and CLKF_BASEPRI(), and always dispatch callouts
via a soft interrupt. In the near future, softclock will be run from process
context.
2007-02-16 02:53:43 +00:00
macallan
9d17b3cb4d gah, fix botched merge in previous commit 2007-02-15 02:17:30 +00:00
macallan
63b3b74e9f add battery at pmu 2007-02-15 02:06:48 +00:00
macallan
f41db58cbf not quite complete yet driver for batteries found in ohare-based PowerBooks
no APM emulation or sysmon integration yet but some stuff is exposed via
envsys
2007-02-15 01:48:40 +00:00
macallan
9c80d19d08 don't use IPL_HIGH 2007-02-15 01:45:40 +00:00
macallan
78dc3781e9 - don't use IPL_HIGH
- attach batteries when present
- some cleanup
2007-02-15 01:44:54 +00:00
macallan
ba96662cde add missing defflags from previous commits 2007-02-10 19:10:24 +00:00
ad
b07ec3fc38 Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
macallan
688135d6b1 - don't call load-ata on PB3400 and similar machines - it occasionally
freaks out when a cardbus device is present.
  enable with options PB3400_CARDBUS_HACK
- add a hack to make the DEC 21140 found on UMAX E100 cards work, for some
  reason OF doesn't see it
  enable with options UMAX_E100_HACK
2007-02-09 21:37:49 +00:00
macallan
5314457521 gah, stupid typos 2007-02-09 21:15:54 +00:00
macallan
a64454b914 pass OF node and if known instance handle as device properties. Needed later
for a generic OpenFirmware framebuffer driver
2007-02-09 21:13:30 +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
a64a26d4aa fix fallout from making OF_interpret compatible with the other OF platforms
noticed by Leon Zadorin
2007-02-05 04:02:01 +00:00
hubertf
142c2a33ba 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.
2007-01-24 13:08:11 +00:00
macallan
3ee719808f of_compatible() returns -1 not 0 when nothing matches. Doh. 2007-01-22 00:10:27 +00:00
macallan
130442d345 make OF_interpret actually deal with input arguments 2007-01-21 23:59:39 +00:00
he
ceeb812c89 Unify the declaration of OF_interpret() between sparc{,64} and macppc
by adding the "nargs" argument to the macppc version, and fix the macppc
ports uses of OF_interpret() accordingly.

Also move the declaration of OF_interpt() from macppc's autoconf.h to
ofw/openfirm.h.  This fixes the build of the macppc port.

Approved by macallan@.
2007-01-20 21:42:12 +00:00
macallan
6a0b5a67e6 add commented out definitions for new ADB subsystem and G3 audio 2007-01-18 00:58:55 +00:00
macallan
38b072ded2 make some tables static to avoid collisions 2007-01-18 00:43:00 +00:00
macallan
15a3f9b614 fix accidential commit, this time really only add the bus_space_tag 2007-01-18 00:19:30 +00:00
macallan
c11af36bf1 pass a bus_space_tag to children 2007-01-18 00:17:22 +00:00
macallan
834aa52ed6 shuffle #includes, add a bus_space_tag 2007-01-17 23:39:09 +00:00
macallan
4cc86139d1 add iBook keyboard type 2007-01-17 23:36:37 +00:00
macallan
0990226c00 use sgsmix if present and appropriate 2007-01-17 23:34:29 +00:00
macallan
8e8447a9f0 use pmu and cuda for reset, shutdown etc. when appropriate
also deal with adbkbd vs. akbd
2007-01-17 23:27:59 +00:00
macallan
a17b551fce new drivers for pmu and cuda 2007-01-17 23:25:45 +00:00
macallan
14e075c835 add pmu and cuda at obio 2007-01-17 23:23:08 +00:00
macallan
02a1d394fc finding the console node / instance handle moved into machdep.c 2007-01-17 23:08:08 +00:00
macallan
398d6bdd70 prefix a hexadecimal address with 0x 2007-01-17 23:05:49 +00:00
macallan
ee9492db19 use properties to pass additional data to the console device,
like static EDID, framebuffer parameters etc.
2007-01-17 23:00:31 +00:00
macallan
dddce0d0c3 set FORCE_FUNCTION_KEYS since pretty much all halfway recent *Books need it
also disable COMPAT_LINUX for now, will re-enable it when it's actually useful
2007-01-17 22:45:51 +00:00
macallan
7d1cc4454c for trackpads add a sysctl to control wether tapping causes button events 2007-01-14 23:59:06 +00:00
uwe
b7d531ed9e Add options OFB_FAKE_VGA_FB (commented out).
XXX: Where's ofb(4)?  (hi, macallan!)
2007-01-12 21:24:40 +00:00
uwe
369020109e options<space><tab> police 2007-01-12 19:34:33 +00:00
uwe
c2f6157b26 Replace long list of "audio* at foo?" attachments with single
audio* at audiobus?
2007-01-12 19:30:35 +00:00
uwe
0c62f0125f options<space><tab> police 2007-01-12 19:09:07 +00:00
macallan
4488d8197e if we encounter a cardbus bridge with bogus bus number try to get OF to
assign it a bus number so cardbus* will attach properly.
Should fix PR26508
2007-01-03 22:28:30 +00:00
yamt
3f0f3de613 update comments on NFS_V2_ONLY after nqnfs removal. no functional changes.
from Arnaud Lacombe.
2006-12-29 21:49:03 +00:00
yamt
8bf7662829 merge yamt-splraiseipl branch.
- finish implementing splraiseipl (and makeiplcookie).
	  http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
	- complete workqueue(9) and fix its ipl problem, which is reported
	  to cause audio skipping.
	- fix netbt (at least compilation problems) for some ports.
	- fix PR/33218.
2006-12-21 15:55:21 +00:00
macallan
b2bac7650b don't pretend to support 8kHz since the chip really doesn't
noticed by Marco Trillo
2006-12-17 21:26:04 +00:00
macallan
b6131134e7 make this compile without wsdisplay 2006-12-16 05:05:50 +00:00
macallan
af3a3c2797 (hopefully) fix a panic when ofb attaches without being console 2006-12-16 03:31:46 +00:00