1*355a2878Srin /* $NetBSD: conf.c,v 1.64 2019/07/26 10:48:44 rin Exp $ */ 24fdae7a0Scgd 38ae7f8bcSbriggs /* 48ae7f8bcSbriggs * Copyright (c) 1990 The Regents of the University of California. 58ae7f8bcSbriggs * All rights reserved. 68ae7f8bcSbriggs * 78ae7f8bcSbriggs * Redistribution and use in source and binary forms, with or without 88ae7f8bcSbriggs * modification, are permitted provided that the following conditions 98ae7f8bcSbriggs * are met: 108ae7f8bcSbriggs * 1. Redistributions of source code must retain the above copyright 118ae7f8bcSbriggs * notice, this list of conditions and the following disclaimer. 128ae7f8bcSbriggs * 2. Redistributions in binary form must reproduce the above copyright 138ae7f8bcSbriggs * notice, this list of conditions and the following disclaimer in the 148ae7f8bcSbriggs * documentation and/or other materials provided with the distribution. 15aad01611Sagc * 3. Neither the name of the University nor the names of its contributors 168ae7f8bcSbriggs * may be used to endorse or promote products derived from this software 178ae7f8bcSbriggs * without specific prior written permission. 188ae7f8bcSbriggs * 198ae7f8bcSbriggs * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 208ae7f8bcSbriggs * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 218ae7f8bcSbriggs * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 228ae7f8bcSbriggs * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 238ae7f8bcSbriggs * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 248ae7f8bcSbriggs * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 258ae7f8bcSbriggs * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 268ae7f8bcSbriggs * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 278ae7f8bcSbriggs * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 288ae7f8bcSbriggs * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 298ae7f8bcSbriggs * SUCH DAMAGE. 308ae7f8bcSbriggs */ 318ae7f8bcSbriggs /*- 32a15027bdSbriggs * Derived a long time ago from 334fdae7a0Scgd * @(#)conf.c 7.9 (Berkeley) 5/28/91 348ae7f8bcSbriggs */ 358ae7f8bcSbriggs 364b2744bfSlukem #include <sys/cdefs.h> 37*355a2878Srin __KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.64 2019/07/26 10:48:44 rin Exp $"); 384b2744bfSlukem 394c4e964eSbriggs #include <sys/param.h> 404c4e964eSbriggs #include <sys/conf.h> 413266a82bSbriggs #include <dev/cons.h> 428ae7f8bcSbriggs 438a007407Sscottr #include "akbd.h" 44*355a2878Srin #include "genfb.h" 458a007407Sscottr #include "macfb.h" 46*355a2878Srin #include "zstty.h" 47*355a2878Srin 488a007407Sscottr #define maccnpollc nullcnpollc 498a007407Sscottr cons_decl(mac); 502635a9c6Sbriggs #define zscnpollc nullcnpollc 512635a9c6Sbriggs cons_decl(zs); 523266a82bSbriggs 533266a82bSbriggs struct consdev constab[] = { 542635a9c6Sbriggs #if NZSTTY > 0 552635a9c6Sbriggs cons_init(zs), 5622a76ec0Sbriggs #endif 57*355a2878Srin #if NAKBD > 0 && (NMACFB + NGENFB) > 0 588a007407Sscottr cons_init(mac), 598a007407Sscottr #endif 603266a82bSbriggs { 0 }, 613266a82bSbriggs }; 62