Deleted Added
full compact
fdc.c (39336) fdc.c (40565)
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 * Copyright (c) 1993, 1994 by

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

38 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
39 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
40 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
41 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
42 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
43 * SUCH DAMAGE.
44 *
45 * 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 * Copyright (c) 1993, 1994 by

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

38 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
39 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
40 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
41 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
42 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
43 * SUCH DAMAGE.
44 *
45 * from: @(#)fd.c 7.4 (Berkeley) 5/25/91
46 * $Id: fd.c,v 1.40 1998/09/15 14:07:08 kato Exp $
46 * $Id: fd.c,v 1.41 1998/09/16 08:08:38 kato Exp $
47 *
48 */
49
50#include "ft.h"
51#if NFT < 1
52#undef NFDC
53#endif
54#include "fd.h"

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

311static timeout_t fd_turnoff;
312static timeout_t fd_motor_on;
313static void fd_turnon(fdu_t);
314static void fdc_reset(fdc_p);
315static int fd_in(fdcu_t, int *);
316static void fdstart(fdcu_t);
317static timeout_t fd_iotimeout;
318static timeout_t fd_pseudointr;
47 *
48 */
49
50#include "ft.h"
51#if NFT < 1
52#undef NFDC
53#endif
54#include "fd.h"

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

311static timeout_t fd_turnoff;
312static timeout_t fd_motor_on;
313static void fd_turnon(fdu_t);
314static void fdc_reset(fdc_p);
315static int fd_in(fdcu_t, int *);
316static void fdstart(fdcu_t);
317static timeout_t fd_iotimeout;
318static timeout_t fd_pseudointr;
319static ointhand2_t fdintr;
319static int fdstate(fdcu_t, fdc_p);
320static int retrier(fdcu_t);
321static int fdformat(dev_t, struct fd_formb *, struct proc *);
322
323static int enable_fifo(fdc_p fdc);
324
325static int fifo_threshold = 8; /* XXX: should be accessible via sysctl */
326

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

718 struct isa_device *fdup;
719 int ic_type = 0;
720#ifdef DEVFS
721 int mynor;
722 int typemynor;
723 int typesize;
724#endif
725
320static int fdstate(fdcu_t, fdc_p);
321static int retrier(fdcu_t);
322static int fdformat(dev_t, struct fd_formb *, struct proc *);
323
324static int enable_fifo(fdc_p fdc);
325
326static int fifo_threshold = 8; /* XXX: should be accessible via sysctl */
327

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

719 struct isa_device *fdup;
720 int ic_type = 0;
721#ifdef DEVFS
722 int mynor;
723 int typemynor;
724 int typesize;
725#endif
726
727 dev->id_ointr = fdintr;
726 fdc->fdcu = fdcu;
727 fdc->flags |= FDC_ATTACHED;
728#ifdef PC98
729 fdc->dmachan = 2;
730 if (fdc->dmachan != dev->id_drq) {
731 dev->id_drq = fdc->dmachan;
732 printf(" [dma is changed to #%d]", fdc->dmachan);
733 }

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

1600 splx(s);
1601}
1602
1603/***********************************************************************\
1604* fdintr *
1605* keep calling the state machine until it returns a 0 *
1606* ALWAYS called at SPLBIO *
1607\***********************************************************************/
728 fdc->fdcu = fdcu;
729 fdc->flags |= FDC_ATTACHED;
730#ifdef PC98
731 fdc->dmachan = 2;
732 if (fdc->dmachan != dev->id_drq) {
733 dev->id_drq = fdc->dmachan;
734 printf(" [dma is changed to #%d]", fdc->dmachan);
735 }

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

1602 splx(s);
1603}
1604
1605/***********************************************************************\
1606* fdintr *
1607* keep calling the state machine until it returns a 0 *
1608* ALWAYS called at SPLBIO *
1609\***********************************************************************/
1608void
1610static void
1609fdintr(fdcu_t fdcu)
1610{
1611 fdc_p fdc = fdc_data + fdcu;
1612#if NFT > 0
1613 fdu_t fdu = fdc->fdu;
1614
1615 if (fdc->flags & FDC_TAPE_BUSY)
1616 (ftintr(fdu));

--- 841 unchanged lines hidden ---
1611fdintr(fdcu_t fdcu)
1612{
1613 fdc_p fdc = fdc_data + fdcu;
1614#if NFT > 0
1615 fdu_t fdu = fdc->fdu;
1616
1617 if (fdc->flags & FDC_TAPE_BUSY)
1618 (ftintr(fdu));

--- 841 unchanged lines hidden ---