Deleted Added
full compact
fdc.c (109116) fdc.c (111815)
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
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 $
53 * $FreeBSD: head/sys/dev/fdc/fdc.c 111815 2003-03-03 12:15:54Z phk $
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 = {
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,
480 .d_open = Fdopen,
481 .d_close = fdclose,
482 .d_read = physread,
483 .d_write = physwrite,
484 .d_ioctl = fdioctl,
485 .d_strategy = fdstrategy,
486 .d_name = "fd",
487 .d_maj = CDEV_MAJOR,
488 .d_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 ---
489};
490
491/*
492 * Auxiliary functions. Well, some only. Others are scattered
493 * throughout the entire file.
494 */
495static int
496fdc_err(struct fdc_data *fdc, const char *s)

--- 2297 unchanged lines hidden ---