138032Speter/* $NetBSD: vidc20config.h,v 1.8 2022/05/28 22:33:42 andvar Exp $ */ 238032Speter 3261363Sgshapiro/*- 464562Sgshapiro * Copyright (c) 2001 The NetBSD Foundation, Inc. 538032Speter * All rights reserved. 638032Speter * 738032Speter * This code is derived from software contributed to The NetBSD Foundation 838032Speter * by Reinoud Zandijk 938032Speter * 1038032Speter * Redistribution and use in source and binary forms, with or without 1138032Speter * modification, are permitted provided that the following conditions 1238032Speter * are met: 1338032Speter * 1. Redistributions of source code must retain the above copyright 1438032Speter * notice, this list of conditions and the following disclaimer. 1538032Speter * 2. Redistributions in binary form must reproduce the above copyright 16266692Sgshapiro * notice, this list of conditions and the following disclaimer in the 1738032Speter * documentation and/or other materials provided with the distribution. 1838032Speter * 19 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 20 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 21 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 23 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 24 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 25 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 26 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 27 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 28 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 29 * POSSIBILITY OF SUCH DAMAGE. 30 * 31 * Video department of VIDC chip for wscons 32 * 33 * Created: 16/03/2001 34 * 35 */ 36 37#ifndef _VIDC20CONFIG_H_ 38#define _VIDC20CONFIG_H_ 39 40extern int vidcvideo_write (u_int reg, int value); 41extern int vidcvideo_cursor_init (int width, int height); 42extern void vidcvideo_setpalette (struct vidc_state *vidc); 43extern void vidcvideo_stdpalette (void); 44extern void vidcvideo_setstate (struct vidc_state *vidc); 45extern void vidcvideo_getstate (struct vidc_state *vidc); 46extern void vidcvideo_getmode (struct vidc_mode *mode); 47extern void vidcvideo_setmode (struct vidc_mode *mode); 48extern int vidcvideo_init (void); 49extern void vidcvideo_reinit (void); 50extern void vidcvideo_printdetails (void); 51extern int vidcvideo_blank (int); 52extern void *vidcvideo_hwscroll (int); 53extern void *vidcvideo_hwscroll_reset (void); 54extern void *vidcvideo_hwscroll_back (void *cookie); 55extern void vidcvideo_progr_scroll (void); 56extern void vidcvideo_updatecursor (int, int); 57extern void vidcvideo_enablecursor (int); 58 59 60#define CURSOR_MAX_WIDTH 32 61#define CURSOR_MAX_HEIGHT 32 /* for now */ 62#define CURSOR_MAX_COLOURS 4 /* AFAIK */ 63 64#endif 65 66/* end of vidcvideo.h */ 67