fdc.c (566643e39ed0d4d3251a7212073c1e3f79ca95a2) fdc.c (f86e40770aaa37ad17c44dc9a6842d4a4afaa04d)
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.141 1999/05/08 18:13:14 peter Exp $
50 * $Id: fd.c,v 1.142 1999/05/08 21:59:24 dfr Exp $
51 *
52 */
53
54#include "fd.h"
55#include "opt_devfs.h"
56#include "opt_fdc.h"
57
58#if NFDC > 0

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

2037 if (fdc->flags & FDC_NEEDS_RESET) {
2038 fdc->state = RESETCTLR;
2039 fdc->flags &= ~FDC_NEEDS_RESET;
2040 } else {
2041 /*
2042 * If all motors were off, then the controller was
2043 * reset, so it has lost track of the current
2044 * cylinder. Recalibrate to handle this case.
51 *
52 */
53
54#include "fd.h"
55#include "opt_devfs.h"
56#include "opt_fdc.h"
57
58#if NFDC > 0

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

2037 if (fdc->flags & FDC_NEEDS_RESET) {
2038 fdc->state = RESETCTLR;
2039 fdc->flags &= ~FDC_NEEDS_RESET;
2040 } else {
2041 /*
2042 * If all motors were off, then the controller was
2043 * reset, so it has lost track of the current
2044 * cylinder. Recalibrate to handle this case.
2045 * But first, discard the results of the reset.
2045 */
2046 */
2046 fdc->state = STARTRECAL;
2047 fdc->state = RESETCOMPLETE;
2047 }
2048 return (1); /* will return immediatly */
2049 default:
2050 device_print_prettyname(fdc->fdc_dev);
2051 printf("unexpected FD int->");
2052 if (fd_read_status(fdc, fd->fdsu) == 0)
2053 printf("FDC status :%x %x %x %x %x %x %x ",
2054 fdc->status[0],

--- 325 unchanged lines hidden ---
2048 }
2049 return (1); /* will return immediatly */
2050 default:
2051 device_print_prettyname(fdc->fdc_dev);
2052 printf("unexpected FD int->");
2053 if (fd_read_status(fdc, fd->fdsu) == 0)
2054 printf("FDC status :%x %x %x %x %x %x %x ",
2055 fdc->status[0],

--- 325 unchanged lines hidden ---