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 --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 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 * $FreeBSD: head/sys/dev/ppbus/ppi.c 111815 2003-03-03 12:15:54Z phk $ |
27 * 28 */ 29#include "opt_ppb_1284.h" 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/module.h> 34#include <sys/bus.h> --- 50 unchanged lines hidden (view full) --- 85static d_open_t ppiopen; 86static d_close_t ppiclose; 87static d_ioctl_t ppiioctl; 88static d_write_t ppiwrite; 89static d_read_t ppiread; 90 91#define CDEV_MAJOR 82 92static struct cdevsw ppi_cdevsw = { |
93 .d_open = ppiopen, 94 .d_close = ppiclose, 95 .d_read = ppiread, 96 .d_write = ppiwrite, 97 .d_ioctl = ppiioctl, 98 .d_name = "ppi", 99 .d_maj = CDEV_MAJOR, |
100}; 101 102#ifdef PERIPH_1284 103 104static void 105ppi_enable_intr(device_t ppidev) 106{ 107 char r; --- 465 unchanged lines hidden --- |