1945Srugrat /* 2945Srugrat * CDDL HEADER START 3945Srugrat * 4945Srugrat * The contents of this file are subject to the terms of the 5945Srugrat * Common Development and Distribution License, Version 1.0 only 6945Srugrat * (the "License"). You may not use this file except in compliance 7945Srugrat * with the License. 8945Srugrat * 9945Srugrat * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 10945Srugrat * or http://www.opensolaris.org/os/licensing. 11945Srugrat * See the License for the specific language governing permissions 12945Srugrat * and limitations under the License. 13945Srugrat * 14945Srugrat * When distributing Covered Code, include this CDDL HEADER in each 15945Srugrat * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 16945Srugrat * If applicable, add the following below this CDDL HEADER, with the 17945Srugrat * fields enclosed by brackets "[]" replaced with your own identifying 18945Srugrat * information: Portions Copyright [yyyy] [name of copyright owner] 19945Srugrat * 20945Srugrat * CDDL HEADER END 21945Srugrat */ 22945Srugrat /* 23*7542SRichard.Bean@Sun.COM * Copyright 2008 Sun Microsystems, Inc. All rights reserved. 24945Srugrat * Use is subject to license terms. 25945Srugrat */ 26945Srugrat 27945Srugrat /* 28945Srugrat * Private interfaces for graphics drivers for which there 29945Srugrat * are yet no acceptable DDI interfaces. 30945Srugrat */ 31945Srugrat 32945Srugrat #include <sys/types.h> 33945Srugrat #include <sys/param.h> 34945Srugrat #include <sys/sunddi.h> 35945Srugrat #include <sys/ddi_subrdefs.h> 36945Srugrat #include <sys/bootconf.h> 37945Srugrat #include <sys/psw.h> 38945Srugrat #include <sys/modctl.h> 39945Srugrat #include <sys/errno.h> 40945Srugrat #include <sys/reboot.h> 41945Srugrat #include "gfx_private.h" 42945Srugrat 43945Srugrat static struct modlmisc modlmisc = { 44*7542SRichard.Bean@Sun.COM &mod_miscops, "gfx private interfaces" 45945Srugrat }; 46945Srugrat 47945Srugrat static struct modlinkage modlinkage = { 48945Srugrat MODREV_1, (void *)&modlmisc, NULL 49945Srugrat }; 50945Srugrat 51945Srugrat int _init(void)52945Srugrat_init(void) 53945Srugrat { 54945Srugrat int err; 55945Srugrat 56945Srugrat if ((err = mod_install(&modlinkage)) != 0) 57945Srugrat return (err); 58945Srugrat return (0); 59945Srugrat } 60945Srugrat 61945Srugrat int _fini(void)62945Srugrat_fini(void) 63945Srugrat { 64945Srugrat int err; 65945Srugrat 66945Srugrat if ((err = mod_remove(&modlinkage)) != 0) 67945Srugrat return (err); 68945Srugrat 69945Srugrat return (0); 70945Srugrat } 71945Srugrat 72945Srugrat int _info(struct modinfo * modinfop)73945Srugrat_info(struct modinfo *modinfop) 74945Srugrat { 75945Srugrat return (mod_info(&modlinkage, modinfop)); 76945Srugrat } 77