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)
--- 36 unchanged lines hidden (view full) ---
45 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
46 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
47 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
48 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
49 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
50 * SUCH DAMAGE.
51 *
52 * from: @(#)fd.c 7.4 (Berkeley) 5/25/91
53 * $FreeBSD: head/sys/pc98/cbus/fdc.c 109125 2003-01-12 03:11:21Z nyan $
54 */
55
56#include "opt_fdc.h"
57#include "card.h"
58
59#include <sys/param.h>
60#include <sys/systm.h>
61#include <sys/bio.h>
--- 553 unchanged lines hidden (view full) ---
615fdin_rd(fdc_p fdc)
616{
617 return bus_space_read_1(fdc->portt, fdc->porth, FDIN);
618}
619#endif /* PC98 */
620
621#define CDEV_MAJOR 9
622static struct cdevsw fd_cdevsw = {
623 /* open */ Fdopen,
624 /* close */ fdclose,
625 /* read */ physread,
626 /* write */ physwrite,
627 /* ioctl */ fdioctl,
628 /* poll */ nopoll,
629 /* mmap */ nommap,
630 /* strategy */ fdstrategy,
631 /* name */ "fd",
632 /* maj */ CDEV_MAJOR,
633 /* dump */ nodump,
634 /* psize */ nopsize,
635 /* flags */ D_DISK,
636};
637
638/*
639 * Auxiliary functions. Well, some only. Others are scattered
640 * throughout the entire file.
641 */
642static int
643fdc_err(struct fdc_data *fdc, const char *s)
--- 2706 unchanged lines hidden ---
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)
--- 36 unchanged lines hidden (view full) ---
45 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
46 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
47 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
48 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
49 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
50 * SUCH DAMAGE.
51 *
52 * from: @(#)fd.c 7.4 (Berkeley) 5/25/91
53 * $FreeBSD: head/sys/pc98/cbus/fdc.c 109125 2003-01-12 03:11:21Z nyan $
54 */
55
56#include "opt_fdc.h"
57#include "card.h"
58
59#include <sys/param.h>
60#include <sys/systm.h>
61#include <sys/bio.h>
--- 553 unchanged lines hidden (view full) ---
615fdin_rd(fdc_p fdc)
616{
617 return bus_space_read_1(fdc->portt, fdc->porth, FDIN);
618}
619#endif /* PC98 */
620
621#define CDEV_MAJOR 9
622static struct cdevsw fd_cdevsw = {
623 /* open */ Fdopen,
624 /* close */ fdclose,
625 /* read */ physread,
626 /* write */ physwrite,
627 /* ioctl */ fdioctl,
628 /* poll */ nopoll,
629 /* mmap */ nommap,
630 /* strategy */ fdstrategy,
631 /* name */ "fd",
632 /* maj */ CDEV_MAJOR,
633 /* dump */ nodump,
634 /* psize */ nopsize,
635 /* flags */ D_DISK,
636};
637
638/*
639 * Auxiliary functions. Well, some only. Others are scattered
640 * throughout the entire file.
641 */
642static int
643fdc_err(struct fdc_data *fdc, const char *s)
--- 2706 unchanged lines hidden ---