syscons.c (197315) | syscons.c (197539) |
---|---|
1/*- 2 * Copyright (c) 1992-1998 S�ren Schmidt 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to The DragonFly Project 6 * by Sascha Wildner <saw@online.de> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 16 unchanged lines hidden (view full) --- 25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 1992-1998 S�ren Schmidt 3 * All rights reserved. 4 * 5 * This code is derived from software contributed to The DragonFly Project 6 * by Sascha Wildner <saw@online.de> 7 * 8 * Redistribution and use in source and binary forms, with or without --- 16 unchanged lines hidden (view full) --- 25 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 29 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sys/dev/syscons/syscons.c 197315 2009-09-18 15:39:09Z ed $"); | 33__FBSDID("$FreeBSD: head/sys/dev/syscons/syscons.c 197539 2009-09-27 18:19:41Z ed $"); |
34 35#include "opt_compat.h" 36#include "opt_syscons.h" 37#include "opt_splash.h" 38#include "opt_ddb.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> --- 3514 unchanged lines hidden (view full) --- 3556 return; 3557 rmap = scp->sc->scr_rmap; 3558 for (; count > 0; --count) 3559 ttydisc_rint(tp, rmap[*p++], 0); 3560 ttydisc_rint_done(tp); 3561} 3562 3563void | 34 35#include "opt_compat.h" 36#include "opt_syscons.h" 37#include "opt_splash.h" 38#include "opt_ddb.h" 39 40#include <sys/param.h> 41#include <sys/systm.h> --- 3514 unchanged lines hidden (view full) --- 3556 return; 3557 rmap = scp->sc->scr_rmap; 3558 for (; count > 0; --count) 3559 ttydisc_rint(tp, rmap[*p++], 0); 3560 ttydisc_rint_done(tp); 3561} 3562 3563void |
3564sc_respond(scr_stat *scp, const u_char *p, int count) | 3564sc_respond(scr_stat *scp, const u_char *p, int count, int wakeup) |
3565{ 3566 struct tty *tp; 3567 3568 tp = SC_DEV(scp->sc, scp->sc->cur_scp->index); 3569 if (!tty_opened(tp)) 3570 return; | 3565{ 3566 struct tty *tp; 3567 3568 tp = SC_DEV(scp->sc, scp->sc->cur_scp->index); 3569 if (!tty_opened(tp)) 3570 return; |
3571 for (; count > 0; --count) 3572 ttydisc_rint(tp, *p++, 0); 3573#if 0 3574 /* XXX: we can't call ttydisc_rint_done() here! */ 3575 ttydisc_rint_done(tp); 3576#endif | 3571 ttydisc_rint_simple(tp, p, count); 3572 if (wakeup) { 3573 /* XXX: we can't always call ttydisc_rint_done() here! */ 3574 ttydisc_rint_done(tp); 3575 } |
3577} 3578 3579void 3580sc_bell(scr_stat *scp, int pitch, int duration) 3581{ 3582 if (cold || shutdown_in_progress || !enable_bell) 3583 return; 3584 --- 93 unchanged lines hidden --- | 3576} 3577 3578void 3579sc_bell(scr_stat *scp, int pitch, int duration) 3580{ 3581 if (cold || shutdown_in_progress || !enable_bell) 3582 return; 3583 --- 93 unchanged lines hidden --- |