summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev
AgeCommit message (Collapse)Author
2018-01-22Always grab the KERNEL_LOCK() for !IPL_MPSAFE handlers.Martin Pieuchot
Suggested by kettenis@, ok visa@
2017-12-30Delete unnecessary <sys/file.h> includesPhilip Guenther
ok millert@ krw@
2017-09-08If you use sys/param.h, you don't need sys/types.hTheo de Raadt
2017-06-22Fix the remaining ';;'s in sys/Tom Cosgrove
2017-04-30Rename Debugger() into db_enter().Martin Pieuchot
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_RUNNINGMartin Pieuchot
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.David Gwynne
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 -> happenedJeremie Courreges-Anglas
2016-12-05Harmonize battery state thresholds accross platforms.Frederic Cambus
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 TIDPhilip Guenther
Build testing assistance from deraadt@
2016-09-19Remove unused getdev() audio driver functions.Alexandre Ratchov
2016-09-14Remove drain(), query_encoding(), mappage() and get_default_params()Alexandre Ratchov
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.Alexandre Ratchov
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.Jonathan Gray
Tested by and ok mglocker@
2016-07-02Get 'AOAShasta' soundchip working found on PowerMac9,1.Marcus Glocker
ok deraadt
2016-06-26Oups, remove '#define I2S_DEBUG' again.Marcus Glocker
2016-06-26Make i2s compile with I2S_DEBUG; %x -> %p.Marcus Glocker
2016-05-29Add support for new smu-firmware fan commands. This fixes wrong sysctlMarcus Glocker
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.Marcus Glocker
ok deraadt kettenis
2016-05-23Fix shutdown sequence.Marcus Glocker
2016-05-23Some of our fan scaling calculations with the muK temperature unit aboveMarcus Glocker
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.Marcus Glocker
2016-05-20Hook up smu(4) to the thermal management framework.Marcus Glocker
ok kettenis
2016-05-20Add a thermal management framework for macppc which controls the fan speedMarcus Glocker
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.Marcus Glocker
ok kettenis
2016-05-14Add support for pwm fans.Marcus Glocker
ok kettenis
2016-05-14Return correct rpm values for all fans.Marcus Glocker
ok kettenis
2016-05-04Fall back to "safe-value" when "unmanage-value" is not evailable toMartin Pieuchot
configure fan speeds. from mglocker@, ok kettenis@
2016-04-13G/C IFQ_SET_READY().Martin Pieuchot
2016-03-15not compiled before commitTheo de Raadt
2016-03-14Change a bunch of (<blah> *)0 to NULL.Kenneth R Westerback
ok beck@ deraadt@
2015-12-08No trailers has been the default and only option for 20 years, yet someTed Unangst
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.David Gwynne
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.Martin Pieuchot
2015-11-23Attaches zs(4) as "zs" not "zsc".Martin Pieuchot
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@
2015-11-14No need to include <net/bpfdesc.h>Martin Pieuchot
Now that "struct bpf_d" depends on <sys/srp.h> this is one of the offender for removing the header from <sys/param.h>
2015-10-25arp_ifinit() is no longer needed.Martin Pieuchot
2015-09-08sizes for free(); ok semarieTheo de Raadt
2015-08-24Workaround for slow bm(4) from NetBSD PR 33667 via Donovan Watteau onMartin Pieuchot
bugs@.
2015-07-17Make sound cards work on older PowerMacs.Martin Pieuchot
On such machines the device-tree contains absolute addresses for the various sound buttons and the hardware was not properly initiliazed. Problem reported and fix tested by Fabian Frédérick.
2015-07-08MFREE(9) is dead, long live m_freem(9)!Martin Pieuchot
ok bluhm@, claudio@, dlg@
2015-06-25Use a single event counter for IPIs like other archs do.Martin Pieuchot
Even if this counter is subject to trashing it is a simple solution and gives an proximation "good enough" of the number of IPIs on Quad CPUs machine. ok deraadt@
2015-06-24IPL_MPSAFE bits for macppc with openpic(4).Martin Pieuchot
2015-06-24Increment if_ipackets in if_input().Martin Pieuchot
Note that pseudo-drivers not using if_input() are not affected by this conversion. ok mikeb@, kettenis@, claudio@, dlg@
2015-06-04The (no quite so) new kernel perfpolicy code calls cpu_setperf() from aMark Kettenis
timeout. Unfortunately the smu(4) CPU voltage slewing code sleeps, which causes a kernel panic. Prevent this by delegating the CPU frequency switching and voltage slewing to a task. ok mpi@
2015-06-03Check for the correct bit in the interrupts property of the device-treeMartin Pieuchot
to determin if interrupts should be established as edge/level triggered. Fix audio interrupts on U4 systems. On such systems the "interrupts" fields in the device-tree has more bits set and cannot be compared to 0.
2015-06-02Add a new HT-PCI bridge driver and the necessary glue to openpic(4)Martin Pieuchot
to get interrupts working on U4 machines. With this OpenBSD can run on PowerMac11,2 (Quad G5). With inputs from and ok kettenis@, miod@, dlg@
2015-05-13test mbuf pointers against NULL not 0Jonathan Gray
ok krw@ miod@
2015-05-11Remove all audio format conversion code from the kernel (btw holdingAlexandre Ratchov
the kernel_lock), as we already do better conversions in user-mode. Yet, no need for every single driver to fiddle with the conversion code as they are done transparently by common MI code. With help from armani and miod, support from mpi ok armani@
2015-05-07remove badly indented printf and it's preceeding testJonathan Gray
as suggested by miod@