socsvn commit: r268407 - in soc2014/seiya/bootsplash/sys: conf dev/fb modules modules/bsplash
seiya at FreeBSD.org
seiya at FreeBSD.org
Wed May 21 07:28:24 UTC 2014
Author: seiya
Date: Wed May 21 07:28:22 2014
New Revision: 268407
URL: http://svnweb.FreeBSD.org/socsvn/?view=rev&rev=268407
Log:
add ``bspalash'' kernel module
Added:
soc2014/seiya/bootsplash/sys/dev/fb/bsplash.c
soc2014/seiya/bootsplash/sys/modules/bsplash/
soc2014/seiya/bootsplash/sys/modules/bsplash/Makefile
soc2014/seiya/bootsplash/sys/modules/bsplash/Makefile.inc
Modified:
soc2014/seiya/bootsplash/sys/conf/options
soc2014/seiya/bootsplash/sys/modules/Makefile
Modified: soc2014/seiya/bootsplash/sys/conf/options
==============================================================================
--- soc2014/seiya/bootsplash/sys/conf/options Wed May 21 06:33:21 2014 (r268406)
+++ soc2014/seiya/bootsplash/sys/conf/options Wed May 21 07:28:22 2014 (r268407)
@@ -699,6 +699,7 @@
DEV_NETMAP opt_global.h
DEV_MCA opt_mca.h
DEV_CARP opt_carp.h
+DEV_BSPLASH opt_bsplash.h
DEV_SPLASH opt_splash.h
# EISA support
Added: soc2014/seiya/bootsplash/sys/dev/fb/bsplash.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ soc2014/seiya/bootsplash/sys/dev/fb/bsplash.c Wed May 21 07:28:22 2014 (r268407)
@@ -0,0 +1,57 @@
+/*-
+ * Copyright (c) 2014, Seiya Nuta <seiya at FreeBSD.org>
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice unmodified, this list of conditions, and the following
+ * disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
+
+#include <sys/param.h>
+#include <sys/module.h>
+#include <sys/kernel.h>
+#include <sys/systm.h>
+
+static int modevent(module_t mod, int type, void *data)
+{
+ printf("bsplash: hello world!\n");
+
+ switch ((modeventtype_t)type) {
+ case MOD_LOAD:
+ break;
+ case MOD_UNLOAD:
+ break;
+ default:
+ return EOPNOTSUPP;
+ break;
+ }
+ return 0;
+}
+
+static moduledata_t bsplash_mod = {
+ "bsplash",
+ modevent,
+ NULL
+};
+
+DECLARE_MODULE(bsplash, bsplash_mod, SI_SUB_DRIVERS, SI_ORDER_ANY);
Modified: soc2014/seiya/bootsplash/sys/modules/Makefile
==============================================================================
--- soc2014/seiya/bootsplash/sys/modules/Makefile Wed May 21 06:33:21 2014 (r268406)
+++ soc2014/seiya/bootsplash/sys/modules/Makefile Wed May 21 07:28:22 2014 (r268407)
@@ -53,6 +53,7 @@
${_bktr} \
${_bm} \
bridgestp \
+ bsplash \
bwi \
bwn \
cam \
Added: soc2014/seiya/bootsplash/sys/modules/bsplash/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ soc2014/seiya/bootsplash/sys/modules/bsplash/Makefile Wed May 21 07:28:22 2014 (r268407)
@@ -0,0 +1,8 @@
+# $FreeBSD: soc2014/seiya/bootsplash/sys/modules/splash/bmp/Makefile 133269 2004-08-06 20:37:08Z des $
+
+.PATH: ${.CURDIR}/../../dev/fb
+
+KMOD= bsplash
+SRCS= bsplash.c
+
+.include <bsd.kmod.mk>
Added: soc2014/seiya/bootsplash/sys/modules/bsplash/Makefile.inc
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ soc2014/seiya/bootsplash/sys/modules/bsplash/Makefile.inc Wed May 21 07:28:22 2014 (r268407)
@@ -0,0 +1,3 @@
+# $FreeBSD: soc2014/seiya/bootsplash/sys/modules/splash/Makefile.inc 50517 1999-08-28 01:08:13Z peter $
+
+.include "../Makefile.inc"
More information about the svn-soc-all
mailing list