syscons.c (131939) | syscons.c (132226) |
---|---|
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 --- 13 unchanged lines hidden (view full) --- 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 29#include <sys/cdefs.h> | 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 --- 13 unchanged lines hidden (view full) --- 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 29#include <sys/cdefs.h> |
30__FBSDID("$FreeBSD: head/sys/dev/syscons/syscons.c 131939 2004-07-10 22:29:41Z marcel $"); | 30__FBSDID("$FreeBSD: head/sys/dev/syscons/syscons.c 132226 2004-07-15 20:47:41Z phk $"); |
31 32#include "opt_syscons.h" 33#include "opt_splash.h" 34#include "opt_ddb.h" 35 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/conf.h> --- 513 unchanged lines hidden (view full) --- 552#endif 553 scp->kbd_mode = K_XLATE; 554 if (scp == scp->sc->cur_scp) 555 kbd_ioctl(scp->sc->kbd, KDSKBMODE, (caddr_t)&scp->kbd_mode); 556 DPRINTF(5, ("done.\n")); 557 } 558 spltty(); 559 ttyld_close(tp, flag); | 31 32#include "opt_syscons.h" 33#include "opt_splash.h" 34#include "opt_ddb.h" 35 36#include <sys/param.h> 37#include <sys/systm.h> 38#include <sys/conf.h> --- 513 unchanged lines hidden (view full) --- 552#endif 553 scp->kbd_mode = K_XLATE; 554 if (scp == scp->sc->cur_scp) 555 kbd_ioctl(scp->sc->kbd, KDSKBMODE, (caddr_t)&scp->kbd_mode); 556 DPRINTF(5, ("done.\n")); 557 } 558 spltty(); 559 ttyld_close(tp, flag); |
560 ttyclose(tp); | 560 tty_close(tp); |
561 spl0(); 562 return(0); 563} 564 565static int 566scread(struct cdev *dev, struct uio *uio, int flag) 567{ 568 if (!sc_saver_keyb_only) --- 3002 unchanged lines hidden --- | 561 spl0(); 562 return(0); 563} 564 565static int 566scread(struct cdev *dev, struct uio *uio, int flag) 567{ 568 if (!sc_saver_keyb_only) --- 3002 unchanged lines hidden --- |