1/*- 2 * Copyright (c) 1999 Brad Forschinger 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $Id: fire_saver.c,v 1.4 1999/05/10 15:25:50 des Exp $ |
27 */ 28 29/* 30 * brad forschinger, 19990504 <retch@flag.blackened.net> 31 * 32 * written with much help from warp_saver.c 33 * 34 */ 35 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/kernel.h> 39#include <sys/module.h> 40#include <sys/syslog.h> |
41#include <sys/consio.h> 42#include <sys/fbio.h> |
43 |
44#include <machine/random.h> 45 |
46#include <dev/fb/fbreg.h> 47#include <dev/fb/splashreg.h> 48#include <dev/syscons/syscons.h> |
49 50#define X_SIZE 320 51#define Y_SIZE 200 52 53static int blanked; 54static u_char fire_pal[768]; 55static u_char buf[X_SIZE * (Y_SIZE + 1)]; 56static u_char *vid; --- 80 unchanged lines hidden --- |