Deleted Added
full compact
fdc.c (125851) fdc.c (126076)
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)

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

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 */
54
55#include <sys/cdefs.h>
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)

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

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 */
54
55#include <sys/cdefs.h>
56__FBSDID("$FreeBSD: head/sys/dev/fdc/fdc.c 125851 2004-02-15 20:30:22Z njl $");
56__FBSDID("$FreeBSD: head/sys/dev/fdc/fdc.c 126076 2004-02-21 19:42:58Z phk $");
57
58#include "opt_fdc.h"
59#include "card.h"
60
61#include <sys/param.h>
62#include <sys/systm.h>
63#include <sys/bio.h>
64#include <sys/bus.h>

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

476#endif
477
478static u_int8_t
479fdin_rd(fdc_p fdc)
480{
481 return bus_space_read_1(fdc->portt, fdc->porth, FDIN);
482}
483
57
58#include "opt_fdc.h"
59#include "card.h"
60
61#include <sys/param.h>
62#include <sys/systm.h>
63#include <sys/bio.h>
64#include <sys/bus.h>

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

476#endif
477
478static u_int8_t
479fdin_rd(fdc_p fdc)
480{
481 return bus_space_read_1(fdc->portt, fdc->porth, FDIN);
482}
483
484#define CDEV_MAJOR 9
485static struct cdevsw fd_cdevsw = {
486 .d_open = fdopen,
487 .d_close = fdclose,
488 .d_read = physread,
489 .d_write = physwrite,
490 .d_ioctl = fdioctl,
491 .d_strategy = fdstrategy,
492 .d_name = "fd",
484static struct cdevsw fd_cdevsw = {
485 .d_open = fdopen,
486 .d_close = fdclose,
487 .d_read = physread,
488 .d_write = physwrite,
489 .d_ioctl = fdioctl,
490 .d_strategy = fdstrategy,
491 .d_name = "fd",
493 .d_maj = CDEV_MAJOR,
494 .d_flags = D_DISK,
495};
496
497/*
498 * Auxiliary functions. Well, some only. Others are scattered
499 * throughout the entire file.
500 */
501static int

--- 2348 unchanged lines hidden ---
492 .d_flags = D_DISK,
493};
494
495/*
496 * Auxiliary functions. Well, some only. Others are scattered
497 * throughout the entire file.
498 */
499static int

--- 2348 unchanged lines hidden ---