[BACK]Return to wscons_machdep.c CVS log [TXT][DIR] Up to [local] / sys / arch / hppa64 / hppa64

Annotation of sys/arch/hppa64/hppa64/wscons_machdep.c, Revision 1.1

1.1     ! nbrk        1: /*     $OpenBSD: wscons_machdep.c,v 1.1 2005/04/01 10:40:48 mickey Exp $       */
        !             2:
        !             3: /*
        !             4:  * Copyright (c) 2005 Michael Shalayeff
        !             5:  * All rights reserved.
        !             6:  *
        !             7:  * Permission to use, copy, modify, and distribute this software for any
        !             8:  * purpose with or without fee is hereby granted, provided that the above
        !             9:  * copyright notice and this permission notice appear in all copies.
        !            10:  *
        !            11:  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
        !            12:  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
        !            13:  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
        !            14:  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
        !            15:  * WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER IN
        !            16:  * AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
        !            17:  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
        !            18:  */
        !            19:
        !            20: #include <sys/param.h>
        !            21: #include <sys/systm.h>
        !            22: #include <sys/kernel.h>
        !            23: #include <sys/conf.h>
        !            24:
        !            25: #include <dev/cons.h>
        !            26:
        !            27: #include "wsdisplay.h"
        !            28: #if NWSDISPLAY > 0
        !            29: #include <dev/wscons/wsdisplayvar.h>
        !            30: #endif
        !            31:
        !            32: #include "wskbd.h"
        !            33: #if NWSKBD > 0
        !            34: #include <dev/wscons/wskbdvar.h>
        !            35: #endif
        !            36:
        !            37: cons_decl(ws);
        !            38:
        !            39: void
        !            40: wscnprobe(struct consdev *cp)
        !            41: {
        !            42:        /*
        !            43:         * Due to various device probe restrictions, the wscons console
        !            44:         * can never be enabled early during boot.
        !            45:         * It will be enabled as soon as enough wscons components get
        !            46:         * attached.
        !            47:         * So do nothing there, the switch will occur in
        !            48:         * wsdisplay_emul_attach() later.
        !            49:         */
        !            50: }
        !            51:
        !            52: void
        !            53: wscninit(struct consdev *cp)
        !            54: {
        !            55: }
        !            56:
        !            57: void
        !            58: wscnputc(dev_t dev, int i)
        !            59: {
        !            60: #if NWSDISPLAY > 0
        !            61:        wsdisplay_cnputc(dev, i);
        !            62: #endif
        !            63: }
        !            64:
        !            65: int
        !            66: wscngetc(dev_t dev)
        !            67: {
        !            68: #if NWSKBD > 0
        !            69:        return (wskbd_cngetc(dev));
        !            70: #else
        !            71:        return (0);
        !            72: #endif
        !            73: }
        !            74:
        !            75: void
        !            76: wscnpollc(dev_t dev, int on)
        !            77: {
        !            78: #if NWSKBD > 0
        !            79:        wskbd_cnpollc(dev, on);
        !            80: #endif
        !            81: }

CVSweb