Deleted Added
full compact
syscons.c (39874) syscons.c (40565)
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 *
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 * $Id: syscons.c,v 1.283 1998/10/01 11:39:18 yokota Exp $
28 * $Id: syscons.c,v 1.284 1998/10/01 21:04:52 ache Exp $
29 */
30
31#include "sc.h"
32#include "apm.h"
33#include "opt_ddb.h"
34#include "opt_devfs.h"
35#include "opt_vesa.h"
36#include "opt_vm86.h"

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

234
235#define WRAPHIST(scp, pointer, offset)\
236 ((scp)->history + ((((pointer) - (scp)->history) + (scp)->history_size \
237 + (offset)) % (scp)->history_size))
238#define ISSIGVALID(sig) ((sig) > 0 && (sig) < NSIG)
239
240/* prototypes */
241static int scattach(struct isa_device *dev);
29 */
30
31#include "sc.h"
32#include "apm.h"
33#include "opt_ddb.h"
34#include "opt_devfs.h"
35#include "opt_vesa.h"
36#include "opt_vm86.h"

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

234
235#define WRAPHIST(scp, pointer, offset)\
236 ((scp)->history + ((((pointer) - (scp)->history) + (scp)->history_size \
237 + (offset)) % (scp)->history_size))
238#define ISSIGVALID(sig) ((sig) > 0 && (sig) < NSIG)
239
240/* prototypes */
241static int scattach(struct isa_device *dev);
242static ointhand2_t scintr;
242static int scparam(struct tty *tp, struct termios *t);
243static int scprobe(struct isa_device *dev);
244static int scvidprobe(int unit, int flags);
245static int sckbdprobe(int unit, int flags);
246static void scstart(struct tty *tp);
247static void scmousestart(struct tty *tp);
248static void scinit(void);
249static void scshutdown(int howto, void *arg);

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

640{
641 scr_stat *scp;
642 video_info_t info;
643 dev_t cdev = makedev(CDEV_MAJOR, 0);
644#ifdef DEVFS
645 int vc;
646#endif
647
243static int scparam(struct tty *tp, struct termios *t);
244static int scprobe(struct isa_device *dev);
245static int scvidprobe(int unit, int flags);
246static int sckbdprobe(int unit, int flags);
247static void scstart(struct tty *tp);
248static void scmousestart(struct tty *tp);
249static void scinit(void);
250static void scshutdown(int howto, void *arg);

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

641{
642 scr_stat *scp;
643 video_info_t info;
644 dev_t cdev = makedev(CDEV_MAJOR, 0);
645#ifdef DEVFS
646 int vc;
647#endif
648
649 dev->id_ointr = scintr;
648 scinit();
649 sc_flags = dev->id_flags;
650 if (!ISFONTAVAIL(adp_flags))
651 sc_flags &= ~CHAR_CURSOR;
652
653 scp = console[0];
654
655 /* copy temporary buffer to final buffer */

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

846{
847 struct tty *tp = scdevtotty(dev);
848
849 if (!tp)
850 return(ENXIO);
851 return((*linesw[tp->t_line].l_write)(tp, uio, flag));
852}
853
650 scinit();
651 sc_flags = dev->id_flags;
652 if (!ISFONTAVAIL(adp_flags))
653 sc_flags &= ~CHAR_CURSOR;
654
655 scp = console[0];
656
657 /* copy temporary buffer to final buffer */

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

848{
849 struct tty *tp = scdevtotty(dev);
850
851 if (!tp)
852 return(ENXIO);
853 return((*linesw[tp->t_line].l_write)(tp, uio, flag));
854}
855
854void
856static void
855scintr(int unit)
856{
857 static struct tty *cur_tty;
858 int c, len;
859 u_char *cp;
860
861 /*
862 * Loop while there is still input to get from the keyboard.

--- 3826 unchanged lines hidden ---
857scintr(int unit)
858{
859 static struct tty *cur_tty;
860 int c, len;
861 u_char *cp;
862
863 /*
864 * Loop while there is still input to get from the keyboard.

--- 3826 unchanged lines hidden ---