1124771Sgrehan/*- 2124771Sgrehan * Copyright (c) 2003 Peter Grehan 3124771Sgrehan * All rights reserved. 4124771Sgrehan * 5124771Sgrehan * Redistribution and use in source and binary forms, with or without 6124771Sgrehan * modification, are permitted provided that the following conditions 7124771Sgrehan * are met: 8124771Sgrehan * 1. Redistributions of source code must retain the above copyright 9124771Sgrehan * notice, this list of conditions and the following disclaimer. 10124771Sgrehan * 2. Redistributions in binary form must reproduce the above copyright 11124771Sgrehan * notice, this list of conditions and the following disclaimer in the 12124771Sgrehan * documentation and/or other materials provided with the distribution. 13124771Sgrehan * 14124771Sgrehan * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15124771Sgrehan * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16124771Sgrehan * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17124771Sgrehan * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18124771Sgrehan * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19124771Sgrehan * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20124771Sgrehan * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21124771Sgrehan * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22124771Sgrehan * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23124771Sgrehan * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24124771Sgrehan * SUCH DAMAGE. 25124771Sgrehan * 26124771Sgrehan * $FreeBSD$ 27124771Sgrehan */ 28124771Sgrehan 29124771Sgrehan#ifndef _OFW_SYSCONS_H_ 30124771Sgrehan#define _OFW_SYSCONS_H_ 31124771Sgrehan 32124771Sgrehanstruct ofwfb_softc { 33124771Sgrehan video_adapter_t sc_va; 34130585Sphk struct cdev *sc_si; 35255904Snwhitehorn bus_space_tag_t sc_tag; 36124771Sgrehan phandle_t sc_node; 37124771Sgrehan int sc_console; 38124771Sgrehan 39124771Sgrehan intptr_t sc_addr; 40131671Sgrehan int sc_depth; 41124771Sgrehan int sc_height; 42124771Sgrehan int sc_width; 43124771Sgrehan int sc_stride; 44124771Sgrehan int sc_ncol; 45124771Sgrehan int sc_nrow; 46124771Sgrehan 47124771Sgrehan int sc_xmargin; 48124771Sgrehan int sc_ymargin; 49124771Sgrehan 50124771Sgrehan u_char *sc_font; 51124771Sgrehan int sc_font_height; 52131671Sgrehan 53131671Sgrehan vi_blank_display_t *sc_blank; 54131671Sgrehan vi_putc_t *sc_putc; 55186050Snwhitehorn vi_putm_t *sc_putm; 56142414Sgrehan vi_set_border_t *sc_set_border; 57142414Sgrehan 58142414Sgrehan#define OFWSC_MAXADDR 8 59142414Sgrehan int sc_num_pciaddrs; 60142414Sgrehan struct ofw_pci_register sc_pciaddrs[OFWSC_MAXADDR]; 61124771Sgrehan}; 62124771Sgrehan 63124771Sgrehan#endif 64