summaryrefslogtreecommitdiffstats
path: root/sys/dev/ofw
Commit message (Collapse)AuthorAgeFilesLines
* Basic OpenFirmware disk driver. It will attach to anything in OpenFirmwarebenno2002-04-151-0/+261
| | | | | | | that declares itself to be a disk, which may be the wrong thing to do in the long term but it works well enough to attach to emulated disks in the PowerPC simulator in gdb now that they have the proper device_type property.
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-011-1/+1
| | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@
* Move the make_dev call from the cn_probe to a sysinit that runs atjake2002-01-091-1/+9
| | | | SI_SUB_DRIVERS. cnprobe is too early.
* 1. Lower the poll timeout for the ofw console driver from hz / 50 to hz / 4.jake2002-01-011-2/+2
| | | | | | | | | | This gives a bit of a sluggish console, but it prevents the console from getting stuck if we poll too fast, as well as other badness on certain machines. 2. Fix a test for != 0 that should have been > 0. Noticed by: Jamey Wood <Jamey.Wood@Sun.COM> and myself Submitted by: tmm (2)
* 1. Add ofw_pci.h with definitions for the OpenFirmware PCI bindingstmm2001-11-183-0/+143
| | | | | | | | 2. Add OF_getprop_alloc(), a helper function that will malloc() a sufficient amount of memory and then retrieve a property value into it. Approved by: benno Obtained from: NetBSD (1)
* KSE Milestone 2julian2001-09-121-5/+5
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Make the openfirmware functions work on 64 bit architectures by usingjake2001-07-312-237/+241
| | | | | | | a standard cell_t type for the fields of all argument structs. Also make ihandle_t and phandle_t unsigned to avoid sign extension problems. Approved by: benno
* Quiet uninitialized variable warning (also a bug).jake2001-07-311-0/+2
|
* Bracket this file in the usual #ifndef/#define/#endif stuff to preventbenno2001-06-271-0/+5
| | | | multiple inclusion.
* Garbage collect some debug code.benno2001-06-271-11/+0
|
* OpenFirmware kernel support, as used by the PowerPC and hopefully otherbenno2001-06-163-7/+357
| | | | | | | | | ports later on. This includes the basic MI interface routines as well as a console driver. The MD code is kept in the MD directories. Reviewed by: obrien
* OpenFirmware/PowerPC loader, part 2.benno2000-11-102-9/+23
| | | | | | | | | | As of this patchset, the loader builds (under NetBSD/macppc), boots, interacts and talks to BOOTP/NFS servers. (main.c was moved from boot/ofw/libofw to boot/ofw/common but has no revision history) Reviewed by: obrien
* "Ok, my loader's now up to putting up a prompt. It probes disks partiallyobrien2000-10-162-0/+852
but can't boot from them yet." Thanks to Stephane Potvin for the some of the code in this set. Submitted by: Benno Rice <benno@jeamland.net>
OpenPOWER on IntegriCloud