summaryrefslogtreecommitdiff
path: root/sys/arch/macppc
AgeCommit message (Collapse)Author
2006-12-08scsibus_attach_args not scsi_attach_args for saa inThordur I. Bjornsson
mesh_attach(). ok dlg@
2006-12-06Enable mc and mesh in RAMDISK as well, as pointed out by brad@ its prettyGordon Willem Klok
useless to not do so.
2006-12-06Enable mesh and mc device drivers in GENERIC, booting on old world macs isGordon Willem Klok
pointless without these two. ok martin@, deraadt@ durring h2k6
2006-12-05Implement an alternative workaround for the extent lies out of region panicGordon Willem Klok
on old world macppc machines, if the compat property of the device is bandit skip the pci_addr_fixup() call. This acomplishes what the changes in rev 1.33 that were reverted attempted to do without breaking currently supported machines. A positive side effect to this change is also working PCI cards as well as onboard devices. ok drahn@
2006-12-05Import fixcoff from NetBSD and make some changes to boot.mac Makefile andGordon Willem Klok
ofwboot including loosing some meanigless defines and repurposing XCOFF_GLUE to my own ends. These changes make it possible to boot the OpenBSD kernel on at least the Power Macintosh 9500 and 9600. No binary change in stripped ofwboot. ok drahn@, martin@
2006-11-29Add a new member to struct wsemuldisplaydev_attach_args, for a frame bufferMiod Vallat
driver to be able to tell how many wscons screens to attach to it, instead of WSDISPLAY_DEFAULTSCREENS which is a global setting.
2006-11-28give scsi controllers a real attach args to fill in when attaching scsibus.David Gwynne
ok miod@ marco@ deraadt@
2006-11-28fwscsi doesnt exist, so dont have a commented entry for it left around toDavid Gwynne
confuse people.
2006-11-27For the G5 processor setperf function, don't force perflevel to 50 or 100Gordon Willem Klok
perserve the illusion of a much finer granularity of performance control. ok kettenis@
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-11-26Activate pwdog(4) after successful testing on i386 and macppc.Marc Balmer
ok deraadt
2006-11-07Add xmphy(4) here too.Mark Kettenis
ok brad@
2006-11-07Add xmphy(4).Mark Kettenis
ok drahn@, brad@
2006-10-29Remove redundant if (msg) {} block around invocations ofKenneth R Westerback
iso_disklabelspoof() and udf_disklabelspoof(). Use (msg && iso_disklabelspoof()) instead. Makes more arch's textually consistant. No functional change.
2006-10-28We don't currently write a disklabel into an OpenBSD ('A6') DOS MBRKenneth R Westerback
extended partition except on alpha, hppa, hppa64 and mips64. So don't spoof extended partitions as 'a' and try to read a disklabel from them. Make all archs consistant. When we can boot from extended partitions we can change to reading and writing disklabels from them. This means the first OpenBSD ('A6') extended partition will now be ignored during spoofing, just as subsequent ones have always been. Feedback from tom@, weingart@ and deraadt@.
2006-10-27Partially revert 1.33 the range calculation change for banditGordon Willem Klok
unfourtunately breaks some machines found the hard way by xsa@ and mbalmer@. ok mbalmer@
2006-10-23Change bandit as found in many old world macs to use configuration type 1.Gordon Willem Klok
Alter range calculation to handle bandits dual non contiguous PCI memory spaces. Finally fix a bug whereby if the "AAPL,Interrupts" property is defined the variable intr isn't assigned a value and garbage may be written to the PCI interrupt register. tested by jolan, pedro, drahn and myself, and in snaps for a week. ok drahn, deraadt
2006-10-21Don't try to spoof 0 length DOS MBR/EBR partitions. By skippingKenneth R Westerback
partitions with 0 in the length field we don't need to test for and skip partitions that are all zeros. Eliminating that code allows elimination of a local pointer. "0 length partitions are definately dead" deraadt@
2006-10-21Some KNF cleanup.Kenneth R Westerback
De-register. Move declaration to top of function for DOS MBR processing. Indent nit in macppc. No functional change.
2006-10-21We have a pointer (pp), so use it in the DOSPTYP_UNUSED case ratherKenneth R Westerback
than lp->d_partitions[8+n++]. All other cases already use the pointer. No functional change.
2006-10-20Try again with local variable to avoid alignment issues.Kenneth R Westerback
"The dosparts member of cpu_disklabel was not used for any persistant data. Eliminate it, and just use the data being read in while processing MBR and EBR records. Should be no functional change. ok weingart@ deraadt@"
2006-10-20fix $OpenBSD$ tag.Xavier Santolaria
2006-10-18back out disksubr changes ... since they violate strict alignment onTheo de Raadt
some architectures (kaboom); that will be fixed in the next iteration hopefully!
2006-10-17The dosparts member of cpu_disklabel was not used for any persistantKenneth R Westerback
data. Eliminate it, and just use the data being read in while processing MBR and EBR records. Should be no functional change. ok weingart@ deraadt@
2006-10-12Don't try to boot from a NetBSD MBR partition when no OpenBSD MBRKenneth R Westerback
partition is found. Change error message to 'no OpenBSD partition'.
2006-10-12Since we no longer look in FreeBSD or NetBSD partitions for theKenneth R Westerback
disklabel, we shouldn't write the disklabel in such partitions either. Brings amd64, arm, i386, landisk, macppc, mvmeppc (which roll their own MBR search in writedisklabel()) into line with alpha, hppa, hppa64, mips64 (which use readdoslabel() in both reading and writing the disklabel). If all goes well, soon everyone will be using readdoslabel().
2006-10-10Typo in a comment. ok kettenis.Marc Balmer
2006-10-10Don't spoof a Free/NetBSD MBR partition as the 'a' partition in aKenneth R Westerback
disklabel. Fixes 'double spoofing' of these partitions as both 'a' and something in the 'i' to 'p' range. OpenBSD changed its MBR partition type to 'A6' eight years ago. As a backward compatibility measure NetBSD and FreeBSD MBR partitions were still spoofed as 'a' partitions when no OpenBSD partition could be found. This bit of backward compatibility is no longer required. 'we can get rid of it' deraadt@
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.
2006-10-06Remove lingering debug printf. Don't announce that mace_get was called.Gordon Willem Klok
2006-10-05Add if_mc.c a driver for the AMD AM79C940 (MACE) ethernet chip found onGordon Willem Klok
board old world macintosh systems to macppc. From netbsd, mac68k and macppc specific tweaks modeled on if_bm.c. ok brad@
2006-10-04More tidying up after bad144. Remove references in comments andKenneth R Westerback
don't include dkbad.h when nothing in it is used. Missed arm/include/disklabel.h first time around.
2006-10-04Zap bad144 bad sector info in disklabels. Sparsely used if at all forKenneth R Westerback
a few obsolete and easily replaced disk models. And didn't work anyway according to Bob, who has tried. ok beck@
2006-09-27Add Maxim/Dallas DS2490 USB 1-Wire adapter driver.Alexander Yurchenko
2006-09-27Add files.onewire to all our USB archs, it will be used soon.Alexander Yurchenko
2006-09-26Make mesh compile again, it also works now too, from NetBSD with a lotGordon Willem Klok
of tweeks. Leave it commented out in GENERIC and files.macppc for now. ok kettenis@, brad@
2006-09-18Extend the .text and .data segments to 64MB. This allows programs withMarco Peereboom
large .text segments, like xmame, to run. ok drahn
2006-09-16Revert new check for DOS partitions running past d_secperunit (e.g.Kenneth R Westerback
r1.54 of i386/disksubr.c). The check incorrectly handled extended partitions. Possibly a symptom of a deeper problem with extended partition offsets that will be addressed post-4.0. Problem reported/fix tested by A. Velichinsky, cause diagnosed by otto@. ok pedro@ mickey@ miod@ deraadt@
2006-08-20When spoofing an MSDOS disklabel, don't create partitions with a finalKenneth R Westerback
block past d_secperunit. Fixes devices where bogus partitions with a starting offset > d_secperunit were created. e.g. floppies formatted by Caldera DR-DOS. ok pedro@
2006-08-18add ucycom@uhidev and ucom@ucycom on the usb machines (docs are forthcoming)Jason Wright
2006-08-17enable msk(4) in a few more places.Brad Smith
2006-08-17Check d_secpercyl in all readdisklable() functions, and have all ofKenneth R Westerback
them return 'invalid geometry' when d_secpercyl == 0. While there move the check to a consistant location (after the check of d_secperunit) and use a consistant idiom (i.e. some readdisklabel()'s have no 'done' label). prodded by thib@ after a bad macppc experience. ok deraadt@
2006-08-14Enable uslcom(4) and uark(4) on all the USB capable archs.Jonathan Gray
2006-08-11Use d_secperunit rather than 0x1fffffff as the default value forKenneth R Westerback
RAW_PART's p_size. Since d_secperunit is initialized to 0x1fffffff if not specified there should be no need to use the magic number again. And if d_secperunit was specified then that value should be used instead of the magic number. This was already being done for hp300, luna88k, mac68k, mvme68k, mvme88k. Should be a no-op.
2006-08-11add rum(4) on arches where ural(4) is enabled.Damien Bergamini
rum(4) has been tested on i386 by niallo@ and me and on sparc64 by Pablo Mendez Hernandez so I assume it is endian safe and 64bit clean.
2006-07-31puc@cardbus (only added (commented out) to whom has puc@pci enabled)Michael Shalayeff
tested on puc@pci by fkr and meself on the cardbus. still needs a bit more work but generally works. deraadt@ ok and some input from miod@
2006-07-27Compile all kernels with -Wstack-usage-larger-than-2047, now that allMiod Vallat
offending code has been taken out and shot. ok deraadt@
2006-07-26crank to 4.0-betaTheo de Raadt
2006-07-14change pcibr_flags back to 0 (turn off verbose mode). If anyone has aTheo de Raadt
problem with a new kernel in the next while, please revert this specific commit and mail the results to kettenis, drahn, and me.
2006-07-13Switch to a three-phase pci resource fixup:Mark Kettenis
1. Reserve resources for enabled devices. 2. Reserve resources for disabled devices. 3. Allocate resources. This way we no longer need to enable/disable devices during fixup. Based on an earlier patch by drahn@. ok deraadt@, drahn@