1239696Sgonzo/*- 2239696Sgonzo * Copyright (c) 2003 Jake Burkholder. 3239696Sgonzo * All rights reserved. 4239696Sgonzo * 5239696Sgonzo * Redistribution and use in source and binary forms, with or without 6239696Sgonzo * modification, are permitted provided that the following conditions 7239696Sgonzo * are met: 8239696Sgonzo * 1. Redistributions of source code must retain the above copyright 9239696Sgonzo * notice, this list of conditions and the following disclaimer. 10239696Sgonzo * 2. Redistributions in binary form must reproduce the above copyright 11239696Sgonzo * notice, this list of conditions and the following disclaimer in the 12239696Sgonzo * documentation and/or other materials provided with the distribution. 13239696Sgonzo * 14239696Sgonzo * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15239696Sgonzo * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16239696Sgonzo * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17239696Sgonzo * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18239696Sgonzo * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19239696Sgonzo * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20239696Sgonzo * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21239696Sgonzo * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22239696Sgonzo * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23239696Sgonzo * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24239696Sgonzo * SUCH DAMAGE. 25239696Sgonzo * 26239696Sgonzo */ 27239696Sgonzo 28239696Sgonzo#include <sys/cdefs.h> 29239696Sgonzo__FBSDID("$FreeBSD: releng/10.3/sys/arm/arm/sc_machdep.c 239696 2012-08-25 23:59:31Z gonzo $"); 30239696Sgonzo 31239696Sgonzo#include <sys/param.h> 32239696Sgonzo#include <sys/systm.h> 33239696Sgonzo#include <sys/kernel.h> 34239696Sgonzo#include <sys/module.h> 35239696Sgonzo#include <sys/bus.h> 36239696Sgonzo#include <sys/cons.h> 37239696Sgonzo#include <sys/kbio.h> 38239696Sgonzo#include <sys/consio.h> 39239696Sgonzo#include <sys/sysctl.h> 40239696Sgonzo 41239696Sgonzo#include <dev/syscons/syscons.h> 42239696Sgonzo 43239696Sgonzostatic sc_softc_t sc_softcs[8]; 44239696Sgonzo 45239696Sgonzoint 46239696Sgonzosc_get_cons_priority(int *unit, int *flags) 47239696Sgonzo{ 48239696Sgonzo 49239696Sgonzo *unit = 0; 50239696Sgonzo *flags = 0; 51239696Sgonzo return (CN_INTERNAL); 52239696Sgonzo} 53239696Sgonzo 54239696Sgonzoint 55239696Sgonzosc_max_unit(void) 56239696Sgonzo{ 57239696Sgonzo return (1); 58239696Sgonzo} 59239696Sgonzo 60239696Sgonzosc_softc_t * 61239696Sgonzosc_get_softc(int unit, int flags) 62239696Sgonzo{ 63239696Sgonzo sc_softc_t *sc; 64239696Sgonzo 65239696Sgonzo if (unit < 0) 66239696Sgonzo return (NULL); 67239696Sgonzo sc = &sc_softcs[unit]; 68239696Sgonzo sc->unit = unit; 69239696Sgonzo if ((sc->flags & SC_INIT_DONE) == 0) { 70239696Sgonzo sc->keyboard = -1; 71239696Sgonzo sc->adapter = -1; 72239696Sgonzo sc->cursor_char = SC_CURSOR_CHAR; 73239696Sgonzo sc->mouse_char = SC_MOUSE_CHAR; 74239696Sgonzo } 75239696Sgonzo return (sc); 76239696Sgonzo} 77239696Sgonzo 78239696Sgonzovoid 79239696Sgonzosc_get_bios_values(bios_values_t *values) 80239696Sgonzo{ 81239696Sgonzo values->cursor_start = 0; 82239696Sgonzo values->cursor_end = 32; 83239696Sgonzo values->shift_state = 0; 84239696Sgonzo} 85239696Sgonzo 86239696Sgonzoint 87239696Sgonzosc_tone(int hz) 88239696Sgonzo{ 89239696Sgonzo return (0); 90239696Sgonzo} 91