1 1.11 rmind /* $NetBSD: grf_conf.c,v 1.11 2011/02/08 20:20:25 rmind Exp $ */ 2 1.1 oki 3 1.1 oki /* 4 1.11 rmind * Copyright (c) 1991 University of Utah. 5 1.1 oki * Copyright (c) 1990, 1993 6 1.1 oki * The Regents of the University of California. All rights reserved. 7 1.1 oki * 8 1.1 oki * This code is derived from software contributed to Berkeley by 9 1.1 oki * the Systems Programming Group of the University of Utah Computer 10 1.1 oki * Science Department. 11 1.1 oki * 12 1.1 oki * Redistribution and use in source and binary forms, with or without 13 1.1 oki * modification, are permitted provided that the following conditions 14 1.1 oki * are met: 15 1.1 oki * 1. Redistributions of source code must retain the above copyright 16 1.1 oki * notice, this list of conditions and the following disclaimer. 17 1.1 oki * 2. Redistributions in binary form must reproduce the above copyright 18 1.1 oki * notice, this list of conditions and the following disclaimer in the 19 1.1 oki * documentation and/or other materials provided with the distribution. 20 1.6 agc * 3. Neither the name of the University nor the names of its contributors 21 1.6 agc * may be used to endorse or promote products derived from this software 22 1.6 agc * without specific prior written permission. 23 1.6 agc * 24 1.6 agc * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 25 1.6 agc * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26 1.6 agc * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27 1.6 agc * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 28 1.6 agc * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 1.6 agc * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 1.6 agc * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 1.6 agc * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 1.6 agc * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 1.6 agc * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 1.6 agc * SUCH DAMAGE. 35 1.6 agc * 36 1.6 agc * from: Utah $Hdr: grf_conf.c 1.2 92/01/22$ 37 1.6 agc * 38 1.6 agc * @(#)grf_conf.c 8.1 (Berkeley) 6/10/93 39 1.6 agc */ 40 1.1 oki 41 1.1 oki /* 42 1.1 oki * XXX this information could be generated by config. 43 1.1 oki */ 44 1.5 lukem 45 1.5 lukem #include <sys/cdefs.h> 46 1.11 rmind __KERNEL_RCSID(0, "$NetBSD: grf_conf.c,v 1.11 2011/02/08 20:20:25 rmind Exp $"); 47 1.1 oki 48 1.1 oki #include <sys/types.h> 49 1.1 oki #include <sys/device.h> 50 1.1 oki 51 1.3 minoura #include <machine/grfioctl.h> 52 1.1 oki #include <x68k/dev/grfvar.h> 53 1.1 oki 54 1.9 christos int cc_init(struct grf_softc *, void *); 55 1.9 christos int cc_mode(struct grf_softc *, u_long, void *); 56 1.9 christos int gv_init(struct grf_softc *, void *); 57 1.9 christos int gv_mode(struct grf_softc *, u_long, void *); 58 1.1 oki 59 1.1 oki struct grfsw grfsw[] = { 60 1.7 minoura {0 /* unused */, GRFBUILTIN, "builtin", cc_init, cc_mode}, 61 1.7 minoura {0 /* unused */, GRFBUILTIN, "graphic", gv_init, gv_mode}, 62 1.1 oki }; 63 1.1 oki int ngrfsw = sizeof(grfsw) / sizeof(grfsw[0]); 64