creator.c (191638) | creator.c (201223) |
---|---|
1/*- 2 * Copyright (c) 2003 Jake Burkholder. 3 * Copyright (c) 2005 - 2006 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: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 Jake Burkholder. 3 * Copyright (c) 2005 - 2006 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: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 */ 27 28#include <sys/cdefs.h> |
29__FBSDID("$FreeBSD: head/sys/dev/fb/creator.c 191638 2009-04-28 20:49:47Z marius $"); | 29__FBSDID("$FreeBSD: head/sys/dev/fb/creator.c 201223 2009-12-29 21:51:28Z rnoland $"); |
30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/bus.h> 34#include <sys/conf.h> 35#include <sys/consio.h> 36#include <sys/fbio.h> 37#include <sys/kernel.h> --- 649 unchanged lines hidden (view full) --- 687 for (i = 0; i < 10; i++) { 688 FFB_WRITE(sc, FFB_DAC, FFB_DAC_TYPE, FFB_DAC_CFG_TGEN); 689 (void)FFB_READ(sc, FFB_DAC, FFB_DAC_VALUE); 690 } 691 return (0); 692} 693 694static int | 30 31#include <sys/param.h> 32#include <sys/systm.h> 33#include <sys/bus.h> 34#include <sys/conf.h> 35#include <sys/consio.h> 36#include <sys/fbio.h> 37#include <sys/kernel.h> --- 649 unchanged lines hidden (view full) --- 687 for (i = 0; i < 10; i++) { 688 FFB_WRITE(sc, FFB_DAC, FFB_DAC_TYPE, FFB_DAC_CFG_TGEN); 689 (void)FFB_READ(sc, FFB_DAC, FFB_DAC_VALUE); 690 } 691 return (0); 692} 693 694static int |
695creator_mmap(video_adapter_t *adp, vm_offset_t offset, vm_paddr_t *paddr, 696 int prot) | 695creator_mmap(video_adapter_t *adp, vm_ooffset_t offset, vm_paddr_t *paddr, 696 int prot, vm_memattr_t *memattr) |
697{ 698 699 return (EINVAL); 700} 701 702static int 703creator_ioctl(video_adapter_t *adp, u_long cmd, caddr_t data) 704{ --- 338 unchanged lines hidden (view full) --- 1043{ 1044 struct creator_softc *sc; 1045 1046 sc = dev->si_drv1; 1047 return (creator_ioctl(&sc->sc_va, cmd, data)); 1048} 1049 1050static int | 697{ 698 699 return (EINVAL); 700} 701 702static int 703creator_ioctl(video_adapter_t *adp, u_long cmd, caddr_t data) 704{ --- 338 unchanged lines hidden (view full) --- 1043{ 1044 struct creator_softc *sc; 1045 1046 sc = dev->si_drv1; 1047 return (creator_ioctl(&sc->sc_va, cmd, data)); 1048} 1049 1050static int |
1051creator_fb_mmap(struct cdev *dev, vm_offset_t offset, vm_paddr_t *paddr, 1052 int prot) | 1051creator_fb_mmap(struct cdev *dev, vm_ooffset_t offset, vm_paddr_t *paddr, 1052 int prot, vm_memattr_t *memattr) |
1053{ 1054 struct creator_softc *sc; 1055 int i; 1056 1057 /* 1058 * NB: This is a special implementation based on the /dev/fb 1059 * requirements of the XFree86/X.Org sunffb(4). 1060 */ --- 68 unchanged lines hidden --- | 1053{ 1054 struct creator_softc *sc; 1055 int i; 1056 1057 /* 1058 * NB: This is a special implementation based on the /dev/fb 1059 * requirements of the XFree86/X.Org sunffb(4). 1060 */ --- 68 unchanged lines hidden --- |