fdc.c (e7e0afea3bc97dd1a9df4726f64b0d805e76fa58) fdc.c (0e195446b70cdb3130378505b24603031c1f3ce0)
1/*#define DEBUG 1*/
2/*-
3 * Copyright (c) 1990 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Don Ahn.
8 *

--- 21 unchanged lines hidden (view full) ---

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: @(#)fd.c 7.4 (Berkeley) 5/25/91
1/*#define DEBUG 1*/
2/*-
3 * Copyright (c) 1990 The Regents of the University of California.
4 * All rights reserved.
5 *
6 * This code is derived from software contributed to Berkeley by
7 * Don Ahn.
8 *

--- 21 unchanged lines hidden (view full) ---

30 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35 * SUCH DAMAGE.
36 *
37 * from: @(#)fd.c 7.4 (Berkeley) 5/25/91
38 * $Id: fd.c,v 1.23 1994/03/02 18:34:41 ache Exp $
38 * $Id: fd.c,v 1.24 1994/03/08 16:25:29 nate Exp $
39 *
40 */
41
42#include "ft.h"
43#if NFT < 1
44#undef NFDC
45#endif
46#include "fd.h"

--- 361 unchanged lines hidden (view full) ---

408 bp->b_resid = bp->b_bcount;
409 } else {
410 bp->b_error = ENOSPC;
411 bp->b_flags |= B_ERROR;
412 }
413 goto bad;
414 }
415 bp->b_cylin = blknum / (fd->ft->sectrac * fd->ft->heads);
39 *
40 */
41
42#include "ft.h"
43#if NFT < 1
44#undef NFDC
45#endif
46#include "fd.h"

--- 361 unchanged lines hidden (view full) ---

408 bp->b_resid = bp->b_bcount;
409 } else {
410 bp->b_error = ENOSPC;
411 bp->b_flags |= B_ERROR;
412 }
413 goto bad;
414 }
415 bp->b_cylin = blknum / (fd->ft->sectrac * fd->ft->heads);
416 bp->b_pblkno = bp->b_blkno;
416 dp = &(fdc->head);
417 s = splbio();
418 disksort(dp, bp);
419 untimeout(fd_turnoff, (caddr_t)fdu); /* a good idea */
420 fdstart(fdcu);
421 splx(s);
422 return;
423

--- 831 unchanged lines hidden ---
417 dp = &(fdc->head);
418 s = splbio();
419 disksort(dp, bp);
420 untimeout(fd_turnoff, (caddr_t)fdu); /* a good idea */
421 fdstart(fdcu);
422 splx(s);
423 return;
424

--- 831 unchanged lines hidden ---