fdc.c (887ba12fc514e1a4679509705b78aeed5b111f52) | fdc.c (2186cd9e8d708d8dbddecbfa7652a0c0706f3c68) |
---|---|
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) --- 1921 unchanged lines hidden (view full) --- 1930 fd->skip += fdblk; 1931 if (!format && fd->skip < bp->b_bcount - bp->b_resid) { 1932 /* set up next transfer */ 1933 fdc->state = DOSEEK; 1934 } else { 1935 /* ALL DONE */ 1936 fd->skip = 0; 1937 fdc->bp = NULL; | 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) --- 1921 unchanged lines hidden (view full) --- 1930 fd->skip += fdblk; 1931 if (!format && fd->skip < bp->b_bcount - bp->b_resid) { 1932 /* set up next transfer */ 1933 fdc->state = DOSEEK; 1934 } else { 1935 /* ALL DONE */ 1936 fd->skip = 0; 1937 fdc->bp = NULL; |
1938 /* Tell devstat we have finished with the transaction */ 1939 devstat_end_transaction(&fd->device_stats, 1940 bp->b_bcount - bp->b_resid, 1941 DEVSTAT_TAG_NONE, 1942 (bp->b_flags & B_READ) ? 1943 DEVSTAT_READ : DEVSTAT_WRITE); | 1938 devstat_end_transaction_buf(&fd->device_stats, bp); |
1944 biodone(bp); 1945 fdc->fd = (fd_p) 0; 1946 fdc->fdu = -1; 1947 fdc->state = FINDWORK; 1948 } 1949 return (1); 1950 case RESETCTLR: 1951 fdc_reset(fdc); --- 363 unchanged lines hidden --- | 1939 biodone(bp); 1940 fdc->fd = (fd_p) 0; 1941 fdc->fdu = -1; 1942 fdc->state = FINDWORK; 1943 } 1944 return (1); 1945 case RESETCTLR: 1946 fdc_reset(fdc); --- 363 unchanged lines hidden --- |