Deleted Added
full compact
bktr_os.c (196403) bktr_os.c (201223)
1/*-
2 * 1. Redistributions of source code must retain the
3 * Copyright (c) 1997 Amancio Hasty, 1999 Roger Hardiman
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:

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

27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
30 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
1/*-
2 * 1. Redistributions of source code must retain the
3 * Copyright (c) 1997 Amancio Hasty, 1999 Roger Hardiman
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:

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

27 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
29 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
30 * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
31 * POSSIBILITY OF SUCH DAMAGE.
32 */
33
34#include <sys/cdefs.h>
35__FBSDID("$FreeBSD: head/sys/dev/bktr/bktr_os.c 196403 2009-08-20 19:17:53Z jhb $");
35__FBSDID("$FreeBSD: head/sys/dev/bktr/bktr_os.c 201223 2009-12-29 21:51:28Z rnoland $");
36
37/*
38 * This is part of the Driver for Video Capture Cards (Frame grabbers)
39 * and TV Tuner cards using the Brooktree Bt848, Bt848A, Bt849A, Bt878, Bt879
40 * chipset.
41 * Copyright Roger Hardiman and Amancio Hasty.
42 *
43 * bktr_os : This has all the Operating System dependant code,

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

789 return( ENXIO );
790}
791
792
793/*
794 *
795 */
796static int
36
37/*
38 * This is part of the Driver for Video Capture Cards (Frame grabbers)
39 * and TV Tuner cards using the Brooktree Bt848, Bt848A, Bt849A, Bt878, Bt879
40 * chipset.
41 * Copyright Roger Hardiman and Amancio Hasty.
42 *
43 * bktr_os : This has all the Operating System dependant code,

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

789 return( ENXIO );
790}
791
792
793/*
794 *
795 */
796static int
797bktr_mmap( struct cdev *dev, vm_offset_t offset, vm_paddr_t *paddr, int nprot )
797bktr_mmap( struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr,
798 int nprot, vm_memattr_t *memattr )
798{
799 int unit;
800 bktr_ptr_t bktr;
801
802 unit = UNIT(dev2unit(dev));
803
804 if (FUNCTION(dev2unit(dev)) > 0) /* only allow mmap on /dev/bktr[n] */
805 return( -1 );

--- 531 unchanged lines hidden ---
799{
800 int unit;
801 bktr_ptr_t bktr;
802
803 unit = UNIT(dev2unit(dev));
804
805 if (FUNCTION(dev2unit(dev)) > 0) /* only allow mmap on /dev/bktr[n] */
806 return( -1 );

--- 531 unchanged lines hidden ---