summaryrefslogtreecommitdiffstats
path: root/sys/arch/macppc/dev (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Correct the spelling of "transferred" and "transferring"guenther2012-02-241-2/+2
| | | | from Tobias Ulmer (tobiasu at tmux.org); ok jmc@, krw@
* Enable interrupts while processing off level interrupts. simplify codedrahn2011-10-281-31/+31
| | | | | instead of having two levels of looping. commit it for testing deraadt@
* Revert last change, reported increased stablility with the change wasdrahn2011-10-241-5/+28
| | | | grossly overstated.
* Do not run off level interrupts with external interrupts disabled asdrahn2011-10-221-31/+8
| | | | the off level interrupt could lead to a hang. Fixes hang seen by jasper@
* arithemtic -> arithmeticmiod2011-09-171-2/+2
|
* Set the shared priority entry to the value of the current maxipl entry,drahn2011-09-161-3/+4
| | | | not the index. ok kettenis@
* oops, this DPRINTF flavour takes no parentheses.miod2011-09-041-2/+2
|
* Silence awacs_trigger_input by turning a noisy printf into the DPRINTFmiod2011-09-041-2/+2
| | | | it was intended to be; reported by Donovan Watteau
* Return of the long missing powerpc interrupt rewrite. Was working fordrahn2011-08-292-728/+561
| | | | several weeks before release on macppc, socppc bugs just fixed.
* Remove config_activate() and DVACT_ACTIVATE. PCMCIA's the only thingmatthew2011-07-031-8/+1
| | | | | | | | that's ever used it, and it's long since been changed to use DVACT_{QUIESCE,SUSPEND,RESUME} instead. ok deraadt@, dlg@; miod@ also agreed with this idea when I brought it up a few weeks ago
* kqueue attach functions should return an errno or 0, not a plain 1. Fixnicm2011-07-021-2/+2
| | | | | | the obvious cases to return EINVAL and ENXIO. ok tedu deraadt
* Removes unused variables.mpi2011-06-161-17/+1
| | | | ok miod@
* Removes the always-set-to-1 adbSoftPower variable.mpi2011-06-161-25/+1
| | | | ok miod@
* Uses generic confargs to attach the apm(4) and piic(4) drivers instead ofmpi2011-06-163-24/+19
| | | | | | | | the specifics adb arguments. Now apm(4) no longer depends on adb stuff and piic(4) doesn't attach on a via-cuda machine (e.g. my color G3 iMac). ok miod@
* Add a const char* as first member of struct adb_attach_args, so that we canmiod2011-06-153-3/+12
| | | | | | pass a struct confargs * on macppc for some specific children of the adb node, and not confuse real adb device attachments. ok mpi@
* Make use of macobio_* methods to manage the i2s GPIOs, remove the customsmpi2011-06-073-217/+127
| | | | | | gpio_* methods and move the remaining global variables in the softc. ok ratchov@, krw@
* Fix the use of mute/volume keys broken by the last API change in audio.cmpi2011-06-071-4/+4
| | | | ok deraadt@
* Add dfs(4), a driver to support the Dynamic Frequency Switching featurempi2011-05-251-0/+167
| | | | | | | | found on some G4 PowerBook. Tested by many, thanks. ok sthen@, kettenis@, miod@
* Unify various gpio access using methods that take an offset relative to thempi2011-05-153-42/+12
| | | | | | | | | | mac-io bus base address. Needed by upcoming dfs(4) support. On some Apple machines, the openfirmware returns a gpio offset relative to the gpio controller (generaly at 0x50). These offsets should be corrected to be relative to the bus base address. looks fine to kettenis@, ok miod@
* pm_* methods are always attached to a PMU, no need to check for hardware.mpi2011-05-143-77/+16
| | | | ok miod@
* Refactor queue allocation and initialization into a wdc_alloc_queue()matthew2011-05-091-5/+4
| | | | | | | | | | | function, and let attachment code calls this rather than malloc(9). This prevents re-initialization of the queue in shared queue chipsets. Also, add wdc_free_queue() as a complementary function. Earlier version (without wdc_free_queue()) tested by sthen@ and Amit Kulkarni on various pciide(4) chips. ok dlg@
* add support for muting the master channel on i2s based cards, this allows thejasper2011-05-052-12/+58
| | | | | | | | "mute" key on keyboards to function too. tested by kettenis on aoa(4) and snapper(4) by me. from Martin Pieuchot ok kettenis@ ratchov@
* fix volume up and down using the keyboard keysjasper2011-05-041-4/+3
| | | | | from Martin Pieuchot ok ratchov@
* More than a decade ago, interrupt handlers on sparc started returning 0deraadt2011-04-152-6/+17
| | | | | | | | | | | | | | | | | | | | | | | (interrupt was not for me), 1 (positive interrupt was for me), or -1 (i am not sure...). We have continued with this practice in as many drivers as possible, throughout the tree. This makes some of the architectures use that information in their interrupt handler calling code -- if 1 is returned (and we know this specific machine does not have edge-shared interrupts), we finish servicing other possible handlers on the same pin. If the interrupt pin remains asserted (from a different device), we will end up back in the interrupt servicing code of course... but this is cheaper than calling all the chained interrupts on a pin. This does of course count on shared level interrupts being properly sorted by IPL. There have been some concerns about starvation of drivers which incorrectly return 1. Those drivers should be hunted down so that they return -1. ok drahn
* Iopoolification of some less common scsi drivers.krw2011-04-031-15/+22
| | | | ok dlg@ ("miod will not object" dlg@)
* Only attach if the "device_type" propery is "programmer-button". On the iMackettenis2011-02-191-4/+9
| | | | | | | | G5 (PowerMac8,2) attaching pgs(4) makes the machine hang. This machine has the "device_type" property set to "gpio" attaching pgs(4), which is that case for newer machines that don't seem to have a real button anyway. ok miod@, jasper@
* rename imask[] to cpu_imask[] to because imask is too loud as far asderaadt2011-01-082-20/+20
| | | | | kernel namespace ok miod
* Use cons_decl() to get console routine prototypes, instead of rolling our own.miod2010-11-221-6/+2
|
* Get rid of evcount's support for arranging counters in a treematthew2010-09-202-14/+8
| | | | | | | hierarchy. Everything attached to a single root node anyway, so at best we had a bush. "i think it is good" deraadt@
* s/wdcactivate/config_activate_children/deraadt2010-08-291-2/+2
|
* No "\n" needed at the end of panic() strings.krw2010-08-071-2/+2
| | | | | | | Bogus chunks pointed out by matthew@ and miod@. No cookies for marco@ and jasper@. ok deraadt@ miod@ matthew@ jasper@ macro@
* add two new members to structs audio_encoding and audio_prinfo.jakemsr2010-07-152-2/+14
| | | | | | | | | | for both structs, the new members are 'bps' and 'msb', which describe the number of bytes per sample and data alignment in the sample, respectively. drivers must properly set these fields in the 'query_encoding', 'set_parameters' and 'get_default_params' hardware interface methods. discussed with ratchov, deraadt
* timeout_add -> timeout_add_secblambert2010-07-051-2/+2
| | | | ok drahn@
* Move common code for waking up writers on a tty into a function.nicm2010-07-021-10/+4
| | | | ok deraadt matthew millert
* Change scsibus(4)'s scsi_link array to an SLIST to save memory onmatthew2010-07-011-3/+1
| | | | | | sparsely populated buses. ok dlg@, krw@
* Remove all adapter-specific 'struct scsi_device's. They are never used. Firstkrw2010-06-282-12/+3
| | | | | | | | step in elminating 'struct scsi_device' entirely. Spotted and initial diff from matthew@. ok matthew@ dlg@ deraadt@ marco@ miod@
* Allow tty drivers to request larger buffers at attach time using aderaadt2010-06-281-2/+2
| | | | | | | | max-baud-rate hint. Adjust TTYHOG (the nearly full logic) to this new situation. The larger buffers are required by the very high speed KDDI devices in Japan (CF com, or USB ucom) so those are the only two drivers which currently ask for a larger buffer size. ok yasuoka miod
* Don't #include <sys/user.h> into files that don't need the stuffguenther2010-06-261-2/+1
| | | | | | | | it defines. In some cases, this means pulling in uvm.h or pcb.h instead, but most of the inclusions were just noise. Tested on alpha, amd64, armish, hppa, i386, macpcc, sgi, sparc64, and vax, mostly by krw and naddy. ok krw@
* more cleanup to cope with the change that tries to make proc.h not actderaadt2010-04-211-1/+2
| | | | | like it is everything.h ok tedu
* Some of the line disciplines want to check for suser. Better to pass themtedu2010-04-121-3/+3
| | | | a process instead of using curproc. ok deraadt
* - add and enable pgs(4), a driver for the Programmers Switch found onjasper2010-04-092-23/+96
| | | | | | | recent-ish macs with macgpio(4). Basically dropping one to DDB when pushed. ...and not to be confused by the "reset" button ;-) feedback and ok drahn@
* - don't use memset() where we should use bzero()jasper2010-04-095-16/+16
| | | | | | * no binary change ok drahn@
* Change the scsi_cmd function member of scsi_adapter from int tokrw2010-03-231-8/+9
| | | | | | | | | | | | | void. Use XS_NO_CCB error in the scsi command (xs) to report the NO_CCB condition. Eliminates all SUCCESSFULLY_QUEUED and COMPLETE confusion and untangles the midlayer from the adapter a bit more. Eyes and some fixes by miod@ There may be some compile issues on little used (i.e. I don't have any) drivers but the change is mechanical and thus easy to remedy. ok dlg@
* - remove double cvs id'sjasper2010-02-262-4/+2
|
* - this device doesn't provide volume control, so stop whining about it. it's just not there.jasper2010-02-261-3/+2
| | | | ok jakemsr@ drahn@
* Remove a few more settings of ITSDONE in drivers. Only a couplekrw2010-01-131-2/+1
| | | | more to go. Should be a no-op.
* Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tnicm2009-11-091-2/+1
| | | | | | | | | | 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
* Move KERNEL_LOCK/UNLOCK dance into softintr_dispatch().kettenis2009-11-081-7/+1
| | | | ok miod@, dms@
* Move IS[12]BYTEMSG and ISEXTMSG defines to a common place.fgsch2009-11-011-5/+1
| | | | Pointed out by miod@. krw@ miod@ ok.
* Use suser when possible. Suggested by miod@.fgsch2009-10-311-2/+2
| | | | miod@ deraadt@ ok.