Deleted Added
full compact
digi.c (131095) digi.c (131373)
1/*-
2 * Copyright (c) 2001 Brian Somers <brian@Awfulhak.org>
3 * based on work by Slawa Olhovchenkov
4 * John Prince <johnp@knight-trosoft.com>
5 * Eric Hernes
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
1/*-
2 * Copyright (c) 2001 Brian Somers <brian@Awfulhak.org>
3 * based on work by Slawa Olhovchenkov
4 * John Prince <johnp@knight-trosoft.com>
5 * Eric Hernes
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: head/sys/dev/digi/digi.c 131095 2004-06-25 10:54:05Z phk $
29 * $FreeBSD: head/sys/dev/digi/digi.c 131373 2004-06-30 21:38:08Z phk $
30 */
31
32/*-
33 * TODO:
34 * Figure out what the con bios stuff is supposed to do
35 * Test with *LOTS* more cards - I only have a PCI8r and an ISA Xem.
36 */
37

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

74
75static d_open_t digiopen;
76static d_close_t digiclose;
77static d_read_t digiread;
78static d_write_t digiwrite;
79static d_ioctl_t digiioctl;
80
81static void digistop(struct tty *tp, int rw);
30 */
31
32/*-
33 * TODO:
34 * Figure out what the con bios stuff is supposed to do
35 * Test with *LOTS* more cards - I only have a PCI8r and an ISA Xem.
36 */
37

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

74
75static d_open_t digiopen;
76static d_close_t digiclose;
77static d_read_t digiread;
78static d_write_t digiwrite;
79static d_ioctl_t digiioctl;
80
81static void digistop(struct tty *tp, int rw);
82static int digibreak(struct tty *tp, int brk);
82static void digibreak(struct tty *tp, int brk);
83static int digimodem(struct tty *tp, int sigon, int sigoff);
84static void digi_poll(void *ptr);
85static void digi_freemoduledata(struct digi_softc *);
86static void fepcmd(struct digi_p *port, int cmd, int op, int ncmds);
87static void digistart(struct tty *tp);
88static int digiparam(struct tty *tp, struct termios *t);
89static void digihardclose(struct digi_p *port);
90static void digi_intr(void *);

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

1303 default:
1304 splx(s);
1305 return (ENOTTY);
1306 }
1307 splx(s);
1308 return (0);
1309}
1310
83static int digimodem(struct tty *tp, int sigon, int sigoff);
84static void digi_poll(void *ptr);
85static void digi_freemoduledata(struct digi_softc *);
86static void fepcmd(struct digi_p *port, int cmd, int op, int ncmds);
87static void digistart(struct tty *tp);
88static int digiparam(struct tty *tp, struct termios *t);
89static void digihardclose(struct digi_p *port);
90static void digi_intr(void *);

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

1303 default:
1304 splx(s);
1305 return (ENOTTY);
1306 }
1307 splx(s);
1308 return (0);
1309}
1310
1311static int
1311static void
1312digibreak(struct tty *tp, int brk)
1313{
1314 int mynor;
1315 int unit;
1316 int pnum;
1317 struct digi_softc *sc;
1318 struct digi_p *port;
1319

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

1327 port = &sc->ports[pnum];
1328
1329 /*
1330 * now it sends 400 millisecond break because I don't know
1331 * how to send an infinite break
1332 */
1333 if (brk)
1334 fepcmd_w(port, SENDBREAK, 400, 10);
1312digibreak(struct tty *tp, int brk)
1313{
1314 int mynor;
1315 int unit;
1316 int pnum;
1317 struct digi_softc *sc;
1318 struct digi_p *port;
1319

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

1327 port = &sc->ports[pnum];
1328
1329 /*
1330 * now it sends 400 millisecond break because I don't know
1331 * how to send an infinite break
1332 */
1333 if (brk)
1334 fepcmd_w(port, SENDBREAK, 400, 10);
1335 return (0);
1336}
1337
1338static int
1339digiparam(struct tty *tp, struct termios *t)
1340{
1341 int mynor;
1342 int unit;
1343 int pnum;

--- 595 unchanged lines hidden ---
1335}
1336
1337static int
1338digiparam(struct tty *tp, struct termios *t)
1339{
1340 int mynor;
1341 int unit;
1342 int pnum;

--- 595 unchanged lines hidden ---