Commit Graph

1461 Commits

Author SHA1 Message Date
jmcneill
f972216e48 Simplify sw volume control, attach to AOAK2 as well, make mono work as
well as stereo, and print a friendlier message when we don't find a
hardware mixer.
2007-04-04 02:14:57 +00:00
jmcneill
71195759ef In the AOAKeylargo case, there is no hardware volume control. Instead,
implement volume control in software via audio filter framework.

XXX: audio filter framework doesn't let me pass parameters from the hw
     softc to the filter, so the volume variables are globals for now.
2007-04-03 13:11:21 +00:00
jmcneill
c38a78ca65 Match AOAKeylargo, and don't make finding deq a requirement. Sound now
comes out of my last gen G4 Mac Mini, minus mixer controls. ok macallan@
2007-04-03 03:26:52 +00:00
macallan
d0ebad929a adapt to pmu changes 2007-04-03 03:15:17 +00:00
macallan
06802d0b24 cleanup a bit, fix some stupid pasto
thanks to jmcneill for finding the problem
2007-04-03 03:09:25 +00:00
dogcow
0c56428a1b fix build, after the moving around of the agp stuff 2007-03-26 16:56:09 +00:00
macallan
780a081043 on AGP capable bridges try to attach an agp device 2007-03-25 23:43:17 +00:00
macallan
b2fbecd2f8 fix typo 2007-03-25 23:38:22 +00:00
macallan
451dceb6ff attach a drm 2007-03-25 23:37:06 +00:00
macallan
fad2fa365e dummy agp_flush_cache() 2007-03-25 23:30:41 +00:00
macallan
4605d052e4 remove some accidentially committed stuff :/ 2007-03-25 23:29:16 +00:00
macallan
f842dbae9a attach smartbat* when appropriate 2007-03-25 23:26:26 +00:00
macallan
3fff052258 automatically switch between speaker and headphone output, simplify mixer
controls to match snapper
XXX - the gpios to monitor audio jacks are wired differently on different
Macs, this is known to work right on beige G3, PowerBook 3400 and Performa
63xx, it should do The Right Thing on others as well but needs more testing
2007-03-25 23:25:23 +00:00
macallan
a83aebf407 skeleton smart battery driver. Doesn't do much yet. 2007-03-25 23:22:46 +00:00
macallan
fd90105b35 add smartbat driver, defflag some debug stuff 2007-03-25 23:21:45 +00:00
jmcneill
6a9cc7b708 Handle the input change interrupt, and automatically switch between
headphone and speaker as appropriate.
2007-03-25 13:45:58 +00:00
drochner
ab07e481e4 It doesn't make sense to specify "configuration" and "interface"
locators for uhub because a hub can't have sub-devices.
This might be sanity-checked eventually.
Same for ubt now after the change to device attachment.
2007-03-14 12:27:20 +00:00
dillo
56c3e41252 Complete rename of hfsp to hfs, requested by thorpej. 2007-03-06 11:28:44 +00:00
dillo
23c2619e4d Add file-system HFSP (commented out) to GENERIC kernels of ports
on which Mac OS runs.
2007-03-05 23:30:18 +00:00
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