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/dev/fdc/fdc.c 109116 2003-01-11 20:10:41Z joerg $
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>
--- 410 unchanged lines hidden (view full) ---
472static u_int8_t
473fdin_rd(fdc_p fdc)
474{
475 return bus_space_read_1(fdc->portt, fdc->porth, FDIN);
476}
477
478#define CDEV_MAJOR 9
479static struct cdevsw fd_cdevsw = {
480 /* open */ Fdopen,
481 /* close */ fdclose,
482 /* read */ physread,
483 /* write */ physwrite,
484 /* ioctl */ fdioctl,
485 /* poll */ nopoll,
486 /* mmap */ nommap,
487 /* strategy */ fdstrategy,
488 /* name */ "fd",
489 /* maj */ CDEV_MAJOR,
490 /* dump */ nodump,
491 /* psize */ nopsize,
492 /* flags */ D_DISK,
493};
494
495/*
496 * Auxiliary functions. Well, some only. Others are scattered
497 * throughout the entire file.
498 */
499static int
500fdc_err(struct fdc_data *fdc, const char *s)
--- 2297 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/dev/fdc/fdc.c 109116 2003-01-11 20:10:41Z joerg $
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>
--- 410 unchanged lines hidden (view full) ---
472static u_int8_t
473fdin_rd(fdc_p fdc)
474{
475 return bus_space_read_1(fdc->portt, fdc->porth, FDIN);
476}
477
478#define CDEV_MAJOR 9
479static struct cdevsw fd_cdevsw = {
480 /* open */ Fdopen,
481 /* close */ fdclose,
482 /* read */ physread,
483 /* write */ physwrite,
484 /* ioctl */ fdioctl,
485 /* poll */ nopoll,
486 /* mmap */ nommap,
487 /* strategy */ fdstrategy,
488 /* name */ "fd",
489 /* maj */ CDEV_MAJOR,
490 /* dump */ nodump,
491 /* psize */ nopsize,
492 /* flags */ D_DISK,
493};
494
495/*
496 * Auxiliary functions. Well, some only. Others are scattered
497 * throughout the entire file.
498 */
499static int
500fdc_err(struct fdc_data *fdc, const char *s)
--- 2297 unchanged lines hidden ---