Deleted Added
full compact
pps.c (46589) pps.c (47625)
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@FreeBSD.org> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 *
1/*
2 * ----------------------------------------------------------------------------
3 * "THE BEER-WARE LICENSE" (Revision 42):
4 * <phk@FreeBSD.org> wrote this file. As long as you retain this notice you
5 * can do whatever you want with this stuff. If we meet some day, and you think
6 * this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
7 * ----------------------------------------------------------------------------
8 *
9 * $Id: pps.c,v 1.16 1999/04/25 08:58:10 phk Exp $
9 * $Id: pps.c,v 1.17 1999/05/06 22:03:14 peter Exp $
10 *
11 * This driver implements a draft-mogul-pps-api-02.txt PPS source.
12 *
13 * The input pin is pin#10
14 * The echo output pin is pin#14
15 *
16 */
17

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

55
56DATA_SET(ppbdriver_set, ppsdriver);
57
58static d_open_t ppsopen;
59static d_close_t ppsclose;
60static d_ioctl_t ppsioctl;
61
62#define CDEV_MAJOR 89
10 *
11 * This driver implements a draft-mogul-pps-api-02.txt PPS source.
12 *
13 * The input pin is pin#10
14 * The echo output pin is pin#14
15 *
16 */
17

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

55
56DATA_SET(ppbdriver_set, ppsdriver);
57
58static d_open_t ppsopen;
59static d_close_t ppsclose;
60static d_ioctl_t ppsioctl;
61
62#define CDEV_MAJOR 89
63static struct cdevsw pps_cdevsw =
64 { ppsopen, ppsclose, noread, nowrite,
65 ppsioctl, nullstop, nullreset, nodevtotty,
66 seltrue, nommap, nostrat, PPS_NAME,
67 NULL, -1 };
63static struct cdevsw pps_cdevsw = {
64 /* open */ ppsopen,
65 /* close */ ppsclose,
66 /* read */ noread,
67 /* write */ nowrite,
68 /* ioctl */ ppsioctl,
69 /* stop */ nostop,
70 /* reset */ noreset,
71 /* devtotty */ nodevtotty,
72 /* poll */ nopoll,
73 /* mmap */ nommap,
74 /* strategy */ nostrategy,
75 /* name */ PPS_NAME,
76 /* parms */ noparms,
77 /* maj */ CDEV_MAJOR,
78 /* dump */ nodump,
79 /* psize */ nopsize,
80 /* flags */ 0,
81 /* maxio */ 0,
82 /* bmaj */ -1
83};
68
69
70static struct ppb_device *
71ppsprobe(struct ppb_data *ppb)
72{
73 struct pps_data *sc;
74
75 sc = (struct pps_data *) malloc(sizeof(struct pps_data),

--- 106 unchanged lines hidden ---
84
85
86static struct ppb_device *
87ppsprobe(struct ppb_data *ppb)
88{
89 struct pps_data *sc;
90
91 sc = (struct pps_data *) malloc(sizeof(struct pps_data),

--- 106 unchanged lines hidden ---