sc_machdep.c revision 119380
1119380Sjake/*-
2119380Sjake * Copyright (c) 2003 Jake Burkholder.
3119380Sjake * All rights reserved.
4119380Sjake *
5119380Sjake * Redistribution and use in source and binary forms, with or without
6119380Sjake * modification, are permitted provided that the following conditions
7119380Sjake * are met:
8119380Sjake * 1. Redistributions of source code must retain the above copyright
9119380Sjake *    notice, this list of conditions and the following disclaimer.
10119380Sjake * 2. Redistributions in binary form must reproduce the above copyright
11119380Sjake *    notice, this list of conditions and the following disclaimer in the
12119380Sjake *    documentation and/or other materials provided with the distribution.
13119380Sjake *
14119380Sjake * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
15119380Sjake * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16119380Sjake * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
17119380Sjake * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
18119380Sjake * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19119380Sjake * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20119380Sjake * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21119380Sjake * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22119380Sjake * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23119380Sjake * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24119380Sjake * SUCH DAMAGE.
25119380Sjake *
26119380Sjake * $FreeBSD: head/sys/sparc64/sparc64/sc_machdep.c 119380 2003-08-24 00:47:40Z jake $
27119380Sjake */
28119380Sjake
29119380Sjake#include <sys/param.h>
30119380Sjake#include <sys/systm.h>
31119380Sjake#include <sys/kernel.h>
32119380Sjake#include <sys/module.h>
33119380Sjake#include <sys/bus.h>
34119380Sjake#include <sys/cons.h>
35119380Sjake#include <sys/kbio.h>
36119380Sjake#include <sys/consio.h>
37119380Sjake#include <sys/sysctl.h>
38119380Sjake
39119380Sjake#include <dev/syscons/syscons.h>
40119380Sjake
41119380Sjakestatic sc_softc_t sc_softcs[8];
42119380Sjake
43119380Sjakeint
44119380Sjakesc_get_cons_priority(int *unit, int *flags)
45119380Sjake{
46119380Sjake
47119380Sjake	*unit = 0;
48119380Sjake	*flags = 0;
49119380Sjake	return (CN_INTERNAL);
50119380Sjake}
51119380Sjake
52119380Sjakeint
53119380Sjakesc_max_unit(void)
54119380Sjake{
55119380Sjake	return (1);
56119380Sjake}
57119380Sjake
58119380Sjakesc_softc_t *
59119380Sjakesc_get_softc(int unit, int flags)
60119380Sjake{
61119380Sjake	sc_softc_t *sc;
62119380Sjake
63119380Sjake	if (unit < 0)
64119380Sjake		return (NULL);
65119380Sjake	sc = &sc_softcs[unit];
66119380Sjake	sc->unit = unit;
67119380Sjake	if ((sc->flags & SC_INIT_DONE) == 0) {
68119380Sjake		sc->keyboard = -1;
69119380Sjake		sc->adapter = -1;
70119380Sjake		sc->cursor_char = SC_CURSOR_CHAR;
71119380Sjake		sc->mouse_char = SC_MOUSE_CHAR;
72119380Sjake	}
73119380Sjake	return (sc);
74119380Sjake}
75119380Sjake
76119380Sjakevoid
77119380Sjakesc_get_bios_values(bios_values_t *values)
78119380Sjake{
79119380Sjake}
80119380Sjake
81119380Sjakeint
82119380Sjakesc_tone(int hz)
83119380Sjake{
84119380Sjake	return (0);
85119380Sjake}
86