Deleted Added
full compact
tdfx_pci.c (191056) tdfx_pci.c (201223)
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

--- 16 unchanged lines hidden (view full) ---

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
32#include <sys/cdefs.h>
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

--- 16 unchanged lines hidden (view full) ---

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
32#include <sys/cdefs.h>
33__FBSDID("$FreeBSD: head/sys/dev/tdfx/tdfx_pci.c 191056 2009-04-14 11:57:26Z ed $");
33__FBSDID("$FreeBSD: head/sys/dev/tdfx/tdfx_pci.c 201223 2009-12-29 21:51:28Z rnoland $");
34
35/* 3dfx driver for FreeBSD 4.x - Finished 11 May 2000, 12:25AM ET
36 *
37 * Copyright (C) 2000-2001, by Coleman Kane <cokane@FreeBSD.org>,
38 * based upon the 3dfx driver written for linux, by Daryll Straus, Jon Taylor,
39 * and Jens Axboe, located at http://linux.3dfx.com.
40 */
41

--- 374 unchanged lines hidden (view full) ---

416 tdfx_info->busy = 0;
417#ifdef DEBUG
418 printf("Closed by #%d\n", td->td_proc->p_pid);
419#endif
420 return 0;
421}
422
423static int
34
35/* 3dfx driver for FreeBSD 4.x - Finished 11 May 2000, 12:25AM ET
36 *
37 * Copyright (C) 2000-2001, by Coleman Kane <cokane@FreeBSD.org>,
38 * based upon the 3dfx driver written for linux, by Daryll Straus, Jon Taylor,
39 * and Jens Axboe, located at http://linux.3dfx.com.
40 */
41

--- 374 unchanged lines hidden (view full) ---

416 tdfx_info->busy = 0;
417#ifdef DEBUG
418 printf("Closed by #%d\n", td->td_proc->p_pid);
419#endif
420 return 0;
421}
422
423static int
424tdfx_mmap(struct cdev *dev, vm_offset_t offset, vm_paddr_t *paddr, int nprot)
424tdfx_mmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr,
425 int nprot, vm_memattr_t *memattr)
425{
426 /*
427 * mmap(2) is called by a user process to request that an area of memory
428 * associated with this device be mapped for the process to work with. Nprot
429 * holds the protections requested, PROT_READ, PROT_WRITE, or both.
430 */
431
432 /**** OLD GET CONFIG ****/

--- 393 unchanged lines hidden ---
426{
427 /*
428 * mmap(2) is called by a user process to request that an area of memory
429 * associated with this device be mapped for the process to work with. Nprot
430 * holds the protections requested, PROT_READ, PROT_WRITE, or both.
431 */
432
433 /**** OLD GET CONFIG ****/

--- 393 unchanged lines hidden ---