summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
AgeCommit message (Collapse)Author
2007-05-10The road to supporting bigendian openpic starts.Dale Rahn
2007-05-08correct dmesg outputTheo de Raadt
2007-05-08no need to print boot device name twiceTheo de Raadt
2007-05-08uninitialized variable passed to setroot()Theo de Raadt
2007-05-04make findblkmajor() and findblkname() MI; ok miodTheo de Raadt
2007-05-04setroot() was a ugly mix of MI and MD code, with different bugs on differentTheo de Raadt
machines. Instead -- build one solid clean MI version, and thenchange all the architectures to use it. ok various people, tested on almost all cases. (it is a 10094 line diff..)
2007-05-03Config file for MULTIPROCESSOR kernel.Mark Kettenis
2007-05-03Add dummy functions to make MULTIPROCESSOR kernels compile.Mark Kettenis
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-16macppcs can boot off usb disks, so treat "/usb" controllers in the ofw treeDavid Gwynne
as storage controllers. this lets ottos macppc root off the usb disk he booted off.
2007-04-13Timecounters for macppc. As clean and simple as sparc64. Uses the %tbMark Kettenis
special register. ok drahn@
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-03A fix for smp old world macs such as the 9500MP and 9600MP which lack theGordon Willem Klok
/cpus openfirmware node of the new world macs, and only have one cpu node. We look at a register of the memory controller called hammerhead for the arbitration bit being set indicating a two way machine. Quad processor old worlds made by e.g. Daystar Digital would require a different heurisitic. This heuristic comes from linux/netbsd. ok kettenis@ and drahn@
2007-04-02unmapiodev() takes the va as its first argument, not the pa.Mark Kettenis
ok gwk@
2007-03-31Make sure we not to match secondary cpu's on non-MP kernel. I accidentallyMark Kettenis
didn't commit this bit, so it is still ok drahn@, gwk@.
2007-03-31Detect secondary cpu's. Get rid of legacy ofroot code.Mark Kettenis
ok drahn@, gwk@
2007-03-29Enable acx(4) as it is finally working on bigendian boxes. OK deraadt@Claudio Jeker
2007-03-28disk addresses are in hex, not decimal. makes my LSILogic,sas@3/disk@13David Gwynne
correctly match target 19. ok deraadt@
2007-03-27grok LSILogic,sas controllers in bootpath; as well, become aware that (atTheo de Raadt
least) "scsi" controllers give a target/port number, not a kernel sd#. So, translate. We might later want to do the same translation for IDE as well, but perhaps not until after people test a bit more; ok dlg
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-22Move powerpc to __HAVE_MUTEX. With help from drahn@. Tested by nick@, xsa@,Mark Kettenis
deraadt@. "reads right" deraadt@
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-17Make lcsplx() call spllower() instead of duplicating its code.Mark Kettenis
ok miod@
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-01If the kauai is not found in openfirmware, abort the config. ok deraadtDale Rahn
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-28Add Smart Battery Monitor device driver. Provided byAlexander Yurchenko
Aaron Linville <aaron@linville.org> in PR 5398.
2007-02-27previous commit ppc machines. has miod been reading tech-kern too much,Theo de Raadt
and is he trying to emulate them?
2007-02-26Zero rval[1] in setregs.Miod Vallat
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-25Change how we determin if were running on a new world versus old worldGordon Willem Klok
machine for the purposes of printing model information durring boot and the hw.vendor/product sysctls. Turns out the apple didnt use the same format in the early imacs as they did in the latter new world machines resulting in NULL strings as found by drahn@. In this case and all future cases where we dont understand the format the default is to print whats found in the name property without interpertation. ok drahn@
2007-02-19only make this interface available to the kernel for now, discussed withaTheo de Raadt
rt and such; tested and ok miod 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-18If no MBR partitions are found when spoofing a disklabel, try lookingKenneth R Westerback
for a bare FAT12/16/32 filesystem. If one is found, spoof it as 'i'. This enables iPod shuffles and other umass devices that are shipped with a bare FAT32 filesystem to be used as install media. And generally makes things easier for the user just trying to mount some media, e.g. floppies. Does not make it safe to write a disklabel or MBR on such a device! That will still obliterate the FAT filesystem. Help and suggestions from tom@ and deraadt@. Feedback and suggestions for future enhancements from espie@ mickey@ and peter@. ok tom@ deraadt@
2007-02-16Enable malo(4) on macppc. OK mglocker@ deraadt@Claudio Jeker
2007-02-12Cope with the different format of the name property of the root device inGordon Willem Klok
the openfirmware tree as found in old world macs. Also utilize the compatible property to print nice model information in the dmesg and the sysctl hw.vendor/product fields. mainbus0 (root): model Power Macintosh 9500 hw.vendor=Apple Computer, Inc. hw.product=Power Macintosh 9500 Note this is from a 9600, this information will reflect the architecture in this case both the 9500 and 9600 are from tsunami architecture and differ only in the processor daughtercard. Tested by myself and martin@ on old world machines, and by martin@ on a new world. ok martin@, drahn@