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 111815 2003-03-03 12:15:54Z phk $ |
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 .d_open = scopen, 216 .d_close = scclose, 217 .d_read = scread, 218 .d_write = ttywrite, 219 .d_ioctl = scioctl, 220 .d_poll = ttypoll, 221 .d_mmap = scmmap, 222 .d_name = "sc", 223 .d_maj = CDEV_MAJOR, 224 .d_flags = D_TTY | D_KQFILTER, 225 .d_kqfilter = ttykqfilter |
226}; 227 228int 229sc_probe_unit(int unit, int flags) 230{ 231 if (!scvidprobe(unit, flags, FALSE)) { 232 if (bootverbose) 233 printf("sc%d: no video adapter found.\n", unit); --- 3345 unchanged lines hidden --- |