Commit Graph

1510 Commits

Author SHA1 Message Date
ad
4b293a84e1 Interrupt handling changes, in discussion since February:
- Reduce available SPL levels for hardware devices to none, vm, sched, high.
- Acquire kernel_lock only for interrupts at IPL_VM.
- Implement threaded soft interrupts.
2007-12-03 15:33:00 +00:00
garbled
b0f4d9f970 Apply a set of patches from Frank Wille to make the genfb attachment work
better on ofppc.  In doing so, we also move a few functions around in
macppc and the generic ofw powerpc stuff to allow better sharing of code.
Also, introduce a model_init function.

move ofb_cons.c from macppc/dev to powerpc/oea and rename it to rascons.
This gets rid of some naming confusion, and makes it OFW-MI rather than
macppc specific.
2007-11-26 19:58:29 +00:00
ad
dc26833bb6 - Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.
2007-11-19 18:51:36 +00:00
ad
417cd168ee Use the softint API. 2007-11-19 18:41:29 +00:00
macallan
376f378895 deal with macppc not defining OPENPIC 2007-11-17 18:02:42 +00:00
macallan
a11007a5fa have uninorth and bandit pull in their resp. IPI support stuff 2007-11-17 17:07:57 +00:00
macallan
40e17603bf sprinkle #ifdef OPENPIC so SMP-kernels without OpenPIC support build again. 2007-11-17 17:02:55 +00:00
xtraeme
31962fc6e5 Extend the envsys2 API (one more time, sorry) as defined in:
http://mail-index.netbsd.org/tech-kern/2007/11/09/0001.html

sysmon_envsys_create() and sysmon_envsys_destroy() were added to
create/destroy sysmon_envsys objects (and its TAILQ/LIST for sensors/events).

sysmon_envsys_sensor_attach() and sysmon_envsys_sensor_detach() were
added to attach/detach sensors to a specified sysmon_envsys device.

The events framework is now per device and configurable via the
ENVSYS_SETDICTIONARY ioctl or /etc/envsys.conf and envstat(8).

Update all users and documentation to reflect these changes.
2007-11-16 08:00:11 +00:00
ad
f2c57d8566 Call zs_lock_init() to set up the chanstate's lock. 2007-11-09 00:05:04 +00:00
garbled
23a7584d7e Convert macppc to shared ofw_autoconf.c. Compile tested only. 2007-11-07 19:47:00 +00:00
macallan
0daa60983f add r128fb at pci 2007-11-07 19:12:25 +00:00
ad
d37935697b Merge tty changes from the vmlocking branch. 2007-11-07 15:56:11 +00:00
macallan
1f070ed9c2 add a mixer control for the loopthrough channel that some awacs have - it
controls the volume of input data looped through to the output ( for
listening to what you record, it has no influence on recording level )
 - defaults to zero.
2007-11-04 18:00:55 +00:00
xtraeme
4ba09b41c3 Remove System V semaphores and share memory options to set the limits:
SEMMNI, SEMMNS, SEMUME and SHMMAXPGS.

