pps.c (108322) | pps.c (111815) |
---|---|
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 * $FreeBSD: head/sys/dev/ppbus/pps.c 108322 2002-12-27 16:34:12Z rwatson $ | 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 = { | 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, | 65 .d_open = ppsopen, 66 .d_close = ppsclose, 67 .d_ioctl = ppsioctl, 68 .d_name = PPS_NAME, 69 .d_maj = CDEV_MAJOR, |
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 --- | 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 --- |