Deleted Added
full compact
ppi.c (119418) ppi.c (126076)
1/*-
2 * Copyright (c) 1997, 1998, 1999 Nicolas Souchu, Michael Smith
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 *
27 */
28
29#include <sys/cdefs.h>
1/*-
2 * Copyright (c) 1997, 1998, 1999 Nicolas Souchu, Michael Smith
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

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

22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 *
27 */
28
29#include <sys/cdefs.h>
30__FBSDID("$FreeBSD: head/sys/dev/ppbus/ppi.c 119418 2003-08-24 17:55:58Z obrien $");
30__FBSDID("$FreeBSD: head/sys/dev/ppbus/ppi.c 126076 2004-02-21 19:42:58Z phk $");
31#include "opt_ppb_1284.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/module.h>
36#include <sys/bus.h>
37#include <sys/conf.h>
38#include <sys/kernel.h>

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

85static devclass_t ppi_devclass;
86
87static d_open_t ppiopen;
88static d_close_t ppiclose;
89static d_ioctl_t ppiioctl;
90static d_write_t ppiwrite;
91static d_read_t ppiread;
92
31#include "opt_ppb_1284.h"
32
33#include <sys/param.h>
34#include <sys/systm.h>
35#include <sys/module.h>
36#include <sys/bus.h>
37#include <sys/conf.h>
38#include <sys/kernel.h>

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

85static devclass_t ppi_devclass;
86
87static d_open_t ppiopen;
88static d_close_t ppiclose;
89static d_ioctl_t ppiioctl;
90static d_write_t ppiwrite;
91static d_read_t ppiread;
92
93#define CDEV_MAJOR 82
94static struct cdevsw ppi_cdevsw = {
95 .d_open = ppiopen,
96 .d_close = ppiclose,
97 .d_read = ppiread,
98 .d_write = ppiwrite,
99 .d_ioctl = ppiioctl,
100 .d_name = "ppi",
93static struct cdevsw ppi_cdevsw = {
94 .d_open = ppiopen,
95 .d_close = ppiclose,
96 .d_read = ppiread,
97 .d_write = ppiwrite,
98 .d_ioctl = ppiioctl,
99 .d_name = "ppi",
101 .d_maj = CDEV_MAJOR,
102};
103
104#ifdef PERIPH_1284
105
106static void
107ppi_enable_intr(device_t ppidev)
108{
109 char r;

--- 465 unchanged lines hidden ---
100};
101
102#ifdef PERIPH_1284
103
104static void
105ppi_enable_intr(device_t ppidev)
106{
107 char r;

--- 465 unchanged lines hidden ---