pps.c (119418) | pps.c (126076) |
---|---|
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> | 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 $"); | 18__FBSDID("$FreeBSD: head/sys/dev/ppbus/pps.c 126076 2004-02-21 19:42:58Z phk $"); |
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 | 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, | 65static struct cdevsw pps_cdevsw = { 66 .d_open = ppsopen, 67 .d_close = ppsclose, 68 .d_ioctl = ppsioctl, 69 .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 --- | 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 --- |