Deleted Added
sdiff udiff text old ( 119418 ) new ( 126076 )
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 *
10 * This driver implements a draft-mogul-pps-api-02.txt PPS source.
11 *
12 * The input pin is pin#10
13 * The echo output pin is pin#14
14 *
15 */
16
17#include <sys/cdefs.h>
18__FBSDID("$FreeBSD: head/sys/dev/ppbus/pps.c 119418 2003-08-24 17:55:58Z obrien $");
19
20#include <sys/param.h>
21#include <sys/kernel.h>
22#include <sys/systm.h>
23#include <sys/module.h>
24#include <sys/bus.h>
25#include <sys/conf.h>
26#include <sys/timepps.h>

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

57 ((struct pps_data *)device_get_softc(dev))
58
59static devclass_t pps_devclass;
60
61static d_open_t ppsopen;
62static d_close_t ppsclose;
63static d_ioctl_t ppsioctl;
64
65#define CDEV_MAJOR 89
66static struct cdevsw pps_cdevsw = {
67 .d_open = ppsopen,
68 .d_close = ppsclose,
69 .d_ioctl = ppsioctl,
70 .d_name = PPS_NAME,
71 .d_maj = CDEV_MAJOR,
72};
73
74static void
75ppsidentify(driver_t *driver, device_t parent)
76{
77
78 BUS_ADD_CHILD(parent, 0, PPS_NAME, -1);
79}

--- 235 unchanged lines hidden ---