1/*-
2 * Copyright (c) 2000, 2001 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/mly/mly.c 111751 2003-03-02 18:49:26Z phk $
28 */
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/malloc.h>
33#include <sys/kernel.h>
34#include <sys/bus.h>
35#include <sys/conf.h>
--- 112 unchanged lines hidden (view full) ---
148};
149
150static devclass_t mly_devclass;
151DRIVER_MODULE(mly, pci, mly_pci_driver, mly_devclass, 0, 0);
152
153#define MLY_CDEV_MAJOR 158
154
155static struct cdevsw mly_cdevsw = {
156 /* open */ mly_user_open,
157 /* close */ mly_user_close,
158 /* read */ noread,
159 /* write */ nowrite,
160 /* ioctl */ mly_user_ioctl,
161 /* poll */ nopoll,
162 /* mmap */ nommap,
163 /* strategy */ nostrategy,
164 /* name */ "mly",
165 /* maj */ MLY_CDEV_MAJOR,
166 /* dump */ nodump,
167 /* psize */ nopsize,
168 /* flags */ 0
169};
170
171/********************************************************************************
172 ********************************************************************************
173 Device Interface
174 ********************************************************************************
175 ********************************************************************************/
176
--- 2818 unchanged lines hidden ---
2 * Copyright (c) 2000, 2001 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/mly/mly.c 111751 2003-03-02 18:49:26Z phk $
28 */
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/malloc.h>
33#include <sys/kernel.h>
34#include <sys/bus.h>
35#include <sys/conf.h>
--- 112 unchanged lines hidden (view full) ---
148};
149
150static devclass_t mly_devclass;
151DRIVER_MODULE(mly, pci, mly_pci_driver, mly_devclass, 0, 0);
152
153#define MLY_CDEV_MAJOR 158
154
155static struct cdevsw mly_cdevsw = {
156 /* open */ mly_user_open,
157 /* close */ mly_user_close,
158 /* read */ noread,
159 /* write */ nowrite,
160 /* ioctl */ mly_user_ioctl,
161 /* poll */ nopoll,
162 /* mmap */ nommap,
163 /* strategy */ nostrategy,
164 /* name */ "mly",
165 /* maj */ MLY_CDEV_MAJOR,
166 /* dump */ nodump,
167 /* psize */ nopsize,
168 /* flags */ 0
169};
170
171/********************************************************************************
172 ********************************************************************************
173 Device Interface
174 ********************************************************************************
175 ********************************************************************************/
176
--- 2818 unchanged lines hidden ---