summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons/star
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1998-11-04 03:49:39 +0000
committerpeter <peter@FreeBSD.org>1998-11-04 03:49:39 +0000
commit51a1d0307e752ea1ed3a8ab81afab8199c0de4b7 (patch)
tree17e976498fdc22830a1cceefc7b107a523618a6a /sys/dev/syscons/star
parent41affade8bfc58dbc7225c6433b3fbf7ed8b6d05 (diff)
downloadFreeBSD-src-51a1d0307e752ea1ed3a8ab81afab8199c0de4b7.zip
FreeBSD-src-51a1d0307e752ea1ed3a8ab81afab8199c0de4b7.tar.gz
Simple update to make these work as kld and preload modules.
Diffstat (limited to 'sys/dev/syscons/star')
-rw-r--r--sys/dev/syscons/star/star_saver.c20
1 files changed, 6 insertions, 14 deletions
diff --git a/sys/dev/syscons/star/star_saver.c b/sys/dev/syscons/star/star_saver.c
index 2e56a3c..719d502 100644
--- a/sys/dev/syscons/star/star_saver.c
+++ b/sys/dev/syscons/star/star_saver.c
@@ -25,22 +25,19 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: star_saver.c,v 1.15 1998/09/15 18:16:39 sos Exp $
+ * $Id: star_saver.c,v 1.16 1998/09/17 19:40:30 sos Exp $
*/
#include <sys/param.h>
#include <sys/systm.h>
-#include <sys/exec.h>
-#include <sys/sysent.h>
-#include <sys/lkm.h>
+#include <sys/kernel.h>
+#include <sys/module.h>
#include <machine/md_var.h>
#include <machine/pc/display.h>
#include <saver.h>
-MOD_MISC(star_saver);
-
#define NUM_STARS 50
static u_short *window;
@@ -94,20 +91,15 @@ star_saver(int blank)
}
static int
-star_saver_load(struct lkm_table *lkmtp, int cmd)
+star_saver_load(void)
{
return add_scrn_saver(star_saver);
}
static int
-star_saver_unload(struct lkm_table *lkmtp, int cmd)
+star_saver_unload(void)
{
return remove_scrn_saver(star_saver);
}
-int
-star_saver_mod(struct lkm_table *lkmtp, int cmd, int ver)
-{
- MOD_DISPATCH(star_saver, lkmtp, cmd, ver,
- star_saver_load, star_saver_unload, lkm_nullcmd);
-}
+SAVER_MODULE(star_saver);
OpenPOWER on IntegriCloud