Deleted Added
full compact
fb.c (42831) fb.c (47625)
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.2 1999/01/12 10:35:50 yokota Exp $
28 * $Id: fb.c,v 1.3 1999/01/19 11:31:10 yokota 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>

--- 244 unchanged lines hidden (view full) ---

281static d_open_t fbopen;
282static d_close_t fbclose;
283static d_ioctl_t fbioctl;
284static d_mmap_t fbmmap;
285
286#define CDEV_MAJOR 141 /* XXX */
287
288static struct cdevsw fb_cdevsw = {
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>

--- 244 unchanged lines hidden (view full) ---

281static d_open_t fbopen;
282static d_close_t fbclose;
283static d_ioctl_t fbioctl;
284static d_mmap_t fbmmap;
285
286#define CDEV_MAJOR 141 /* XXX */
287
288static struct cdevsw fb_cdevsw = {
289 fbopen, fbclose, noread, nowrite, /* ??? */
290 fbioctl, nostop, nullreset, nodevtotty,
291 seltrue, fbmmap, NULL, DRIVER_NAME,
292 NULL, -1, nodump, nopsize,
289 /* open */ fbopen,
290 /* close */ fbclose,
291 /* read */ noread,
292 /* write */ nowrite,
293 /* ioctl */ fbioctl,
294 /* stop */ nostop,
295 /* reset */ noreset,
296 /* devtotty */ nodevtotty,
297 /* poll */ nopoll,
298 /* mmap */ fbmmap,
299 /* strategy */ nostrategy,
300 /* name */ DRIVER_NAME,
301 /* parms */ noparms,
302 /* maj */ CDEV_MAJOR,
303 /* dump */ nodump,
304 /* psize */ nopsize,
305 /* flags */ 0,
306 /* maxio */ 0,
307 /* bmaj */ -1
293};
294
295static void
296vfbattach(void *arg)
297{
298 static int fb_devsw_installed = FALSE;
299 dev_t dev;
300

--- 121 unchanged lines hidden ---
308};
309
310static void
311vfbattach(void *arg)
312{
313 static int fb_devsw_installed = FALSE;
314 dev_t dev;
315

--- 121 unchanged lines hidden ---