machfb.c (191076) | machfb.c (201223) |
---|---|
1/*- 2 * Copyright (c) 2002 Bang Jun-Young 3 * Copyright (c) 2005 Marius Strobl <marius@FreeBSD.org> 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: --- 15 unchanged lines hidden (view full) --- 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * from: NetBSD: machfb.c,v 1.23 2005/03/07 21:45:24 martin Exp 29 */ 30 31#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2002 Bang Jun-Young 3 * Copyright (c) 2005 Marius Strobl <marius@FreeBSD.org> 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: --- 15 unchanged lines hidden (view full) --- 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * 28 * from: NetBSD: machfb.c,v 1.23 2005/03/07 21:45:24 martin Exp 29 */ 30 31#include <sys/cdefs.h> |
32__FBSDID("$FreeBSD: head/sys/dev/fb/machfb.c 191076 2009-04-14 20:23:47Z marius $"); | 32__FBSDID("$FreeBSD: head/sys/dev/fb/machfb.c 201223 2009-12-29 21:51:28Z rnoland $"); |
33 34/* 35 * Driver for ATI Mach64 graphics chips. Some code is derived from the 36 * ATI Rage Pro and Derivatives Programmer's Guide. 37 */ 38 39#include <sys/param.h> 40#include <sys/systm.h> --- 791 unchanged lines hidden (view full) --- 832 break; 833 } 834 regw(sc, CRTC_GEN_CNTL, crtc_gen_cntl); 835 836 return (0); 837} 838 839static int | 33 34/* 35 * Driver for ATI Mach64 graphics chips. Some code is derived from the 36 * ATI Rage Pro and Derivatives Programmer's Guide. 37 */ 38 39#include <sys/param.h> 40#include <sys/systm.h> --- 791 unchanged lines hidden (view full) --- 832 break; 833 } 834 regw(sc, CRTC_GEN_CNTL, crtc_gen_cntl); 835 836 return (0); 837} 838 839static int |
840machfb_mmap(video_adapter_t *adp, vm_offset_t offset, vm_paddr_t *paddr, 841 int prot) | 840machfb_mmap(video_adapter_t *adp, vm_ooffset_t offset, vm_paddr_t *paddr, 841 int prot, vm_memattr_t *memattr) |
842{ 843 struct machfb_softc *sc; 844 video_info_t *vi; 845 846 sc = (struct machfb_softc *)adp; 847 vi = &adp->va_info; 848 849 /* BAR 2 - VGA memory */ --- 729 unchanged lines hidden --- | 842{ 843 struct machfb_softc *sc; 844 video_info_t *vi; 845 846 sc = (struct machfb_softc *)adp; 847 vi = &adp->va_info; 848 849 /* BAR 2 - VGA memory */ --- 729 unchanged lines hidden --- |