1*95e1ffb1Schristos /* $NetBSD: conf.c,v 1.31 2005/12/11 12:18:17 christos Exp $ */ 20b036e11Schuck 30b036e11Schuck /*- 40b036e11Schuck * Copyright (c) 1991 The Regents of the University of California. 50b036e11Schuck * All rights reserved. 60b036e11Schuck * 70b036e11Schuck * Redistribution and use in source and binary forms, with or without 80b036e11Schuck * modification, are permitted provided that the following conditions 90b036e11Schuck * are met: 100b036e11Schuck * 1. Redistributions of source code must retain the above copyright 110b036e11Schuck * notice, this list of conditions and the following disclaimer. 120b036e11Schuck * 2. Redistributions in binary form must reproduce the above copyright 130b036e11Schuck * notice, this list of conditions and the following disclaimer in the 140b036e11Schuck * documentation and/or other materials provided with the distribution. 15aad01611Sagc * 3. Neither the name of the University nor the names of its contributors 160b036e11Schuck * may be used to endorse or promote products derived from this software 170b036e11Schuck * without specific prior written permission. 180b036e11Schuck * 190b036e11Schuck * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 200b036e11Schuck * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 210b036e11Schuck * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 220b036e11Schuck * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 230b036e11Schuck * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 240b036e11Schuck * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 250b036e11Schuck * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 260b036e11Schuck * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 270b036e11Schuck * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 280b036e11Schuck * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 290b036e11Schuck * SUCH DAMAGE. 300b036e11Schuck * 310b036e11Schuck * @(#)conf.c 7.9 (Berkeley) 5/28/91 320b036e11Schuck */ 330b036e11Schuck 344b2744bfSlukem #include <sys/cdefs.h> 35*95e1ffb1Schristos __KERNEL_RCSID(0, "$NetBSD: conf.c,v 1.31 2005/12/11 12:18:17 christos Exp $"); 364b2744bfSlukem 370b036e11Schuck #include <sys/param.h> 380b036e11Schuck #include <sys/conf.h> 390b036e11Schuck 400b036e11Schuck /* 410b036e11Schuck * This entire table could be autoconfig()ed but that would mean that 420b036e11Schuck * the kernel's idea of the console would be out of sync with that of 430b036e11Schuck * the standalone boot. I think it best that they both use the same 440b036e11Schuck * known algorithm unless we see a pressing need otherwise. 450b036e11Schuck */ 460b036e11Schuck #include <dev/cons.h> 470b036e11Schuck 4846263136Schuck #define zsc_pcccnpollc nullcnpollc 4946263136Schuck #include "zsc_pcc.h" 5046263136Schuck cons_decl(zsc_pcc); 510b036e11Schuck 527f3786d3Sscw #define zsc_pcctwocnpollc nullcnpollc 537f3786d3Sscw #define zsc_pcctwocngetc zsc_pcccngetc 547f3786d3Sscw #define zsc_pcctwocnputc zsc_pcccnputc 557f3786d3Sscw #include "zsc_pcctwo.h" 567f3786d3Sscw cons_decl(zsc_pcctwo); 577f3786d3Sscw 58a72d37c4Sscw #define clmpcccnpollc nullcnpollc 59a72d37c4Sscw #include "clmpcc_pcctwo.h" 60a72d37c4Sscw cons_decl(clmpcc); 61a72d37c4Sscw 62a72d37c4Sscw 630b036e11Schuck struct consdev constab[] = { 6446263136Schuck #if NZSC_PCC > 0 6546263136Schuck cons_init(zsc_pcc), 660b036e11Schuck #endif 677f3786d3Sscw #if NZSC_PCCTWO > 0 687f3786d3Sscw cons_init(zsc_pcctwo), 697f3786d3Sscw #endif 70a72d37c4Sscw #if NCLMPCC_PCCTWO > 0 71a72d37c4Sscw cons_init(clmpcc), 72a72d37c4Sscw #endif 730b036e11Schuck { 0 }, 740b036e11Schuck }; 75