Deleted Added
sdiff udiff text old ( 108322 ) new ( 111815 )
full compact
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 111815 2003-03-03 12:15:54Z phk $
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 .d_open = ppsopen,
66 .d_close = ppsclose,
67 .d_ioctl = ppsioctl,
68 .d_name = PPS_NAME,
69 .d_maj = CDEV_MAJOR,
70};
71
72static void
73ppsidentify(driver_t *driver, device_t parent)
74{
75
76 BUS_ADD_CHILD(parent, 0, PPS_NAME, -1);
77}

--- 235 unchanged lines hidden ---