1*cbab9cadSchs /* $NetBSD: macfbvar.h,v 1.5 2012/10/27 17:17:59 chs Exp $ */ 28a007407Sscottr /* 38a007407Sscottr * Copyright (c) 1998 Matt DeBergalis 48a007407Sscottr * All rights reserved. 58a007407Sscottr * 68a007407Sscottr * Redistribution and use in source and binary forms, with or without 78a007407Sscottr * modification, are permitted provided that the following conditions 88a007407Sscottr * are met: 98a007407Sscottr * 1. Redistributions of source code must retain the above copyright 108a007407Sscottr * notice, this list of conditions and the following disclaimer. 118a007407Sscottr * 2. Redistributions in binary form must reproduce the above copyright 128a007407Sscottr * notice, this list of conditions and the following disclaimer in the 138a007407Sscottr * documentation and/or other materials provided with the distribution. 148a007407Sscottr * 3. All advertising materials mentioning features or use of this software 158a007407Sscottr * must display the following acknowledgement: 168a007407Sscottr * This product includes software developed by Matt DeBergalis 178a007407Sscottr * 4. The name of the author may not be used to endorse or promote products 188a007407Sscottr * derived from this software without specific prior written permission 198a007407Sscottr * 208a007407Sscottr * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 218a007407Sscottr * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 228a007407Sscottr * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 238a007407Sscottr * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 248a007407Sscottr * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 258a007407Sscottr * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 268a007407Sscottr * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 278a007407Sscottr * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 288a007407Sscottr * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 298a007407Sscottr * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 308a007407Sscottr */ 318a007407Sscottr 328a007407Sscottr #include <dev/rcons/raster.h> 338a007407Sscottr #include <dev/wscons/wscons_raster.h> 348a007407Sscottr 358a007407Sscottr #include <machine/bus.h> 368a007407Sscottr 378a007407Sscottr struct macfb_devconfig; 388a007407Sscottr struct fbcmap; 398a007407Sscottr struct fbcursor; 408a007407Sscottr struct fbcurpos; 418a007407Sscottr 428a007407Sscottr struct macfb_devconfig { 438a007407Sscottr int dc_type; /* WSCONS display type */ 448a007407Sscottr 458a007407Sscottr vaddr_t dc_vaddr; /* memory space virtual base address */ 468a007407Sscottr paddr_t dc_paddr; /* memory space physical base address */ 478a007407Sscottr psize_t dc_size; /* size of slot memory */ 488a007407Sscottr 498a007407Sscottr int dc_offset; /* offset from dc_vaddr to base of flat fb */ 508a007407Sscottr 518a007407Sscottr int dc_wid; /* width of frame buffer */ 528a007407Sscottr int dc_ht; /* height of frame buffer */ 538a007407Sscottr int dc_depth; /* depth of frame buffer */ 548a007407Sscottr int dc_rowbytes; /* bytes in fb scan line */ 558a007407Sscottr 568a007407Sscottr struct raster dc_raster; /* raster description */ 578a007407Sscottr struct rcons dc_rcons; /* raster blitter control info */ 588a007407Sscottr 598a007407Sscottr int isconsole; /* console device */ 608a007407Sscottr }; 618a007407Sscottr 628a007407Sscottr struct macfb_softc { 638a007407Sscottr int nscreens; 648a007407Sscottr struct macfb_devconfig *sc_dc; 658a007407Sscottr }; 668a007407Sscottr 677acd68b1Schs int macfb_cnattach(paddr_t); 687acd68b1Schs void macfb_clear(struct macfb_devconfig *); 69