summaryrefslogtreecommitdiffstats
path: root/sys/dev/ofw/ofw_disk.c
Commit message (Collapse)AuthorAgeFilesLines
* Start each of the license/copyright comments with /*-, minor shuffle of linesimp2005-01-061-1/+1
|
* Don't probe for a disk unless explicitly enabled by a tunable.grehan2004-12-281-0/+6
| | | | | | | | | This allows boot to proceed on a real system until the issue of calling back into certain OpenFirmware calls (e.g. finddevice) in thread context is understood. (this commit only affects psim users, of which I think I am the only one...)
* GEOMify the OFW disk driver. Code taken unashamedly fromgrehan2004-12-211-147/+126
| | | | the preload case in dev/md/md.c.
* Instead of "OpenFirmware", "openfirmware", etc. use the official spellingmarius2004-08-161-3/+3
| | | | | | "Open Firmware" from IEEE 1275 and OpenFirmware.org (no pun intended). Ok'ed by: tmm
* - set resid correctly so that a failed seek (e.g. end of file) returnsgrehan2004-06-251-1/+3
| | | | | correctly - included required <sys/module.h>
* Change the disk(9) API in order to make device removal more robust.phk2004-02-181-10/+13
| | | | | | | | | | | | | | | | | | | | | | | | Previously the "struct disk" were owned by the device driver and this gave us problems when the device disappared and the users of that device were not immediately disappearing. Now the struct disk is allocate with a new call, disk_alloc() and owned by geom_disk and just abandonned by the device driver when disk_create() is called. Unfortunately, this results in a ton of "s/\./->/" changes to device drivers. Since I'm doing the sweep anyway, a couple of other API improvements have been carried out at the same time: The Giant awareness flag has been flipped from DISKFLAG_NOGIANT to DISKFLAG_NEEDSGIANT A version number have been added to disk_create() so that we can detect, report and ignore binary drivers with old ABI in the future. Manual page update to follow shortly.
* - add an identify method, since the disk device used to be pickedgrehan2004-02-041-3/+29
| | | | | | up in the recursive OpenFirmware node walk. Rely on the psim config file to have a "ofwdisk" device alias - minor white space nits
* - The last change conflicted with disks on a live system, as opposed togrehan2003-12-151-3/+9
| | | | | | | the psim simulator. Look for the "file" property which only exists on psim disks, and as a bonus, print the contents of this at boot-time, which is the host file being used for the disk image. - remove remaining warnings.
* - accept device_type of "block", which is how psim/gdb6.0 definesgrehan2003-12-121-7/+2
| | | | | disks. continue to accept "disk" for psim/gdb5.x users. - remove unneeded ofwd_identify
* Use bio_offset instead of bio_blknophk2003-10-181-2/+1
|
* Use __FBSDID().obrien2003-08-241-1/+3
| | | | Also some minor style cleanups.
* <sys/disk.h> -> <geom/geom_disk.h>des2003-04-031-1/+1
|
* Centralize the devstat handling for all GEOM disk device driversphk2003-03-081-1/+1
| | | | | | | | in geom_disk.c. As a side effect this makes a lot of #include <sys/devicestat.h> lines not needed and some biofinish() calls can be reduced to biodone() again.
* NO_GEOM cleanup:phk2003-02-231-91/+27
| | | | | | Move to "struct disk *" centered API. Fix some minor nits.
* Add missing semicolongrehan2002-09-201-1/+1
|
* (This commit touches about 15 disk device drivers in a very consistentphk2002-09-201-13/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and predictable way, and I apologize if I have gotten it wrong anywhere, getting prior review on a patch like this is not feasible, considering the number of people involved and hardware availability etc.) If struct disklabel is the messenger: kill the messenger. Inside struct disk we had a struct disklabel which disk drivers used to communicate certain metrics to the disklayer above (GEOM or the disk mini-layer). This commit changes this communication to use four explicit fields instead. Amongst the benefits is that the fields do not get overwritten by wrong or bogus on-disk disklabels. Once that is clear, <sys/disk.h> which is included in the drivers no longer need to pull <sys/disklabel.h> and <sys/diskslice.h> in, the few places that needs them, have gotten explicit #includes for them. The disklabel inside struct disk is now only for internal use in the disk mini-layer, so instead of embedding it, we malloc it as we need it. This concludes (modulus any mistakes) the series of disklabel related commits. I belive it all amounts to a NOP for all the rest of you :-) Sponsored by: DARPA & NAI Labs.
* 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.
OpenPOWER on IntegriCloud