smb.c (103588) | smb.c (111815) |
---|---|
1/*- 2 * Copyright (c) 1998, 2001 Nicolas Souchu 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 * | 1/*- 2 * Copyright (c) 1998, 2001 Nicolas Souchu 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/smbus/smb.c 103588 2002-09-19 03:25:46Z peter $ | 26 * $FreeBSD: head/sys/dev/smbus/smb.c 111815 2003-03-03 12:15:54Z phk $ |
27 * 28 */ 29#include <sys/param.h> 30#include <sys/kernel.h> 31#include <sys/systm.h> 32#include <sys/module.h> 33#include <sys/bus.h> 34#include <sys/conf.h> --- 49 unchanged lines hidden (view full) --- 84static d_open_t smbopen; 85static d_close_t smbclose; 86static d_write_t smbwrite; 87static d_read_t smbread; 88static d_ioctl_t smbioctl; 89 90#define CDEV_MAJOR 106 91static struct cdevsw smb_cdevsw = { | 27 * 28 */ 29#include <sys/param.h> 30#include <sys/kernel.h> 31#include <sys/systm.h> 32#include <sys/module.h> 33#include <sys/bus.h> 34#include <sys/conf.h> --- 49 unchanged lines hidden (view full) --- 84static d_open_t smbopen; 85static d_close_t smbclose; 86static d_write_t smbwrite; 87static d_read_t smbread; 88static d_ioctl_t smbioctl; 89 90#define CDEV_MAJOR 106 91static struct cdevsw smb_cdevsw = { |
92 /* open */ smbopen, 93 /* close */ smbclose, 94 /* read */ smbread, 95 /* write */ smbwrite, 96 /* ioctl */ smbioctl, 97 /* poll */ nopoll, 98 /* mmap */ nommap, 99 /* strategy */ nostrategy, 100 /* name */ "smb", 101 /* maj */ CDEV_MAJOR, 102 /* dump */ nodump, 103 /* psize */ nopsize, 104 /* flags */ 0, | 92 .d_open = smbopen, 93 .d_close = smbclose, 94 .d_read = smbread, 95 .d_write = smbwrite, 96 .d_ioctl = smbioctl, 97 .d_name = "smb", 98 .d_maj = CDEV_MAJOR, |
105}; 106 107static void 108smb_identify(driver_t *driver, device_t parent) 109{ 110 BUS_ADD_CHILD(parent, 0, "smb", 0); 111} 112 --- 172 unchanged lines hidden --- | 99}; 100 101static void 102smb_identify(driver_t *driver, device_t parent) 103{ 104 BUS_ADD_CHILD(parent, 0, "smb", 0); 105} 106 --- 172 unchanged lines hidden --- |