1/*- 2 * Copyright (c) 2003 Matthew N. Dodd <winter@jurai.net> 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/i386/bios/smapi.c 111815 2003-03-03 12:15:54Z phk $ |
27 */ 28 29#include <sys/param.h> 30#include <sys/systm.h> 31#include <sys/kernel.h> 32 33#include <sys/module.h> 34#include <sys/bus.h> --- 14 unchanged lines hidden (view full) --- 49 50static d_open_t smapi_open; 51static d_close_t smapi_close; 52static d_ioctl_t smapi_ioctl; 53 54#define CDEV_MAJOR 183 55 56static struct cdevsw smapi_cdevsw = { |
57 .d_open = smapi_open, 58 .d_close = smapi_close, 59 .d_ioctl = smapi_ioctl, 60 .d_name = "smapi", 61 .d_maj = CDEV_MAJOR, 62 .d_flags = D_MEM, |
63}; 64 65static int 66smapi_open (dev, oflags, devtype, td) 67 dev_t dev; 68 int oflags; 69 int devtype; 70 d_thread_t * td; --- 80 unchanged lines hidden --- |