summaryrefslogtreecommitdiff
path: root/sys/dev/ccd
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tagrelease/3.0.0_cvscvs2svn1999-01-211-1/+1
| | | | | | | 'RELENG_3_0_0_RELEASE'. This commit was manufactured to restore the state of the 3.0-RELEASE image. Releases prior to 5.3-RELEASE are omitting the secure/ and crypto/ subdirs.
* Update system to new device statistics code.Justin T. Gibbs1998-09-151-48/+18
| | | | | | | | Submitted by: "Kenneth D. Merry" <ken@plutotech.com> mike@smith.net.au (Mike Smith) Notes: svn path=/head/; revision=39228
* Make struct buf->b_offset reflect the real byte offset which gotSøren Schmidt1998-08-191-1/+2
| | | | | | | | in via the uio struct. This enables device drivers to use != DEV_BSIZE blocking on devices with wierd sector/block sizes (ie CDROM's). Notes: svn path=/head/; revision=38438
* There is no such thing any more as "struct bdevsw".Julian Elischer1998-07-041-8/+22
| | | | | | | | | | | | | | | | | | | | | There is only cdevsw (which should be renamed in a later edit to deventry or something). cdevsw contains the union of what were in both bdevsw an cdevsw entries. The bdevsw[] table stiff exists and is a second pointer to the cdevsw entry of the device. it's major is in d_bmaj rather than d_maj. some cleanup still to happen (e.g. dsopen now gets two pointers to the same cdevsw struct instead of one to a bdevsw and one to a cdevsw). rawread()/rawwrite() went away as part of this though it's not strictly the same patch, just that it involves all the same lines in the drivers. cdroms no longer have write() entries (they did have rawwrite (?)). tapes no longer have support for bdev operations. Reviewed by: Eivind Eklund and Mike Smith Changes suggested by eivind. Notes: svn path=/head/; revision=37389
* VOP_STRATEGY grows an (struct vnode *) argumentJulian Elischer1998-07-041-3/+3
| | | | | | | | | as the value in b_vp is often not really what you want. (and needs to be frobbed). more cleanups will follow this. Reviewed by: Bruce Evans <bde@freebsd.org> Notes: svn path=/head/; revision=37384
* This commit fixes various 64bit portability problems required forDoug Rabson1998-06-071-2/+2
| | | | | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time. Notes: svn path=/head/; revision=36735
* Slightly more correct initialisation of the new buf struct for soft-updates.Julian Elischer1998-03-091-1/+3
| | | | | | | | Submitted by: Chris Csanady <ccsanady@friley585.res.iastate.edu> Suggested by: Kirk McKusick Notes: svn path=/head/; revision=34437
* Properly bzero() structures after they're returned from getccdbuf().Jordan K. Hubbard1998-02-221-1/+3
| | | | | | | Submitted by: Chris Csanady <ccsanady@friley585.res.iastate.edu> Notes: svn path=/head/; revision=33740
* Revert part of my previous patch - I don't see the *need*Jordan K. Hubbard1998-02-151-3/+1
| | | | | | | to call splbio() from within an interrupt handler here. :-) Notes: svn path=/head/; revision=33365
* missing spl() call and off by one error in the handling of the partitions.Jordan K. Hubbard1998-02-151-2/+3
| | | | | | | | Submitted by: Chris Csanady <ccsanady@friley585.res.iastate.edu> Obtained from: OpenBSD Notes: svn path=/head/; revision=33363
* Remove unused devfs include. (Julian or Satoshi might want to add properEivind Eklund1998-01-311-4/+1
| | | | | | | | DEVFS support here; just including the header file doesn't do any good, and would make this depend on opt_devfs.h) Notes: svn path=/head/; revision=32921
* There is no ccdread() nor ccdwrite().Poul-Henning Kamp1997-11-181-3/+1
| | | | Notes: svn path=/head/; revision=31270
* Statizice.Poul-Henning Kamp1997-10-241-21/+24
| | | | Notes: svn path=/head/; revision=30688
* Remove a #ifndef __FreeBSD__ chunk.Poul-Henning Kamp1997-10-111-5/+1
| | | | Notes: svn path=/head/; revision=30294
* Removed unused #includes.Bruce Evans1997-06-141-5/+1
| | | | Notes: svn path=/head/; revision=26640
* Make ccd use the maxsecsize sector size as denominator, thisSøren Schmidt1997-05-011-2/+2
| | | | | | | fixes ccd on != 512byte devices.. Notes: svn path=/head/; revision=25360
* Don't include <sys/ioctl.h> in the kernel. Stage 1: don't includeBruce Evans1997-03-241-2/+1
| | | | | | | | it when it is not used. In most cases, the reasons for including it went away when the special ioctl headers became self-sufficient. Notes: svn path=/head/; revision=24203
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notPeter Wemm1997-02-221-1/+1
| | | | | | | ready for it yet. Notes: svn path=/head/; revision=22975
* Make ccd compile again after the Lite2 merge.Mike Pritchard1997-02-101-4/+4
| | | | | | | VOP_UNLOCK was being called with the wrong number of arguments. Notes: svn path=/head/; revision=22538
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Fix CCD for bounced devices.John Dyson1997-01-101-1/+3
| | | | Notes: svn path=/head/; revision=21470
* Remove devconf, it never grew up to be of any use.Poul-Henning Kamp1996-09-061-2/+1
| | | | Notes: svn path=/head/; revision=18084
* Fail when odd number of disks are specified with mirror flag. MemorySatoshi Asami1996-07-241-28/+36
| | | | | | | | | leak fixes. Miscellaneous cleanup. Partially submitted by: Matt White <mwhite+@CMU.EDU> Notes: svn path=/head/; revision=17275
* Make a "DWIM" function for adding [bc]devsw entries for bdev drivers.Poul-Henning Kamp1996-07-231-14/+3
| | | | | | | | | | | | Saves about 280 butes of source per driver, 56 bytes in object size and another 56 bytes moves from data to bss. No functional change intended nor expected. GENERIC should be about one k smaller now :-) Notes: svn path=/head/; revision=17264
* Substitute raw{read|write} for ccd{read|write}Poul-Henning Kamp1996-07-211-59/+2
| | | | Notes: svn path=/head/; revision=17237
* Clean up -Wunused warnings.Gary Palmer1996-06-121-10/+7
| | | | | | | Reviewed by: bde Notes: svn path=/head/; revision=16322
* Add #ifndef/#endif around the "#define CCD_OFFSET 16", so you can overrideSatoshi Asami1996-05-131-1/+3
| | | | | | | | | it in your kernel config file. Requested (in essence) by: phk Notes: svn path=/head/; revision=15765
* Leave 16 lines in front of each component partition. It's now safe toSatoshi Asami1996-05-131-3/+10
| | | | | | | | | | use sd87a or sd237e even if they start at the beginning of the slice. You can also use sd85c if you prefer, although you need to change the type field in the disklabel to "4.2BSD". Notes: svn path=/head/; revision=15763
* Add missing "int" to static var.Satoshi Asami1996-04-241-2/+2
| | | | Notes: svn path=/head/; revision=15369
* Change how mirror writes are handled, according to the discussion on theSatoshi Asami1996-03-261-9/+39
| | | | | | | | | | | | | | | | | | | | | mailing list. When initiating a write, ccdbuffer() returns two "struct ccdbuf *"s linked together by the cb_mirror field. "cb_pflags & CCDPF_MIRROR_DONE" is set to 0 on both of them. When a component returns to ccdiodone(), it checks if "cb_pflags & CCDPF_MIRROR_DONE" is set or not. If not, it sets the partner's flag and returns. If it is, it means its partner has already returned, so it will go to the regular cleanup (which is in the fallthrough code). There should be no performance or functionality changes unless the higher-level scsi driver does something with the resid value. The change is purely aesthetical and prepares us for the parity implementation. Notes: svn path=/head/; revision=14821
* Ported to 2.2-current. Uses [bc]devsw_add(), and is also now a properSatoshi Asami1996-03-211-69/+66
| | | | | | | | | pseudo-device. Doesn't use devfs correctly yet. Notes: svn path=/head/; revision=14730
* Fix one warning and fix one bug found while looking at another warning (butSatoshi Asami1996-01-311-1/+9
| | | | | | | | | | | | caused by a different reason): . #ifndef __FreeBSD__ around check for negative size, FreeBSD size_t is unsigned . Disable mirror/parity if interleave size is 0 (i.e., serial concatenation). Notes: svn path=/head/; revision=13784
* Mirror support. When CCDF_MIRROR is set:Satoshi Asami1996-01-311-15/+41
| | | | | | | | | | | | | | | | (1) The reads are always done from the first n/2 disks. (2) Each write is done twice, to the "data" disk (in the first half) and the "mirror" disk (in the second half). ccdbuffer() now takes an extra argument (struct ccdbuf **) and stores the pointer to ccdbuf in there. In case of a mirrored write, it allocates and stores two pointers. The "residual" is also doubled for mirrored writes so that ccdiodone() can correctly tell when all the writes are done. Notes: svn path=/head/; revision=13775
* Prepare for adding mirroring. Check for flags (mirror forces uniform),Satoshi Asami1996-01-301-6/+25
| | | | | | | | reduce the size to half, etc. Right now it only uses the first n/2 disks for both read and write. Notes: svn path=/head/; revision=13764
* Prepare to add support for parity. Report the post-parity size,Satoshi Asami1996-01-021-4/+20
| | | | | | | allocate space around parity blocks. Notes: svn path=/head/; revision=13173
* Added $Id$.Satoshi Asami1995-12-281-0/+2
| | | | Notes: svn path=/head/; revision=13070
* Changes to make it work on FreeBSD-2.1.Satoshi Asami1995-12-271-36/+113
| | | | Notes: svn path=/head/; revision=13046
* ccd.c and ccd.4 from NetBSD-current circa 12/25/95.Satoshi Asami1995-12-271-0/+1428
Notes: svn path=/vendor/NetBSD/dist/; revision=13041