From owner-svn-soc-all@FreeBSD.ORG Wed May 21 07:28:24 2014 Return-Path: Delivered-To: svn-soc-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 71EB7288 for ; Wed, 21 May 2014 07:28:24 +0000 (UTC) Received: from socsvn.freebsd.org (socsvn.freebsd.org [IPv6:2001:1900:2254:206a::50:2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5DBB325DA for ; Wed, 21 May 2014 07:28:24 +0000 (UTC) Received: from socsvn.freebsd.org ([127.0.1.124]) by socsvn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4L7SOip032714 for ; Wed, 21 May 2014 07:28:24 GMT (envelope-from seiya@FreeBSD.org) Received: (from www@localhost) by socsvn.freebsd.org (8.14.8/8.14.8/Submit) id s4L7SMq8032261 for svn-soc-all@FreeBSD.org; Wed, 21 May 2014 07:28:22 GMT (envelope-from seiya@FreeBSD.org) Date: Wed, 21 May 2014 07:28:22 GMT Message-Id: <201405210728.s4L7SMq8032261@socsvn.freebsd.org> X-Authentication-Warning: socsvn.freebsd.org: www set sender to seiya@FreeBSD.org using -f From: seiya@FreeBSD.org To: svn-soc-all@FreeBSD.org Subject: socsvn commit: r268407 - in soc2014/seiya/bootsplash/sys: conf dev/fb modules modules/bsplash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-soc-all@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the entire Summer of Code repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 May 2014 07:28:24 -0000 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 + * 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 +__FBSDID("$FreeBSD$"); + +#include +#include +#include +#include + +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 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"