tdfx_pci.c (111752) | tdfx_pci.c (111815) |
---|---|
1/* 2 * Copyright (c) 2000-2001 by Coleman Kane <cokane@FreeBSD.org> 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 --- 14 unchanged lines hidden (view full) --- 23 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * | 1/* 2 * Copyright (c) 2000-2001 by Coleman Kane <cokane@FreeBSD.org> 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 --- 14 unchanged lines hidden (view full) --- 23 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 24 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 * |
31 * $FreeBSD: head/sys/dev/tdfx/tdfx_pci.c 111752 2003-03-02 18:50:21Z phk $ | 31 * $FreeBSD: head/sys/dev/tdfx/tdfx_pci.c 111815 2003-03-03 12:15:54Z phk $ |
32 */ 33 34/* 3dfx driver for FreeBSD 4.x - Finished 11 May 2000, 12:25AM ET 35 * 36 * Copyright (C) 2000-2001, by Coleman Kane <cokane@FreeBSD.org>, 37 * based upon the 3dfx driver written for linux, by Daryll Straus, Jon Taylor, 38 * and Jens Axboe, located at http://linux.3dfx.com. 39 */ --- 58 unchanged lines hidden (view full) --- 98 99#ifdef TDFX_LINUX 100MODULE_DEPEND(tdfx, linux, 1, 1, 1); 101LINUX_IOCTL_SET(tdfx, LINUX_IOCTL_TDFX_MIN, LINUX_IOCTL_TDFX_MAX); 102#endif 103 104/* Char. Dev. file operations structure */ 105static struct cdevsw tdfx_cdev = { | 32 */ 33 34/* 3dfx driver for FreeBSD 4.x - Finished 11 May 2000, 12:25AM ET 35 * 36 * Copyright (C) 2000-2001, by Coleman Kane <cokane@FreeBSD.org>, 37 * based upon the 3dfx driver written for linux, by Daryll Straus, Jon Taylor, 38 * and Jens Axboe, located at http://linux.3dfx.com. 39 */ --- 58 unchanged lines hidden (view full) --- 98 99#ifdef TDFX_LINUX 100MODULE_DEPEND(tdfx, linux, 1, 1, 1); 101LINUX_IOCTL_SET(tdfx, LINUX_IOCTL_TDFX_MIN, LINUX_IOCTL_TDFX_MAX); 102#endif 103 104/* Char. Dev. file operations structure */ 105static struct cdevsw tdfx_cdev = { |
106 /* open */ tdfx_open, 107 /* close */ tdfx_close, 108 /* read */ noread, 109 /* write */ nowrite, 110 /* ioctl */ tdfx_ioctl, 111 /* poll */ nopoll, 112 /* mmap */ tdfx_mmap, 113 /* strategy */ nostrategy, 114 /* name */ "tdfx", 115 /* maj */ CDEV_MAJOR, 116 /* dump */ nodump, 117 /* psize */ nopsize, 118 /* flags */ 0, | 106 .d_open = tdfx_open, 107 .d_close = tdfx_close, 108 .d_ioctl = tdfx_ioctl, 109 .d_mmap = tdfx_mmap, 110 .d_name = "tdfx", 111 .d_maj = CDEV_MAJOR, |
119}; 120 121static int 122tdfx_probe(device_t dev) 123{ 124 /* 125 * probe routine called on kernel boot to register supported devices. We get 126 * a device structure to work with, and we can test the VENDOR/DEVICE IDs to --- 745 unchanged lines hidden --- | 112}; 113 114static int 115tdfx_probe(device_t dev) 116{ 117 /* 118 * probe routine called on kernel boot to register supported devices. We get 119 * a device structure to work with, and we can test the VENDOR/DEVICE IDs to --- 745 unchanged lines hidden --- |