summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/powermac/cuda.c
Commit message (Collapse)AuthorAgeFilesLines
* - There's no need to overwrite the default device method with the defaultmarius2011-11-221-5/+1
| | | | | | | | | | one. Interestingly, these are actually the default for quite some time (bus_generic_driver_added(9) since r52045 and bus_generic_print_child(9) since r52045) but even recently added device drivers do this unnecessarily. Discussed with: jhb, marcel - While at it, use DEVMETHOD_END. Discussed with: jhb - Also while at it, use __FBSDID.
* Restructure how reset and poweroff are handled on PowerPC systems, sincenwhitehorn2010-08-311-0/+18
| | | | | | | | | | | | | | | | | the existing code was very platform specific, and broken for SMP systems trying to reboot from KDB. - Add a new PLATFORM_RESET() method to the platform KOBJ interface, and migrate existing reset functions into platform modules. - Modify the OF_reboot() routine to submit the request by hand to avoid the IPIs involved in the regular openfirmware() routine. This fixes reboot from KDB on SMP machines. - Move non-KDB reset and poweroff functions on the Powermac platform into the relevant power control drivers (cuda, pmu, smu), instead of using them through the Open Firmware backdoor. - Rename platform_chrp to platform_powermac since it has become increasingly Powermac specific. When we gain support for IBM systems, we will grow a new platform_chrp.
* Remove the unneeded header <machine/intr.h>.marcel2010-07-021-1/+0
|
* Get nexus(4) out of the RTC business. The interface used by nexus(4)nwhitehorn2010-03-231-1/+64
| | | | | | | | | | in Open Firmware was Apple-specific, and we have complete coverage of Apple system controllers, so move RTC responsibilities into the system controller drivers. This avoids interesting problems from manipulating these devices through Open Firmware behind the backs of their drivers. Obtained from: NetBSD MFC after: 2 weeks
* strict kobj signatures: fix adb_hb_controller_poll impl in powermacavg2009-06-111-3/+4
| | | | | | | the method return u_int, not void Reviewed by: imp, current@ Approved by: jhb (mentor)
* Use a static free packet queue instead of using malloc() to allocate new ADB ↵nwhitehorn2008-12-131-13/+25
| | | | | | packets. This fixes some locking problems.
* Fix some nasty race conditions in the VIA-CUDA driver that ended up preventingnwhitehorn2008-12-061-78/+151
| | | | | | my right mouse button and keyboard LEDs from working due to mangled configuration packets. Fixed several other races and associated problems in the main ADB stack that were exposed while fixing this.
* Fix some possible infinite loops in the ADB code, and remove some hacksnwhitehorn2008-10-301-19/+9
| | | | | that were inserted in desperation during bring-up. In addition, move ADB bus enumeration and child attachment to when interrupts are available.
* Add ADB support. This provides support for the external ADB bus on the PowerMacnwhitehorn2008-10-261-0/+641
G3 as well as the internal ADB keyboard and mice in PowerBooks and iBooks. This also brings in Mac GPIO support, for which we should eventually have a better interface. Obtained from: NetBSD (CUDA and PMU drivers)
OpenPOWER on IntegriCloud