summaryrefslogtreecommitdiffstats
path: root/sys/arch/macppc/dev
AgeCommit message (Collapse)AuthorFilesLines
2020-06-06Move PowerBook5,4 audio from aoa(4) to snapper(4).gkoehler2-3/+11
This adds the missing TAS3004 volume control. Before, I put my ear near the speaker (to hear audio), because I had no way to turn up the volume. Now, the default volume is much louder, so I use sndioctl(1) to turn it down. Check for the model string "PowerBook5,4". This model's device tree has compatible = "AOAKeylargo" for the audio, doesn't show the TAS3004 in the same way as other models.
2020-04-07Abstract the head of knote lists. This allows extending the lists,visa1-3/+3
for example, with locking assertions. OK mpi@, anton@
2020-02-20Replace field f_isfd with field f_flags in struct filterops to allowvisa1-2/+2
adding more filter properties without cluttering the struct. OK mpi@, anton@
2020-01-24mesh(4) is old world and only new world macppc hardware is supported.krw1-1200/+0
ok tedu@ jsg@
2020-01-23Use a consistant idiom/format when declaring scsi_adapter structureskrw1-2/+2
in drivers. Terse one liners, NULLs instead of 0's, explicitly specify all members, etc. Nuke #ifdef notyet blocks related to the scsi_adapter in aic. No intentional functional change. ok tedu@
2020-01-21remove unfinished macppc esp driver.tedu1-463/+0
ok deraadt krw
2020-01-10xlights(4): timeout_add(9) -> timeout_add_msec(9)cheloha1-2/+2
There are no units noted here, but macppc is a 100hz platform so it's safe to just assume 2500 milliseconds here. ok jsg@
2019-12-31Use C99 designated initializers with struct filterops. In addition,visa1-3/+7
make the structs const so that the data are put in .rodata. OK mpi@, deraadt@, anton@, bluhm@
2019-10-08macppc: mediabay(4), smu(4), xlights(4): tsleep(9) -> tsleep_nsec(9)cheloha4-11/+11
This diff completely converts sys/arch/macppc to *sleep_nsec(9). Also convert dev/thermal.c while we're down here. Unsure what that file's driver's name is, if any. ok kn@ visa@
2019-09-03a sprinkling of function ansificationderaadt5-24/+23
2019-09-03delete incorrect casts, and a bit if ansi functions; ok jcsderaadt1-6/+5
2019-09-03Replace empty body of while loop with continue statement.kettenis1-2/+2
ok deraadt@
2019-09-03ansify functionsderaadt1-54/+22
ok jsg
2019-09-03correct indent that triggered clang to freak out; with jsg.deraadt1-3/+4
2019-07-20Get rid of `ddb_is_active' instead use `db_active'.mpi1-7/+3
From Christian Ludwig <christian_ludwig at genua dot de> ok visa@
2018-01-22Always grab the KERNEL_LOCK() for !IPL_MPSAFE handlers.mpi1-6/+5
Suggested by kettenis@, ok visa@
2017-12-30Delete unnecessary <sys/file.h> includesguenther1-2/+1
ok millert@ krw@
2017-09-08If you use sys/param.h, you don't need sys/types.hderaadt5-10/+5
2017-06-22Fix the remaining ';;'s in sys/tom1-2/+2
2017-04-30Rename Debugger() into db_enter().mpi5-10/+10
Using a name with the 'db_' prefix makes it invisible from the dynamic profiler. ok deraadt@, kettenis@, visa@
2017-03-08Do not clear IFF_UP, even in the error path, clearing IFF_RUNNINGmpi1-2/+2
is enough. This flag should only be set by the stack, drivers shouldn't mess with it. Discussed with dlg@ and mikeb@, ok mikeb@, stsp@
2017-01-22move counting if_opackets next to counting if_obytes in if_enqueue.dlg2-6/+2
this means packets are consistently counted in one place, unlike the many and various ways that drivers thought they should do it. ok mpi@ deraadt@
2016-12-26Fix typo, happend -> happenedjca1-2/+2
2016-12-05Harmonize battery state thresholds accross platforms.fcambus1-6/+5
Use the same values hardcoded in sys/dev/acpi/acpi.c where possible. OK visa@
2016-10-08Various printf claim to report the PID, so actually report that and not the TIDguenther1-3/+4
Build testing assistance from deraadt@
2016-09-19Remove unused getdev() audio driver functions.ratchov6-96/+6
2016-09-14Remove drain(), query_encoding(), mappage() and get_default_params()ratchov8-156/+14
methods from all audio drivers and from the audio_if structure as they are never called.
2016-08-30Properly set "msb" and "bps" fields for both play and rec directions.ratchov1-12/+4
Fixes "audio0: different play and record parameters ... " errors, and probably other unreported errors. help and ok landry@
2016-07-29Reorder code to avoid a divide by zero when there are no sensors.jsg1-5/+7
Tested by and ok mglocker@
2016-07-02Get 'AOAShasta' soundchip working found on PowerMac9,1.mglocker1-1/+13
ok deraadt
2016-06-26Oups, remove '#define I2S_DEBUG' again.mglocker1-2/+1
2016-06-26Make i2s compile with I2S_DEBUG; %x -> %p.mglocker1-3/+4
2016-05-29Add support for new smu-firmware fan commands. This fixes wrong sysctlmglocker1-37/+112
hw.sensors fan values seen on macppc models with a new smu-firmware. Help and ok kettenis
2016-05-23Pass the device node to ia_cookie so we can pick it up in the i2c driver.mglocker1-1/+2
ok deraadt kettenis
2016-05-23Fix shutdown sequence.mglocker1-2/+2
2016-05-23Some of our fan scaling calculations with the muK temperature unit abovemglocker2-8/+8
59 degC require temporary values larger than 32bit signed. Therefore bump those involved variables to int64_t and replace imin/imax with ulmin/ulmax to get proper results.
2016-05-20Ooops, fix the OpenBSD tag.mglocker1-1/+1
2016-05-20Hook up smu(4) to the thermal management framework.mglocker1-7/+92
ok kettenis
2016-05-20Add a thermal management framework for macppc which controls the fan speedmglocker2-0/+272
based on the temperature sensor values. A driver can register it fans or temperature sensors there. Ported from FreeBSD. ok deraadt kettenis
2016-05-14Move rpm read to a own function analog pwm read. No functional change.mglocker1-14/+27
ok kettenis
2016-05-14Add support for pwm fans.mglocker1-3/+111
ok kettenis
2016-05-14Return correct rpm values for all fans.mglocker1-4/+4
ok kettenis
2016-05-04Fall back to "safe-value" when "unmanage-value" is not evailable tompi1-4/+7
configure fan speeds. from mglocker@, ok kettenis@
2016-04-13G/C IFQ_SET_READY().mpi2-4/+2
2016-03-15not compiled before commitderaadt1-2/+2
2016-03-14Change a bunch of (<blah> *)0 to NULL.krw3-12/+12
ok beck@ deraadt@
2015-12-08No trailers has been the default and only option for 20 years, yet sometedu2-4/+4
drivers still set IFF_NOTRAILERS while others do not. Remove all usage of the flag from the drivers which in ancient times used it (and the modern drivers which blindly copied it from those drivers of yore). suggested by guenther. ok mpi
2015-11-25replace IFF_OACTIVE manipulation with mpsafe operations.dlg2-13/+14
there are two things shared between the network stack and drivers in the send path: the send queue and the IFF_OACTIVE flag. the send queue is now protected by a mutex. this diff makes the oactive functionality mpsafe too. IFF_OACTIVE is part of if_flags. there are two problems with that. firstly, if_flags is a short and we dont have any MI atomic operations to manipulate a short. secondly, while we could make the IFF_OACTIVE operates mpsafe, all changes to other flags would have to be made safe at the same time, otherwise a read-modify-write cycle on their updates could clobber the oactive change. instead, this moves the oactive mark into struct ifqueue and provides an API for changing it. there's ifq_set_oactive, ifq_clr_oactive, and ifq_is_oactive. these are modelled on ifsq_set_oactive, ifsq_clr_oactive, and ifsq_is_oactive in dragonflybsd. this diff includes changes to all the drivers manipulating IFF_OACTIVE to now use the ifsq_{set,clr_is}_oactive API too. ok kettenis@ mpi@ jmatthew@ deraadt@
2015-11-24You only need <net/if_dl.h> if you're using LLADDR() or a sockaddr_dl.mpi2-4/+2
2015-11-23Attaches zs(4) as "zs" not "zsc".mpi1-26/+26
Incoherency brought by jmc@ and schwarze@ because the SYNOPSIS of the corresponding manual do not match its NAME. This is one step further in the zs(4) unification... Go dokey go! Tested by jmatthew@, ok sebastia@, deraadt@