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 * $FreeBSD: head/sys/dev/ppbus/pps.c 108322 2002-12-27 16:34:12Z rwatson $
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
--- 39 unchanged lines hidden (view full) ---
57static devclass_t pps_devclass;
58
59static d_open_t ppsopen;
60static d_close_t ppsclose;
61static d_ioctl_t ppsioctl;
62
63#define CDEV_MAJOR 89
64static struct cdevsw pps_cdevsw = {
65 /* open */ ppsopen,
66 /* close */ ppsclose,
67 /* read */ noread,
68 /* write */ nowrite,
69 /* ioctl */ ppsioctl,
70 /* poll */ nopoll,
71 /* mmap */ nommap,
72 /* strategy */ nostrategy,
73 /* name */ PPS_NAME,
74 /* maj */ CDEV_MAJOR,
75 /* dump */ nodump,
76 /* psize */ nopsize,
77 /* flags */ 0,
78};
79
80static void
81ppsidentify(driver_t *driver, device_t parent)
82{
83
84 BUS_ADD_CHILD(parent, 0, PPS_NAME, -1);
85}
--- 235 unchanged lines hidden ---
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 * $FreeBSD: head/sys/dev/ppbus/pps.c 108322 2002-12-27 16:34:12Z rwatson $
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
--- 39 unchanged lines hidden (view full) ---
57static devclass_t pps_devclass;
58
59static d_open_t ppsopen;
60static d_close_t ppsclose;
61static d_ioctl_t ppsioctl;
62
63#define CDEV_MAJOR 89
64static struct cdevsw pps_cdevsw = {
65 /* open */ ppsopen,
66 /* close */ ppsclose,
67 /* read */ noread,
68 /* write */ nowrite,
69 /* ioctl */ ppsioctl,
70 /* poll */ nopoll,
71 /* mmap */ nommap,
72 /* strategy */ nostrategy,
73 /* name */ PPS_NAME,
74 /* maj */ CDEV_MAJOR,
75 /* dump */ nodump,
76 /* psize */ nopsize,
77 /* flags */ 0,
78};
79
80static void
81ppsidentify(driver_t *driver, device_t parent)
82{
83
84 BUS_ADD_CHILD(parent, 0, PPS_NAME, -1);
85}
--- 235 unchanged lines hidden ---