summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
AgeCommit message (Collapse)Author
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@
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-02-124.1-betaHenning Brauer
2007-02-07enable arc(4) for Areca RAID Controllers. they work great.David Gwynne
ok drahn@
2007-02-07enable bio(4)David Gwynne
ok drahn@
2007-02-07bus_space_{read,write}_raw_region_[24] take the length of the buffer theyreDavid Gwynne
operating on as bytes, not as the number of words or dwords. ok drahn@ kettenis@
2007-02-06define the bio(4) cdev stuff in conf.h, rather than having a per machineDavid Gwynne
definition. switch amd64 and i386 to the conf.h version, and add it to macppc. original diff ok gwk@ tweaks and ok miod@
2007-02-06Add machine/atomic.h to all architectures and define two operationsArtur Grabowski
right now that are supposed to be atomic with respect to interrupts and SMP: atomic_setbits_int and atomic_clearbits_int. All architectures other than i386 and amd64 get dummy implementations since at first we'll be replacing operations that are done with "a |= bit" and "a &= ~bit" today. More proper implementations will follow kettenis@, miod@ ok
2007-02-05Map the pci space registers, so that the MEMORY enable gets turned on,Dale Rahn
otherwise if openfirmware has not touched the device yet, the kernel faults on the alternate mappings that are created. ok dlg@
2007-02-03Don't spoof an msdosfs partition if it claims to start after the endKenneth R Westerback
of the disk. Fixes the creation of spurious 'i' partitions on new iPod Shuffle. And other devices with no MBR, just a FAT32 filesystem. Pointed out most recently by Stephan A. Rickauer for his sixth generation, clip-on iPod shuffle. Fix tested by Stephan. ok pedro@ tom@ miod@ 'nice' deraadt@
2007-01-21Use addic. %r31,%r31,1 instead of addic. %r31,%r31,%r1.Mark Kettenis
2007-01-17Remove some cruft, SUPPORT_PPC1BUG isnt defined or needed. While here fixGordon Willem Klok
some whitespace nits. No binary change. ok 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-29Change the comment for mbg(4) to "radio clocks" here, too.Marc Balmer
2006-12-23adapt to new two-level sensor api; Constantine A. MureninTheo de Raadt
2006-12-18Activate the mbg(4) Meinberg Funkuhren driver.Marc Balmer
ok deraadt
2006-12-17Remove unnecessary <dev/wscons/wscons_raster.h> inclusion.Miod Vallat