Deleted Added
full compact
snp.c (111748) snp.c (111815)
1/*
2 * Copyright (c) 1995 Ugen J.S.Antsilevich
3 *
4 * Redistribution and use in source forms, with and without modification,
5 * are permitted provided that this entire comment appears intact.
6 *
7 * Redistribution in binary form may occur without any restrictions.
8 * Obviously, it would be nice if you gave credit where credit is due
9 * but requiring it would be too onerous.
10 *
11 * This software is provided ``AS IS'' without any warranties of any kind.
12 *
13 * Snoop stuff.
14 *
1/*
2 * Copyright (c) 1995 Ugen J.S.Antsilevich
3 *
4 * Redistribution and use in source forms, with and without modification,
5 * are permitted provided that this entire comment appears intact.
6 *
7 * Redistribution in binary form may occur without any restrictions.
8 * Obviously, it would be nice if you gave credit where credit is due
9 * but requiring it would be too onerous.
10 *
11 * This software is provided ``AS IS'' without any warranties of any kind.
12 *
13 * Snoop stuff.
14 *
15 * $FreeBSD: head/sys/dev/snp/snp.c 111748 2003-03-02 16:54:40Z des $
15 * $FreeBSD: head/sys/dev/snp/snp.c 111815 2003-03-03 12:15:54Z phk $
16 */
17
18#include <sys/param.h>
19#include <sys/systm.h>
20#include <sys/filio.h>
21#include <sys/malloc.h>
22#include <sys/tty.h>
23#include <sys/conf.h>

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

33static d_close_t snpclose;
34static d_read_t snpread;
35static d_write_t snpwrite;
36static d_ioctl_t snpioctl;
37static d_poll_t snppoll;
38
39#define CDEV_MAJOR 53
40static struct cdevsw snp_cdevsw = {
16 */
17
18#include <sys/param.h>
19#include <sys/systm.h>
20#include <sys/filio.h>
21#include <sys/malloc.h>
22#include <sys/tty.h>
23#include <sys/conf.h>

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

33static d_close_t snpclose;
34static d_read_t snpread;
35static d_write_t snpwrite;
36static d_ioctl_t snpioctl;
37static d_poll_t snppoll;
38
39#define CDEV_MAJOR 53
40static struct cdevsw snp_cdevsw = {
41 /* open */ snpopen,
42 /* close */ snpclose,
43 /* read */ snpread,
44 /* write */ snpwrite,
45 /* ioctl */ snpioctl,
46 /* poll */ snppoll,
47 /* mmap */ nommap,
48 /* strategy */ nostrategy,
49 /* name */ "snp",
50 /* maj */ CDEV_MAJOR,
51 /* dump */ nodump,
52 /* psize */ nopsize,
53 /* flags */ 0,
41 .d_open = snpopen,
42 .d_close = snpclose,
43 .d_read = snpread,
44 .d_write = snpwrite,
45 .d_ioctl = snpioctl,
46 .d_poll = snppoll,
47 .d_name = "snp",
48 .d_maj = CDEV_MAJOR,
54};
55
56static struct linesw snpdisc = {
57 ttyopen, snplclose, ttread, snplwrite,
58 l_nullioctl, ttyinput, ttstart, ttymodem
59};
60
61/*

--- 602 unchanged lines hidden ---
49};
50
51static struct linesw snpdisc = {
52 ttyopen, snplclose, ttread, snplwrite,
53 l_nullioctl, ttyinput, ttstart, ttymodem
54};
55
56/*

--- 602 unchanged lines hidden ---