They can be tweaked via sysctl now. Ports that were setting values on
them weren't touched, I only removed the ones that were commented out.
2007-11-04 14:34:19 +00:00
aymeric
71e8303856 include bluetooth conf file 2007-10-25 11:08:35 +00:00
macallan
f09600843e fix bus_spacification fallout
from KIYOHARA Takashi
2007-10-22 19:29:13 +00:00
macallan
a741bccaba cleanup, various fixes and TAS3001 / Tumbler support
from Marco Trillo in PR37076
2007-10-18 22:03:09 +00:00
joerg
d238692c3e Initialise the callbacks for tty.t_rstrt_ch in ttymalloc
as all drivers but Sun/SPARC's kd.c use the same arguments.
Separate callout_reset into callout_schedule and the initial
callout_setfunc using that.
2007-10-18 18:54:56 +00:00
macallan
71e5186330 - make match() return 100 for awacs and only 1 for i2s
- correct gpio wiring for PowerMac3,3 / Gigabit G4
2007-10-18 04:59:54 +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
ad
9f56dfa520 Merge brelse() changes from the vmlocking branch. 2007-10-08 18:02:53 +00:00
dogcow
0477b152f4 struct cfattach -> CFATTACH_DECL; compiles again. 2007-09-27 08:49:33 +00:00
aymeric
8b9fcfffdc add support for the "tumbler" as found at least on iBook G3/600.
quick OK macallan@
2007-09-17 13:15:20 +00:00
aymeric
ccf07f8137 add support for the "newer" trackpads found at least in the last generation
G4 powerbooks (powerbook5,8). Information found in the Linux driver.
2007-09-14 07:49:29 +00:00
macallan
d7a5c78c74 look for an ATY,RefCLK property and pass it to the console device if found.
For radeonfb so it doesn't have to guess the reference clock.
2007-09-02 18:45:36 +00:00
dyoung
dcd8923429 Change a bazillion occurrences of code resembling this,
error = (cmd == SIOCADDMULTI) ?
	    ether_addmulti(ifr, &sc->sc_ec) :
	    ether_delmulti(ifr, &sc->sc_ec);

	if (error == ENETRESET) {

to this,

	if ((error = ether_ioctl(ifp, cmd, data)) == ENETRESET) {

which does the same thing.

(A bazillion is a very large number.  This seems to make the i386
ALL kernel smaller by 3kB to 4kB.)

Use ifreq_getaddr() twice in es(4).

Whitespace nits.
2007-09-01 07:32:22 +00:00
kiyohara
510dbbae54 Add slhci at pcmcia.
And reorder.
2007-08-21 02:48:14 +00:00
macallan
b5dc000777 fix a logic botch in the headphone wiring setup - what was thought to be
'screamer' specific is actually beige G3 specific.
2007-08-14 16:18:20 +00:00
macallan
794098d6c6 sync with ppcoea-renovation 2007-08-08 22:19:55 +00:00
macallan
2f62cc688b use the ADB keymap in dev/adb/ 2007-08-08 04:06:27 +00:00
macallan
23f9222c11 if we can't determine the console framebuffer's depth assume it's 8bit
Mainly for /chaos/control which doesn't have any useful properties on its node
2007-08-07 01:59:23 +00:00
macallan
0591adcde1 fix another typo, now wsfb on ofb should work properly 2007-08-05 04:36:18 +00:00
macallan
fbbad8fbc0 add support for ioctl(WSDISPLAYIO_LINEBYTES) so XFree86/wsfb should work now.
Doh.
2007-07-24 20:09:57 +00:00
matt
ae0a442af3 Make MP kernels build again. Heck, if I'm lucky, maybe these changes will
even make one boot.
2007-07-21 19:12:15 +00:00
ad
744a92f0f8 Don't depend on uvm_extern.h pulling in proc.h. 2007-07-21 19:06:20 +00:00
macallan
03d6f84d6b fix a typo - if we pass no parameters to OF_interpret we better don't say
we do...
2007-07-16 22:17:03 +00:00
xtraeme
22d9c7eda3 battery_gtredata: there's no need to set ENVSYS_SVALID on each case,
just set it after the switch.
2007-07-16 18:24:29 +00:00
ad
63811f5275 Generic soft interrupts are mandatory. 2007-07-14 21:48:17 +00:00
ad
88ab7da936 Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements
2007-07-09 20:51:58 +00:00
xtraeme
8957a299a2 - Adapt to envsys2.
- Use one Indicator sensor for battery charge and set it to 1 or 0
  accordingly.
2007-07-05 14:49:59 +00:00
aymeric
6ebc93ac7f Recognize the Intrepid2 ATA controller. Needed at least for the last PB G4 2007-06-25 11:12:54 +00:00
hauke
3d7f38ec94 Fix a warning from gcc 4 about stripping the volatile qualifier by a cast
by doing the proper __UNVOLATILE() dance.
2007-06-23 15:32:56 +00:00
kiyohara
1b20b9d6d5 zyd was known to not work on big endian systems. 2007-06-11 13:39:22 +00:00
kiyohara
8f6cd34a62 Add zyd(4). 2007-06-09 11:34:01 +00:00
martin
c2534a819b Add pseudo-device agr to all GENERIC kernels where it might make sense
(commented out in some).
2007-06-04 08:55:18 +00:00
macallan
b0698fecd5 cpu_info.ci_idle_pcb is gone so don't try to set it
probably needs more work but it works fine like that at least on my PB3400c
2007-05-29 13:26:39 +00:00
macallan
0c12bd26b3 add an optional callback from pmu's worker thread, use it to poll AC power
status on legacy batteries where we don't get environment interrupts. Also
report AC status changes to powerd.
2007-05-09 00:09:28 +00:00
macallan
aa2949fa77 add a callback to change the colour map
so now X with wsfb on top of genfb should look right
2007-04-14 19:56:05 +00:00
dogcow
bfac324824 unb0rk config(1) of GENERIC and friends. 2007-04-12 22:28:05 +00:00
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