Home | History | Annotate | Line # | Download | only in dev
      1 /*  $NetBSD: mntvavar.h,v 1.2 2017/10/04 09:44:09 rkujawa Exp $ */
      2 
      3 /*
      4  * Copyright (c) 2012, 2016 The NetBSD Foundation, Inc.
      5  * All rights reserved.
      6  *
      7  * This code is derived from software contributed to The NetBSD Foundation
      8  * by Lukas F. Hartmann.
      9  * This code is derived from software contributed to The NetBSD Foundation
     10  * by Radoslaw Kujawa.
     11  *
     12  * Redistribution and use in source and binary forms, with or without
     13  * modification, are permitted provided that the following conditions
     14  * are met:
     15  * 1. Redistributions of source code must retain the above copyright
     16  *    notice, this list of conditions and the following disclaimer.
     17  * 2. Redistributions in binary form must reproduce the above copyright
     18  *    notice, this list of conditions and the following disclaimer in the
     19  *    documentation and/or other materials provided with the distribution.
     20  *
     21  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
     22  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
     23  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
     24  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
     25  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
     26  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
     27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
     28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
     29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
     30  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
     31  */
     32 
     33 #ifndef MNTVA2000VAR_H
     34 #define MNTVA2000VAR_H
     35 
     36 #include <dev/wscons/wsdisplayvar.h>
     37 #include <dev/wscons/wsconsio.h>
     38 #include <dev/wsfont/wsfont.h>
     39 #include <dev/rasops/rasops.h>
     40 #include <dev/wscons/wsdisplay_vconsvar.h>
     41 
     42 struct mntva_softc
     43 {
     44 	device_t sc_dev;
     45 
     46 	/* bus attachment, handles */
     47 	struct bus_space_tag sc_bst;
     48 
     49 	bus_space_tag_t sc_iot;
     50 	bus_space_handle_t sc_regh;
     51 	bus_space_handle_t sc_fbh;
     52 
     53 	bus_addr_t sc_regpa;
     54 	bus_addr_t sc_fbpa;
     55 
     56 	size_t sc_memsize;
     57 	int sc_width, sc_height, sc_linebytes, sc_bpp;
     58 
     59 	int sc_mode;
     60 	uint32_t sc_bg;
     61 
     62 	struct vcons_screen sc_console_screen;
     63 	struct vcons_data vd;
     64 	struct wsscreen_descr sc_defaultscreen_descr;
     65 	const struct wsscreen_descr *sc_screens[1];
     66 	struct wsscreen_list sc_screenlist;
     67 
     68 	bool sc_isconsole;
     69 
     70 	u_char sc_cmap_red[256];
     71 	u_char sc_cmap_green[256];
     72 	u_char sc_cmap_blue[256];
     73 
     74 };
     75 
     76 #endif /* MNTVA2000VAR_H */
     77