summaryrefslogtreecommitdiff
path: root/sys/arch/socppc
AgeCommit message (Collapse)Author
2009-09-14Deal with the fact that we need to control an external PHY attached to TSEC2Mark Kettenis
through the registers of TSEC1. Makes the first ethernet port on the rb600 usable.
2009-09-12Catch up with recent changes to GENERIC.Mark Kettenis
2009-09-12Compensate for the fact the the FDT uses a different offset for the registersMark Kettenis
than the hardcoded ones we used before. Replace a few magic numbers with #defines while I'm there. Based on suggestions from dms@.
2009-09-12Initialize global pointer to interrupt controller softc earlier such that weMark Kettenis
don't crash if we unmask a preconfigured interrupt.
2009-09-11bump versionDariusz Swiderski
suggested by maja@, ok by kettenis@
2009-09-11add 'machine fdt' command that dumps device tree if presentDariusz Swiderski
ok by kettenis@
2009-09-09Use information from the FDT to set up bus tags and extents.Mark Kettenis
2009-09-07The bright folks who designed the rb600 seem to have left out an RTC. SoMark Kettenis
don't complain if no TOD clock handle has been registered.
2009-09-07Bring support for booting RB600.Dariusz Swiderski
Imported FDT parsing code, implemented wdc_obio driver to support booting of CF cards. If FDT is available initialize console and wdc_obio accordingly and pass it later to the kernel. Unified the code with Thecus boot code, so that we can use one boot image. The whole boot code is now compiled with -msoft-float. Bump version while there. tested on Thecus by maja@ and kettenis@ tested on RB600 by dlg@ and me ok by kettenis@
2009-09-06Attach devices to obio(4) based on information from the flattened deviceMark Kettenis
tree. Since that information is also used for the PCI interrupts, devices in mini-PCI slots should work now as well, at least in the rb600.
2009-09-06Implement OF_getproplen().Mark Kettenis
2009-09-02Attach devices to mainbus(4) based on information from the flattened deviceMark Kettenis
tree.
2009-09-02Add a minimal set of OpenFirmware compatibility interfaces.Mark Kettenis
ok dms@
2009-08-30Link in the flattened device tree for the Thecus N1200 and register it withMark Kettenis
the ftd code upon boot if the firmware didn't provide a device tree.
2009-08-30Flattened device tree blob for the Thecus N1200. The source from which theMark Kettenis
blob is created is included but you'll need the Linux device tree compiler to create it. The following command line was use for the conversion: $ dtc -V 16 -O asm -o n1200_dts.S n1200.dts
2009-08-29typos in commentsMiod Vallat
2009-08-27Harmless sizeof ptr bug in ppc_check_procid(); ok drahn@ kettenis@Miod Vallat
2009-08-27malloc() last two args were swapped, amazing things did not break; ok kettenis@Miod Vallat
2009-08-26Kernel config for the RB600. Temporary until we use the device tree toMark Kettenis
attach all devices.
2009-08-26Hack to get the right interrupt pin for the onboard vge(4) on the RB600.Mark Kettenis
I'll fix this properly when we use the device tree to configure the pci bus.
2009-08-26Build fake bootinfo structure based on the device tree.Mark Kettenis
Inspired by a diff from dms@.
2009-08-26Use comconsfreq instead of hardcoded frequency. Still a bit of a hack, butMark Kettenis
this lets me run the RB600 at 400MHz.
2009-08-26Override comconsfreq and comconsaddr with values from the FTD if provided.Mark Kettenis
2009-08-26Change fdt_find_node() such that it takes a full path as argument.Mark Kettenis
ok dms@
2009-08-25Add missing $OpenBSD$ tag.Mark Kettenis
2009-08-25Initialize flattened device tree support if a tree was passed by the firmware.Mark Kettenis
2009-08-25Save the (potential) address of the flattened device tree. Make sure we don'tMark Kettenis
clobber %r3 before we do so. Based on a diff from dms@
2009-08-25Set up bus tag for mmio. Create extents corresponding to the bus tags andMark Kettenis
pass them along when attaching the pci bus.
2009-08-25Add parser for 'Flattened Device Tree' which was introduced inDariusz Swiderski
bootloaders such as u-boot, which is generally a simplified memory dump of an OpenFirmware device tree. Tested on RB600 by me. This is not used in the code ATM. ok kettenis@
2009-08-24Specify proper size for device softc.Mark Kettenis
2009-08-24Glue to deal with the retarded way the CF slots are wired up on the RB600.Mark Kettenis
2009-08-24Add missing ehci dependency.Mark Kettenis
2009-08-22Constify the what/name parameter of pci_intr_establish().Michael Knudsen
Tested by myself, sthen, oga, kettenis, and jasper. Input from sthen and jasper. ok kettenis (Manpage follows shortly.)
2009-08-18Disable address translation. Necessary on the RB600 where the firmware startsMark Kettenis
running us with address translation enabled. Lifted from a diff from dms@, tested on the Thecus N1200 by me.
2009-08-17fix readdpmelabel() declaration since the definition was changedDariusz Swiderski
from returning char* to int, last char* return removed as well (cleanup after deraadt@ commit, it compiles now) while there initialize hfspartend to some sane value (sync with macppc version) ok kettenis@
2009-08-13Replace the error strings that were being passed around with much simplerTheo de Raadt
errnos. Note that the error strings are being ignored, since we long ago decided to not spam the console, and there is no other nice way to use the errors (without changing the ioctls to pass it back) The errno is now useful, since we can pass b_error from failing IO up, and the drive can decide how to use that ok miod
2009-08-13wire vscsi up to a cdevDavid Gwynne
for claudio@ ok deraadt@
2009-08-13- set DV_IFNET, instead of DV_NULLJasper Lievisse Adriaanse
ok kettenis@
2009-08-11Do not bother initializing bufpages in the md code if the computation isMiod Vallat
exactly the same the mi could will use if bufinit() is invoked with bufpages == 0.
2009-08-11With the SysV memory allocation changes, allocsys() doesn't do anythingMiod Vallat
anymore. Get rid of it completely.
2009-08-09Introduce option DDB_STRUCT. Kernels compiled with this option (except onMiod Vallat
a few arches where toolchain limitations apply) will embed some symbolic information about the various structs used within the kernel, and have new ddb commands allowing struct display and some useful information gathering. Kernel rodata increase varies accross platforms from ~150KB to ~300KB. This option is not enabled by default.
2009-08-09No need to clean genassym{.,o} during `make clean', genassym.sh does thisMiod Vallat
for us.
2009-08-09MCLGETI() will now allocate a mbuf header if it is not provided, thusTheo de Raadt
reducing the amount of splnet/splx dancing required.. especially in the worst case (of m_cldrop) ok dlg kettenis damien
2009-08-09Rototill system V message queues.Bret Lambert
No longer allocate a static amount of memory for messages in MD boot path; message queues, message metadata, and message data now all use dynamic memory, which means that runtime sysctls should now be trivial to implement. Since I'm going to be around all week to fix any breakage, this should probably just go in now.
2009-08-02Dynamic buffer cache support - a re-commit of what was backed outBob Beck
after c2k9 allows buffer cache to be extended and grow/shrink dynamically tested by many, ok oga@, "why not just commit it" deraadt@
2009-07-30Get rid of the obsolet BUS_BARRIER_xxx constants for bus_space_barrier(), onlyMiod Vallat
provide and use BUS_SPACE_BARRIER_xxx.
2009-07-26Make sure all platforms understand the flags argument of bus_space_map() andMiod Vallat
bus_space_alloc() as a bitmask of flags, and not a boolean controlling cacheability; and make sure the three MI BUS_SPACE_MAP_xxx values documented in the manual page are defined on all platforms as well.
2009-06-19They're DPME partitions, not DPMI partitions.Kenneth R Westerback
ok miod@ drahn@
2009-06-15Back out all the buffer cache changes I committed during c2k9. This reverts ↵Bob Beck
three commits: 1) The sysctl allowing bufcachepercent to be changed at boot time. 2) The change moving the buffer cache hash chains to a red-black tree 3) The dynamic buffer cache (Which depended on the earlier too). ok on the backout from marco and todd
2009-06-14Don't mess with the bounds in the lp if *partoffp is non-NULL, since thisTheo de Raadt
indicates that writedisklabel is trying to find the location for writing the label. If the lp is messed with, an invalid checksum is written. done with miod and kettenis, lots of moaning and gnashing of teeth, etc