tdfx_pci.c (111815) | tdfx_pci.c (112569) |
---|---|
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 111815 2003-03-03 12:15:54Z phk $ | 31 * $FreeBSD: head/sys/dev/tdfx/tdfx_pci.c 112569 2003-03-25 00:07:06Z jake $ |
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 */ --- 389 unchanged lines hidden (view full) --- 429 tdfx_info->busy = 0; 430#ifdef DEBUG 431 printf("Closed by #%d\n", td->td_proc->p_pid); 432#endif 433 return 0; 434} 435 436static int | 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 */ --- 389 unchanged lines hidden (view full) --- 429 tdfx_info->busy = 0; 430#ifdef DEBUG 431 printf("Closed by #%d\n", td->td_proc->p_pid); 432#endif 433 return 0; 434} 435 436static int |
437tdfx_mmap(dev_t dev, vm_offset_t offset, vm_offset_t *paddr, int nprot) | 437tdfx_mmap(dev_t dev, vm_offset_t offset, vm_paddr_t *paddr, int nprot) |
438{ 439 /* 440 * mmap(2) is called by a user process to request that an area of memory 441 * associated with this device be mapped for the process to work with. Nprot 442 * holds the protections requested, PROT_READ, PROT_WRITE, or both. 443 */ 444 445 /**** OLD GET CONFIG ****/ --- 419 unchanged lines hidden --- | 438{ 439 /* 440 * mmap(2) is called by a user process to request that an area of memory 441 * associated with this device be mapped for the process to work with. Nprot 442 * holds the protections requested, PROT_READ, PROT_WRITE, or both. 443 */ 444 445 /**** OLD GET CONFIG ****/ --- 419 unchanged lines hidden --- |