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