ofw_syscons.c (190681) | ofw_syscons.c (201223) |
---|---|
1/*- 2 * Copyright (c) 2003 Peter Grehan 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2003 Peter Grehan 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 --- 11 unchanged lines hidden (view full) --- 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 */ 26 27#include <sys/cdefs.h> |
28__FBSDID("$FreeBSD: head/sys/powerpc/ofw/ofw_syscons.c 190681 2009-04-04 00:22:44Z nwhitehorn $"); | 28__FBSDID("$FreeBSD: head/sys/powerpc/ofw/ofw_syscons.c 201223 2009-12-29 21:51:28Z rnoland $"); |
29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/module.h> 33#include <sys/bus.h> 34#include <sys/kernel.h> 35#include <sys/sysctl.h> 36#include <sys/limits.h> --- 582 unchanged lines hidden (view full) --- 619 struct ofwfb_softc *sc; 620 621 sc = (struct ofwfb_softc *)adp; 622 623 return ((*sc->sc_blank)(adp, mode)); 624} 625 626static int | 29 30#include <sys/param.h> 31#include <sys/systm.h> 32#include <sys/module.h> 33#include <sys/bus.h> 34#include <sys/kernel.h> 35#include <sys/sysctl.h> 36#include <sys/limits.h> --- 582 unchanged lines hidden (view full) --- 619 struct ofwfb_softc *sc; 620 621 sc = (struct ofwfb_softc *)adp; 622 623 return ((*sc->sc_blank)(adp, mode)); 624} 625 626static int |
627ofwfb_mmap(video_adapter_t *adp, vm_offset_t offset, vm_paddr_t *paddr, 628 int prot) | 627ofwfb_mmap(video_adapter_t *adp, vm_ooffset_t offset, vm_paddr_t *paddr, 628 int prot, vm_memattr_t *memattr) |
629{ 630 struct ofwfb_softc *sc; 631 int i; 632 633 sc = (struct ofwfb_softc *)adp; 634 635 if (sc->sc_num_pciaddrs == 0) 636 return (ENOMEM); --- 405 unchanged lines hidden --- | 629{ 630 struct ofwfb_softc *sc; 631 int i; 632 633 sc = (struct ofwfb_softc *)adp; 634 635 if (sc->sc_num_pciaddrs == 0) 636 return (ENOMEM); --- 405 unchanged lines hidden --- |