Home | History | Annotate | Line # | Download | only in include
video.h revision 1.1
      1  1.1  jmmv /*	$NetBSD: video.h,v 1.1 2007/08/29 13:02:41 jmmv Exp $	*/
      2  1.1  jmmv /*
      3  1.1  jmmv  * Copyright (c) 2007 The NetBSD Foundation, Inc.
      4  1.1  jmmv  * All rights reserved.
      5  1.1  jmmv  *
      6  1.1  jmmv  * Redistribution and use in source and binary forms, with or without
      7  1.1  jmmv  * modification, are permitted provided that the following conditions
      8  1.1  jmmv  * are met:
      9  1.1  jmmv  * 1. Redistributions of source code must retain the above copyright
     10  1.1  jmmv  *    notice, this list of conditions and the following disclaimer.
     11  1.1  jmmv  * 2. Redistributions in binary form must reproduce the above copyright
     12  1.1  jmmv  *    notice, this list of conditions and the following disclaimer in the
     13  1.1  jmmv  *    documentation and/or other materials provided with the distribution.
     14  1.1  jmmv  * 3. All advertising materials mentioning features or use of this
     15  1.1  jmmv  *    software must display the following acknowledgement:
     16  1.1  jmmv  *        This product includes software developed by the NetBSD
     17  1.1  jmmv  *        Foundation, Inc. and its contributors.
     18  1.1  jmmv  * 4. Neither the name of The NetBSD Foundation nor the names of its
     19  1.1  jmmv  *    contributors may be used to endorse or promote products derived
     20  1.1  jmmv  *    from this software without specific prior written permission.
     21  1.1  jmmv  *
     22  1.1  jmmv  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
     23  1.1  jmmv  * CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
     24  1.1  jmmv  * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
     25  1.1  jmmv  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     26  1.1  jmmv  * IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
     27  1.1  jmmv  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
     28  1.1  jmmv  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
     29  1.1  jmmv  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     30  1.1  jmmv  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
     31  1.1  jmmv  * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
     32  1.1  jmmv  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
     33  1.1  jmmv  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     34  1.1  jmmv  */
     35  1.1  jmmv 
     36  1.1  jmmv #ifndef _CPU_VIDEO_H_
     37  1.1  jmmv #define _CPU_VIDEO_H_
     38  1.1  jmmv 
     39  1.1  jmmv /* From Booter via locore */
     40  1.1  jmmv extern long	videoaddr;	/* Address used in kernel for video */
     41  1.1  jmmv extern long	videorowbytes;	/* Length of row in video RAM */
     42  1.1  jmmv extern long	videobitdepth;	/* Number of bits per pixel */
     43  1.1  jmmv extern long	videowidth;	/* Framebuffer width */
     44  1.1  jmmv extern long	videoheight;	/* Framebuffer height */
     45  1.1  jmmv 
     46  1.1  jmmv /*
     47  1.1  jmmv  * Values for IIvx-like internal video
     48  1.1  jmmv  * -- should be zero if it is not used (usual case).
     49  1.1  jmmv  */
     50  1.1  jmmv extern uint32_t mac68k_vidlog;	/* logical addr */
     51  1.1  jmmv extern uint32_t mac68k_vidphys;	/* physical addr */
     52  1.1  jmmv extern uint32_t mac68k_vidlen;	/* mem length */
     53  1.1  jmmv 
     54  1.1  jmmv #endif /* _CPU_VIDEO_H_ */
     55