summaryrefslogtreecommitdiff
path: root/sys/arch
AgeCommit message (Collapse)Author
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-26more bloody const crap mk brokeTheo de Raadt
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-25In bmac_init(), invoke bmac_transmit_packet() with the correct packet sizeMiod Vallat
(sizeof(ptr) vs sizeof(*ptr) bug). ok krw@
2009-08-25Legacy-free PC hardware do not have a real PS/2 keyboard controller, butMiod Vallat
rather have the USB HCI emulate it during boot, while legacy mode is enabled. This causes pckbd0 to attach as the console device, but is lost as soon as the USB HCI driver attaches. The disappearance of the emulated PS/2 controller can however be detected in pckbc(4) - which is supposed to attach after [eou]hci(4), with the controller refusing to ack commands and replying ``please resend'' instead. In that case, the kernel will now no longer attach pckbd, and will perform a new console input device selection, allowing the (real) usb keyboard to become the console. Thanks to krw@ for countless tests on legacy-free hardware; also tested on more conventional hardware by naddy@ and I. Only amd64 and i386 platforms are affected by this change.
2009-08-25iha(4) works on amd64; tested by downsjTheo de Raadt
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-24On O2, the bootpath may omit the pci(0) component and start with scsi(); inMiod Vallat
that case, fake the pci(0) part in order to match correctly the onboard scsi controller. While there, make sure device_register() returns early for devices attached to root; without both these changes, an O2 lacking pci(0) in its bootpath would dereference a NULL pointer when softraid would attach. Problem found the hard way by Jukka Taimisto (jtaimisto, iki dot fi), thanks for the report!
2009-08-24Add definitions for 4 additionl BAT registers, found on some newer PowerPCDariusz Swiderski
chips, like MPC8xxx family. 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-24- fix format strings for values that are daddr64_tJasper Lievisse Adriaanse
ok otto@, agreed by deraadt@
2009-08-23Missed 'const' change in definition of i80321_intr_establish().Kenneth R Westerback
Allows armish GENERIC to compile again.
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-19<machine/macros.h> would provide inline version of a few of the functionsMiod Vallat
traditionnaly found in libkern. However, the memcmp() flavour would behave as bcmp() with only two possible return values: zero and positive non-zero. This broke the name cache RB trees which now rely upon proper memcmp() semantics(negative value, zero, or positive value). Just give up on these macros and provide the same code as libc, in libkern. As a side effect, this no longer uses the cmpc3 instruction, which is not implemented and requires (slow) kernel emulation, on the original uVax.
2009-08-19- missing \nJasper Lievisse Adriaanse
ok miod@
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-18Blind partial support for IOC4 chip, found on IO8 and IO9 base I/O boards onMiod Vallat
Origin 350 and Tezro systems. While this chip provides serial ports, an ATAPI interface and a PS/2 keyboard and mouse interface, this code currently only attempts to support the serial ports.
2009-08-18Replace a few hardcoded numbers from the interrupt register with properMiod Vallat
commented symbolic constants.
2009-08-18Blind support for SGI PIC PCI-X controller found on Origin 350 and TezroMiod Vallat
systems. PIC was supposed to be mostly XBridge compatible, but a silicon bug prevents it from working correctly if 32 bit register writes are used, so the xbridge(4) code now needs to issue 64 bit writes. In order to make this a bit more transparent, rebase all widget registers to a 8 byte boundary, and provide a few inline accessors which will do the right thing if you want 32 bit writes. Tested to not cause regressions on Octane, Origin 200 and Fuel; covering Bridge < 4, Bridge >= 4 and XBridge flavours.
2009-08-18On dual interrupt IOC3 designs, disestablish the ethernet interrupt if noMiod Vallat
ethernet driver attaches; prevents interrupt storms on Octane caused by the way ARCS initializes the chip, when not booting from the network.
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-17Use ANSI function declarations. No binary change.Joel Sing
ok deraadt@
2009-08-17By popular demand and peer pressure, check-in work in progress work to supportMiod Vallat
the Yeelong Lemote mips-based netbook. Kernel bits only for now, needs polishing; most of this work done during h2k9 last month, although the porting effort started earlier this year.
2009-08-16Update to cope with new readdisklabel() return value.Miod Vallat
2009-08-15use static for inline so we get the desired behaviour with compilersJonathan Gray
using c99 inline semantics.
2009-08-14enable lisa(4); tested by Marco Knol; ok deraadtConstantine A. Murenin
2009-08-13repair vscsi lineTheo de Raadt
2009-08-13toby do you even care enough to try to do right?Theo de Raadt
2009-08-13typoMiod Vallat
2009-08-13rewrite the promisc mode / multicast handling code for the sparc hme(4)Peter Hessler
driver and is based off of the MI hme(4) driver. tested with ping6 -w and tcpdump from brad OK naddy@, sthen@
2009-08-13In pmap_pte_flush flush the icache before the dcache, as is done elsewhere.Theo de Raadt
We cannot find gaurantees in the documents that any icache filling from the cache is terminated by a icache flush or idtlb invalidation, so this is probably safer, and unlikely to be unsafer. ok kettenis
2009-08-13Cleanup differences between i386 and amd64.Mark 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-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-13- remove the ef(4) chunk, it's unused now and the ioc ethernet driverJasper Lievisse Adriaanse
won't be called ef(4) anyway. ok miod@
2009-08-13i forgot a commentDavid Gwynne
2009-08-13wire vscsi up to a cdevDavid Gwynne
for claudio@ ok deraadt@
2009-08-13Start using a linking script for this kernel. ThisTobias Weingartner
should help in future using large pages for text/etc. Also, since we do not use the .eh frame stuff, we can nuke them, saving some bytes... Ok kettenis@, "more control over linking is a good thing, but I can't comment further" art@.
2009-08-13A new(er) mtx_enter_try().Tobias Weingartner
Ok oga@, "the time is now" deraadt@.
2009-08-13Make the i386 APIC code closer to the amd64 version. Many whitespace fixes,Mark Kettenis
some additional code. ok toby@, oga@