1/*- 2 * Copyright (c) 2000 Michael Smith 3 * Copyright (c) 2000 BSDi 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 10 unchanged lines hidden (view full) --- 19 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 20 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * |
27 * $FreeBSD: head/sys/dev/twe/twe_freebsd.c 111815 2003-03-03 12:15:54Z phk $ |
28 */ 29 30/* 31 * FreeBSD-specific code. 32 */ 33 34#include <sys/param.h> 35#include <sys/cons.h> --- 30 unchanged lines hidden (view full) --- 66 67static d_open_t twe_open; 68static d_close_t twe_close; 69static d_ioctl_t twe_ioctl_wrapper; 70 71#define TWE_CDEV_MAJOR 146 72 73static struct cdevsw twe_cdevsw = { |
74 .d_open = twe_open, 75 .d_close = twe_close, 76 .d_ioctl = twe_ioctl_wrapper, 77 .d_name = "twe", 78 .d_maj = TWE_CDEV_MAJOR, |
79}; 80 81/******************************************************************************** 82 * Accept an open operation on the control device. 83 */ 84static int 85twe_open(dev_t dev, int flags, int fmt, d_thread_t *td) 86{ --- 892 unchanged lines hidden --- |