summaryrefslogtreecommitdiff
path: root/sys/arch/macppc/dev
AgeCommit message (Collapse)Author
2007-06-12Remove the definition and use of the device_ptr_t which was a struct device *.Marc Balmer
No binary change. ok mk.
2007-06-11Remove the usb_proc_ptr type definition, which was really a 'struct proc *'Marc Balmer
only. No binary change. ok mk.
2007-06-05Remove the comment "Static function protoypes". Static is gone in USB.Marc Balmer
no binary change.
2007-06-05Remove the "Static" function declaration. It is defined to beMarc Balmer
empty and confuses the source code reader. As discussed with dlg and jsg.
2007-06-01Establish interrupt after checking the i2s subsystem, fixes a problem withGordon Willem Klok
xserve G5. ok drahn
2007-05-30Add support for iBook G4. -mojMats O Jansson
2007-05-30Make xlights(4) probe correctly on the Xserve G5, still does not correctGordon Willem Klok
the i2s timeout. ok drahn
2007-05-29Use atomic operations to operate on netisr, instead of clearing it at splhigh.Miod Vallat
This changes nothing on legacy architectures, but is a bit faster (and simpler) on the interesting ones.
2007-05-27USB cleanup leftover. Diff from jsg@ tested by me.Marcus Glocker
2007-05-25"interupt" -> "interrupt" in various comments. Mostly from Diego Casati.Kenneth R Westerback
2007-05-20lockmgr -> rwlock for piic(4), kiic(4) and smu(4);Thordur I. Bjornsson
smu(4) tested by kettenis@, ok krw@
2007-05-10The road to supporting bigendian openpic starts.Dale Rahn
2007-04-24Firmware lies! Switching from LEVEL to EDGE triggered interrupt preventsGordon Willem Klok
storms. ok kettenis
2007-04-23rename drivers with numbers in them; ok gwk drahnTheo de Raadt
2007-04-23iqg -> irqGordon Willem Klok
spotted by miod
2007-04-22better interrupt names for vmstat -iz; ok miod gwkTheo de Raadt
2007-04-22Add sysbutton a driver for the 'System identifier' button found on theGordon Willem Klok
fornt panel of the xserve (the button with the triangle on it). This driver will dump you into ddb at the press of a button if the ddb.console sysctl is set. The bug still has one unresolved issue if ddb.console is not set and you press and hold the button you will cause a interrupt storm that will slow the system down. So if you keep your xserve near a toddler or you yourself are a toddler you might want to consider disabling this device remember buttons arn't toys. ok deraadt.
2007-04-22rename a very long driver name to something shorter, and more clearTheo de Raadt
and while there, fix the interrupt name for vmstat -iz; ok gwk
2007-04-21Fix the rcs tags.Gordon Willem Klok
2007-04-21Add blinkenlights(4) a driver to control the 16 leds found on the frontGordon Willem Klok
panel of the Xserve G4 and G5. The leds will provide an indication of the system load slowing as the load climbs, and system health e.g. no lights means its dead or in DDB. Split some of the shared registers and clock divisors from i2s into i2sreg.h while there nuke some evil C++ style comments. Man page to follow shortly. ok deraadt
2007-04-10Add support for a fourth axis on wsmouse devices, e.g. on the Apple MightMiod Vallat
Mouse. Currently limited to USB mice. Adapted from a diff from Gareth <garf@loveandnature.co.za> on tech@
2007-04-10``it's'' -> ``its'' when the grammar gods require this change.Miod Vallat
2007-04-02unmapiodev() takes the va as its first argument, not the pa.Mark Kettenis
ok gwk@
2007-03-23Clean up the failure path of the attach routine, check the return value ofGordon Willem Klok
dbdma_alloc, and mapiodev, and some whitespace/long line cleanup. Tested on 9500MP and 9600MP. ok martin@
2007-03-22split userland & kernel struct sensor/sensordev so that the additionTheo de Raadt
of new fields in the future is less disruptive. This is done similar to how struct proc is handled for ps(1). ok jmc (man page changes) tested fkr simon, and more suggestions from millert
2007-03-20Move macppc to __HAVE_CPUINFO, and make locore.S and trap.c suitable forMark Kettenis
MULTIPROCESSOR. From now on sprg0 holds a pointer to struct cpuinfo, which is used to spill registers to during trap instead of the globals we used to use for that purpose. Bits and pieces from NetBSD. Help from drahn@ and art@. Tested by xsa@, thib@, miod@, gwk@, deraadt@. ok drahn@, gwk@
2007-03-20Spring cleaning: some whitespace, clean up the failure path in the attachGordon Willem Klok
routine, and check the return of the mapiodev, and dbdma_create functions. Tested on Power Macintosh 9500MP and a 9600MP. "the diff looks fine to me." dlg@
2007-03-14Make SMU sensors and fan control work on PowerMac8,1.Mark Kettenis
tested by Alastair Poole.
2007-03-13Drop the second and third arguments to adb_op_sync, for they are not used;Miod Vallat
while there, remove explicit global variable initializations to zero, and appease the gods by removing the most ludicrous spurious casts. No functional change (except for code shrinkage).
2007-03-04Invoke adb_cuda_autopoll() and leave polling mode after all initializationMiod Vallat
commands are set; also add a delay between adb_intr_cuda() and adb_soft_intr() while polling, as this seems to be necessary on some models; ok gwk@ drahn@
2007-03-01On the first generation iMac G5 (PowerMac8,1) the fans node is calledMark Kettenis
rpm-fans.
2007-03-01Don't attach sensors and iic(4) if we didn't find any fans.Mark Kettenis
Tickling the SMU when we don't set the fans running is bad since this prevents the fans to spin up automatically causing the machine to overheat.
2007-03-01proper softint treatment (that get missed otherwise); found and tested by ↵Michael Shalayeff
mpf@ on pppoe; drahn@ ok
2007-02-26Revert a portion of rev 1.21, via-cuda behaves exactly opposite of via-pmu,Gordon Willem Klok
if we attempt to clear the wake on ac loss bit just before shutting down it yo-yo's found by claudio@, tested by drahn@ on early imac, and myself on a 9600. ok drahn@
2007-02-18Correct yo-yo shutdowns:Gordon Willem Klok
Apparently some machines don't detect a clean (i.e. software initiated) shutdown; and ignore the 'wake on AC loss' bit, meaning they wake up immediatly after being told to shutdown e.g. via shutdown -hp. So now we continue preserve the wake on AC loss behaivour, howerver if we initiate a clean shutdown we clear this bit so that it the machine does not immediately power back up again. ok kettenis@
2007-02-12Add cuda_fileserver_mode() and pmu_fileserver_mode() that enable the wakeGordon Willem Klok
on AC loss feature of the power management IC. Make this the default behaviour when booting OpenBSD from now on. This will only affect machines that have the power suddenly cut, Performing a shutdown requesting power down will clear this mode and its then possible to remove the power cord, and plug it back in without the machine comming back on automatically. Tested by myself, drahn ok kettenis, drahn.
2007-01-14zsprintf() is gone, fixes ZSMACDEBUG caseMartin Reindl
2007-01-07Fix (unused) OPENPIC_IPI macro.Miod Vallat
2007-01-03Change IF_DEQUEUE to IFQ_DEQUEUE for ALTQ, and some purely cosmeticGordon Willem Klok
0 -> NULL fixes. From brad@ Tested on PM 9600MP.
2006-12-31Cover the other case we need to unload the dmamap, in espdmaintr(),Gordon Willem Klok
While here fix some spacing too. Bus probing and some commands such as eject tested on a Power Macintosh 9600, still unable to mount a cdrom on a SONY CD-ROM model CDU-8003A.
2006-12-31Some spaces to tabs and cosmetic tweaking of the code,Gordon Willem Klok
From brad@. Lots more spacing cleanup by myself. Tested on Power Macintosh 9600
2006-12-23adapt to new two-level sensor api; Constantine A. MureninTheo de Raadt
2006-12-14Add the esp driver to macppc, supports the NCR53c94 SCSI controller foundGordon Willem Klok
on old world macs as the external SCSI controller. Still a work in progress, it probes the SCSI bus correctly but attempts to access device meet with limited sucess.
2006-12-14Per the new policy with respect to short header files contaning onlyGordon Willem Klok
register offsets, loose the file meshreg.h. ok dlg@
2006-12-14Eliminate unncessary interfaces resets via the SIOCSIFADDR ioctl whenGordon Willem Klok
adding additional IP address or re-running dhclient by only causing an interface init if the interface is not already running. As well as some cosmetics. from brad@. Loose the ether_cmp function of dubious optimizational value simply use bcmp. Revert the ordering hack, don't execute instruction eieio directly in mc_dmaintr, makes no difference in triggering the uvm_fault bug, the problem lies elsewhere. Fix some indentation related to the DBDMA macros. Tested on Power Macintosh 9600MP and 9500MP by myself.
2006-12-08scsibus_attach_args not scsi_attach_args for saa inThordur I. Bjornsson
mesh_attach(). ok dlg@
2006-11-28give scsi controllers a real attach args to fill in when attaching scsibus.David Gwynne
ok miod@ marco@ deraadt@
2006-11-26Cleanup some KNF nits, if we can't grab a SCB dont return at splbio.Gordon Willem Klok
ok sometime ago dlg@
2006-10-20fix $OpenBSD$ tag.Xavier Santolaria
2006-10-08Execute the Enforce in-order Execution of I/O (eieio) instruction inGordon Willem Klok
mc_dmaintr, its a little bit of voodoo, I dont understand why its necessary for mace versus the near identical dma isr in if_bm.c, but the system no longer panics under network load.