summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev
AgeCommit message (Collapse)Author
2009-11-09Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tNicholas Marriott
supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and remove it from any occurences where both are used, except one for kqueue itself and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag). Based on a diff from tedu. ok deraadt
2009-11-08Move KERNEL_LOCK/UNLOCK dance into softintr_dispatch().Mark Kettenis
ok miod@, dms@
2009-11-01Move IS[12]BYTEMSG and ISEXTMSG defines to a common place.Federico G. Schwindt
Pointed out by miod@. krw@ miod@ ok.
2009-10-31Use suser when possible. Suggested by miod@.Federico G. Schwindt
miod@ deraadt@ ok.
2009-10-31Add missing KNOTE() calls after selwakeup(), until we decide if the KNOTE()Theo de Raadt
calls can go directly into selwakeup() safely long discussion with nicm, murmers of consent from tedu and miod, noone else seems to care of kqueue is busted as long as it makes their sockets move data fast... pretty sad.
2009-10-26Do not do strncmp comparisons on dv_xname because longer device names whichTheo de Raadt
look similar could arrive in the future. Instead, compare directly against dv_cfdata->cf_driver->cd_name Issue originally spotted by miod
2009-10-13Get rid of devact enum, substitute it with an int and coresponding defines.Paul Irofti
This is needed for the addition of further suspend/resume actions. Okay deraadt@, marco@.
2009-10-01Generic soft interrupts for macppc. Tested by mk@, deraadt@Mark Kettenis
ok miod@
2009-09-15Make sure we block clock interrupts at IPL_CLOCK and higher.Mark Kettenis
ok miod@
2009-09-13Make sure we really have pending interrupts such that we don't do anMark Kettenis
out-of-bounds array access later on. ok drahn@, dms@
2009-08-25In bmac_init(), invoke bmac_transmit_packet() with the correct packet sizeMiod Vallat
(sizeof(ptr) vs sizeof(*ptr) bug). ok krw@
2009-08-22Constify the what/name parameter of pci_intr_establish().Michael Knudsen
Tested by myself, sthen, oga, kettenis, and jasper. Input from sthen and jasper. ok kettenis (Manpage follows shortly.)
2009-08-12Apple is hopelessly inconsistent with their firmware, so some machines haveMark Kettenis
an extra smu-i2c-control node where others don't. Handle the difference. Makes the PowerMac9,1 actually find some i2c devices.
2009-08-12Add support for the "Slots Power" sensor on the PowerMac9,1.Mark Kettenis
2009-08-11The PowerMac9,1 has 4 sensors on its smu(4), so increase the maximum number.Mark Kettenis
Also add a check for the maximum number of sensors like we already have for the number of fans such that we avoid mysterious hangs on machines with more than 4 sensors.
2009-06-09backout interrupt diff until it the next round of fixesTheo de Raadt
2009-06-02Reintroduce the macppc interrupt subsystem rewrite. Several bugs haveDale Rahn
been found and corrected.
2009-03-08Add support for Geyser2 devices from NetBSD and fix some Geyser1 devices thatRobert Nagy
can be found in iBook G4 12". Remove references for LCD panel sizes because the same device can be found on different sized laptops and it has nothing to do with the trackpad. Introduce a type variable that stores the device type: FOUNTAIN, GEYSER1 or GEYSER2. This value helps deciding some of the device parameters and it gets printed in the dmesg instead of the panel size. Introduce "mouse button emulation" on multi-touch trackpads just like in macos, so it's not needed to bind mouse buttons to the keyboard anymore: Tap two fingers + mouse button = 3rd mouse button = right click Tap three fingers + mouse button = 2nd mouse button = middle click Discussed with and ok: miod@ and maja@
2009-02-26Add a two new ioctls to the apm(4) interface.Owain Ainsworth
APM_IOC_{SUSPEND,STANDBY}_REQ: This is to fix an issue with apm suspend where a call to zzz suspended the machine immediately, not giving anyone listening for apm events (other than apmd) a chance to deal with the upcoming change. This hit X hard since the introduction of drm, since it needs to have time to idle the 3d engine and otherwise get the device into a recoverable state. Such things are needed until we support modesetting in the kernel. Now, instead of forcing a suspend, using ioctl sends out an event similar to if you had put the lid down, giving all userland applications a chance to reply. tested by sthen@ and beck@, especial thanks to sthen for sitting there while I tried to debug this remotely, I owe him beer. Prompted by and ok deraadt@
2009-02-16Extend the scsi_adapter minphys() callback to take a struct scsi_link *Miod Vallat
as additional argument. This will allow intermediate layers between scsi devices such as sd and scsi host adapters to take appropriate action if necessary.
2009-02-01Revert 1.28, rumoured to cause problems on some machines.Miod Vallat
2009-01-29Some of the latest macppc laptops with no adb subsystem at all, spontaneouslyMiod Vallat
powerdown if we try to issue pmu commands. Skip these if no adb device appears in the device tree. Adapted from NetBSD.
2009-01-11Actual final round of timeout_add(to, n * hz) -> timeout_add_sec(to, n)Bret Lambert
conversions. ok kettenis@ ok krw@ (possibly for the second time :)
2009-01-10Add support for the volume buttons and for the eject button foundRobert Nagy
on apple laptops. The eject button will only eject the disc when it's not used by anything. ok miod@
2008-11-28Eliminate the redundant bits of code for MTU and multicast handlingBrad Smith
from the individual drivers now that ether_ioctl() handles this. Shrinks the i386 kernels by.. RAMDISK - 2176 bytes RAMDISKB - 1504 bytes RAMDISKC - 736 bytes Tested by naddy@/okan@/sthen@/brad@/todd@/jmc@ and lots of users. Build tested on almost all archs by todd@/brad@ ok naddy@
2008-11-25Another bunch of TRY_AGAIN_LATER -> NO_CCB when no I/O could be started.Kenneth R Westerback
"looks sane to me" marco@
2008-11-21back out the new interrupt subsystem because some little bug still lurks in ↵Theo de Raadt
there
2008-11-07different fix for pr5883 than proposed by the submitter, found when glancingTodd T. Fries
at apple code go ahead drahn@
2008-11-06input and volume twiddlesTodd T. Fries
o set init data to match snapper_set_foo* o set volume to 190 (audible compared to the default) o set input to mic (most common usage) ok jakemsr@
2008-11-05return an error when trying to get stereo values from a monoJacob Meuser
control. makes mixerctl(1) output more sensible. ok drahn, todd
2008-11-05* use uint8_t instead of int to hold the value of an 8-bit register.Jacob Meuser
* for outputs.{bass,treble}, 0 dB corresponds to mixer value 128, not 0. * line-in is configured as the default recording source; set sc->sc_record_source accordingly. * add missing register to initialization code. from Marco (marco2z at arsystel com), thanks testing/ok drahn@
2008-11-04missing setipl in the 'busy processing soft interrupts state'Dale Rahn
causes high priority interrupts to be delayed until that state is cleared.
2008-10-30ugh, typo fix, committed previous from the wrong treeTodd T. Fries
2008-10-30patches for macppc to remove more EINVAL returns in the audio codeTodd T. Fries
tested by me, from ratchov@, please commit ratchov@
2008-10-29come on -- this was not even test compiledTheo de Raadt
2008-10-29native default parameters for i2s devices instead of 8kHzJacob Meuser
mulaw mono, which few can even do. "Please just get this in." brad@
2008-10-15Second pass of simple timeout_add -> timeout_add_sec conversionsBret Lambert
This should take care of the simpler ones (i.e., timeout values of integer multiples of hz). ok krw@, art@
2008-10-08cosmetic change for ioctl funtions.. move splnet out from variable declaration.Brad Smith
2008-10-02First step towards cleaning up the Ethernet driver ioctl handling.Brad Smith
Move calling ether_ioctl() from the top of the ioctl function, which at the moment does absolutely nothing, to the default switch case. Thus allowing drivers to define their own ioctl handlers and then falling back on ether_ioctl(). The only functional change this results in at the moment is having all Ethernet drivers returning the proper errno of ENOTTY instead of EINVAL/ENXIO when encountering unknown ioctl's. Shrinks the i386 kernels by.. RAMDISK - 1024 bytes RAMDISKB - 1120 bytes RAMDISKC - 832 bytes Tested by martin@/jsing@/todd@/brad@ Build tested on almost all archs by todd@/brad@ ok jsing@
2008-09-30simplify and rework the mechanism to run the leds, 'it is better' miod@ deraadt@Dale Rahn
2008-09-19While vaguely interesting, the prints coming out of the driver was way tooDale Rahn
noisy. Hopefully this will quiet it down for all but extremely odd cases (where we probably want to see the messages).
2008-09-18Redesign of the powerpc interrupt architecture, use true levels intead ofDale Rahn
blocking specific interrupts. Needs signficant testing to prove that one remaining elusive bug has been squashed.
2008-09-16SMP ddb support, with some feedback from kettenis.Dale Rahn
2008-08-25how about i commit what was actually approved? wrong tree, bad todd ;-(Todd T. Fries
2008-08-24o implement proper volume control table based on chipset docsTodd T. Fries
o attempt to make record work (but silence for now) from drahn@, ok maja@, drahn@
2008-08-19Make it possible to enter ddb from the serial console.Mark Kettenis
ok miod@, deraadt@
2008-07-30Do not print adapter target id on the attachment line, now that scsibus(4)Miod Vallat
prints it. These should be the last offenders.
2008-07-16This file is long unused.Miod Vallat
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
2008-06-13Add some missing $OpenBSD$ tags.Kenneth R Westerback
ok drahn@ gwk@