fdc.c (46333) | fdc.c (46580) |
---|---|
1/* 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Don Ahn. 7 * 8 * Libretto PCMCIA floppy support by David Horwitt (dhorwitt@ucsd.edu) --- 33 unchanged lines hidden (view full) --- 42 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 43 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 44 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 45 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 46 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 47 * SUCH DAMAGE. 48 * 49 * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 | 1/* 2 * Copyright (c) 1990 The Regents of the University of California. 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Don Ahn. 7 * 8 * Libretto PCMCIA floppy support by David Horwitt (dhorwitt@ucsd.edu) --- 33 unchanged lines hidden (view full) --- 42 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 43 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 44 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 45 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 46 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 47 * SUCH DAMAGE. 48 * 49 * from: @(#)fd.c 7.4 (Berkeley) 5/25/91 |
50 * $Id: fd.c,v 1.136 1999/04/27 11:14:56 phk Exp $ | 50 * $Id: fd.c,v 1.137 1999/05/02 20:38:08 peter Exp $ |
51 * 52 */ 53 54#include "fd.h" 55#include "opt_devfs.h" 56#include "opt_fdc.h" 57 58#if NFDC > 0 --- 2130 unchanged lines hidden (view full) --- 2189 if(bp == 0) 2190 return ENOBUFS; 2191 /* 2192 * keep the process from being swapped 2193 */ 2194 PHOLD(p); 2195 bzero((void *)bp, sizeof(struct buf)); 2196 bp->b_flags = B_BUSY | B_PHYS | B_FORMAT; | 51 * 52 */ 53 54#include "fd.h" 55#include "opt_devfs.h" 56#include "opt_fdc.h" 57 58#if NFDC > 0 --- 2130 unchanged lines hidden (view full) --- 2189 if(bp == 0) 2190 return ENOBUFS; 2191 /* 2192 * keep the process from being swapped 2193 */ 2194 PHOLD(p); 2195 bzero((void *)bp, sizeof(struct buf)); 2196 bp->b_flags = B_BUSY | B_PHYS | B_FORMAT; |
2197 bp->b_proc = p; | |
2198 2199 /* 2200 * calculate a fake blkno, so fdstrategy() would initiate a 2201 * seek to the requested cylinder 2202 */ 2203 bp->b_blkno = (finfo->cyl * (fd->ft->sectrac * fd->ft->heads) 2204 + finfo->head * fd->ft->sectrac) * fdblk / DEV_BSIZE; 2205 --- 198 unchanged lines hidden --- | 2197 2198 /* 2199 * calculate a fake blkno, so fdstrategy() would initiate a 2200 * seek to the requested cylinder 2201 */ 2202 bp->b_blkno = (finfo->cyl * (fd->ft->sectrac * fd->ft->heads) 2203 + finfo->head * fd->ft->sectrac) * fdblk / DEV_BSIZE; 2204 --- 198 unchanged lines hidden --- |