fb.c (47625) | fb.c (47640) |
---|---|
1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * | 1/*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 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 --- 11 unchanged lines hidden (view full) --- 20 * IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT, 21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * |
28 * $Id: fb.c,v 1.3 1999/01/19 11:31:10 yokota Exp $ | 28 * $Id: fb.c,v 1.4 1999/05/30 16:51:23 phk Exp $ |
29 */ 30 31#include "fb.h" 32#include "opt_fb.h" 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/conf.h> --- 269 unchanged lines hidden (view full) --- 306 /* maxio */ 0, 307 /* bmaj */ -1 308}; 309 310static void 311vfbattach(void *arg) 312{ 313 static int fb_devsw_installed = FALSE; | 29 */ 30 31#include "fb.h" 32#include "opt_fb.h" 33 34#include <sys/param.h> 35#include <sys/systm.h> 36#include <sys/conf.h> --- 269 unchanged lines hidden (view full) --- 306 /* maxio */ 0, 307 /* bmaj */ -1 308}; 309 310static void 311vfbattach(void *arg) 312{ 313 static int fb_devsw_installed = FALSE; |
314 dev_t dev; | |
315 316 if (!fb_devsw_installed) { | 314 315 if (!fb_devsw_installed) { |
317 dev = makedev(CDEV_MAJOR, 0); 318 cdevsw_add(&dev, &fb_cdevsw, NULL); | 316 cdevsw_add(&fb_cdevsw); |
319 fb_devsw_installed = TRUE; 320 } 321} 322 323PSEUDO_SET(vfbattach, fb); 324 325#endif /* notyet */ 326 --- 110 unchanged lines hidden --- | 317 fb_devsw_installed = TRUE; 318 } 319} 320 321PSEUDO_SET(vfbattach, fb); 322 323#endif /* notyet */ 324 --- 110 unchanged lines hidden --- |