xref: /netbsd-src/sys/arch/prep/include/gtenvar.h (revision 05b09539a2f546bc967763b2fcf2335aa764a9be)
1*05b09539Smatt /*	$NetBSD: gtenvar.h,v 1.6 2011/06/18 08:08:29 matt Exp $	*/
2e58532a4Stv 
3305bef72Smatt /*-
4305bef72Smatt  * Copyright (c) 2000 The NetBSD Foundation, Inc.
5305bef72Smatt  * All rights reserved.
6305bef72Smatt  *
7305bef72Smatt  * This code is derived from software contributed to The NetBSD Foundation
8305bef72Smatt  * by Matt Thomas <matt@3am-software.com>
9305bef72Smatt  *
10305bef72Smatt  * Redistribution and use in source and binary forms, with or without
11305bef72Smatt  * modification, are permitted provided that the following conditions
12305bef72Smatt  * are met:
13305bef72Smatt  * 1. Redistributions of source code must retain the above copyright
14305bef72Smatt  *    notice, this list of conditions and the following disclaimer.
15305bef72Smatt  * 2. Redistributions in binary form must reproduce the above copyright
16305bef72Smatt  *    notice, this list of conditions and the following disclaimer in the
17305bef72Smatt  *    documentation and/or other materials provided with the distribution.
18305bef72Smatt  *
19305bef72Smatt  * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
20305bef72Smatt  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
21305bef72Smatt  * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
22305bef72Smatt  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
23305bef72Smatt  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24305bef72Smatt  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25305bef72Smatt  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26305bef72Smatt  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27305bef72Smatt  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28305bef72Smatt  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29305bef72Smatt  * POSSIBILITY OF SUCH DAMAGE.
30305bef72Smatt  */
310b76f4efSmatt #ifndef _MACHINE_GTENVAR_H
320b76f4efSmatt #define	_MACHINE_GTENVAR_H
330b76f4efSmatt 
340b76f4efSmatt struct rasops_info;
350b76f4efSmatt 
360b76f4efSmatt struct gten_softc {
37*05b09539Smatt 	device_t gt_dev;
380b76f4efSmatt 
390b76f4efSmatt 	struct rasops_info *gt_ri;
400b76f4efSmatt 	paddr_t gt_paddr;
41305bef72Smatt 	size_t gt_psize;
420b76f4efSmatt 	bus_size_t gt_memsize;
430b76f4efSmatt 	bus_addr_t gt_memaddr;
440b76f4efSmatt 	int gt_nscreens;
450b76f4efSmatt 	u_char gt_cmap_red[256];
460b76f4efSmatt 	u_char gt_cmap_green[256];
470b76f4efSmatt 	u_char gt_cmap_blue[256];
480b76f4efSmatt };
490b76f4efSmatt 
505410bbdbSkleink int     gten_cnattach(pci_chipset_tag_t, bus_space_tag_t);
510b76f4efSmatt 
520b76f4efSmatt #endif /* _MACHINE_GTENVAR_H_ */
53