Deleted Added
sdiff udiff text old ( 111748 ) new ( 111815 )
full compact
1/*-
2 * Copyright (c) 1992-1998 S�ren Schmidt
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 AUTHOR 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 * $FreeBSD: head/sys/dev/syscons/syscons.c 111748 2003-03-02 16:54:40Z des $
29 */
30
31#include "opt_syscons.h"
32#include "opt_splash.h"
33#include "opt_ddb.h"
34
35#include <sys/param.h>
36#include <sys/systm.h>

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

207
208static d_open_t scopen;
209static d_close_t scclose;
210static d_read_t scread;
211static d_ioctl_t scioctl;
212static d_mmap_t scmmap;
213
214static struct cdevsw sc_cdevsw = {
215 /* open */ scopen,
216 /* close */ scclose,
217 /* read */ scread,
218 /* write */ ttywrite,
219 /* ioctl */ scioctl,
220 /* poll */ ttypoll,
221 /* mmap */ scmmap,
222 /* strategy */ nostrategy,
223 /* name */ "sc",
224 /* maj */ CDEV_MAJOR,
225 /* dump */ nodump,
226 /* psize */ nopsize,
227 /* flags */ D_TTY | D_KQFILTER,
228 /* kqfilter */ ttykqfilter
229};
230
231int
232sc_probe_unit(int unit, int flags)
233{
234 if (!scvidprobe(unit, flags, FALSE)) {
235 if (bootverbose)
236 printf("sc%d: no video adapter found.\n", unit);

--- 3345 unchanged lines hidden ---