syscons.c (8c4344bebde9700d090f7bb57df7fc1be52ee5ce) syscons.c (6c0081e92ba843bef15fe7b01e7479f7ac01f762)
1/*-
2 * Copyright (c) 1992-1995 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 1992-1995 S�ren Schmidt
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 11 unchanged lines hidden (view full) ---

20 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
21 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 *
28 * $Id: syscons.c,v 1.107 1995/03/03 08:37:07 sos Exp $
28 * $Id: syscons.c,v 1.111 1995/04/04 20:06:26 sos Exp $
29 */
30
31#include "sc.h"
32#include "apm.h"
33#if NSC > 0
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/conf.h>

--- 161 unchanged lines hidden (view full) ---

198
199static struct kern_devconf kdc_sc[NSC] = {
200 0, 0, 0, /* filled in by dev_attach */
201 "sc", 0, { MDDT_ISA, 0, "tty" },
202 isa_generic_externalize, 0, 0, ISA_EXTERNALLEN,
203 &kdc_isa0, /* parent */
204 0, /* parentdata */
205 DC_BUSY, /* the console is almost always busy */
29 */
30
31#include "sc.h"
32#include "apm.h"
33#if NSC > 0
34#include <sys/param.h>
35#include <sys/systm.h>
36#include <sys/conf.h>

--- 161 unchanged lines hidden (view full) ---

198
199static struct kern_devconf kdc_sc[NSC] = {
200 0, 0, 0, /* filled in by dev_attach */
201 "sc", 0, { MDDT_ISA, 0, "tty" },
202 isa_generic_externalize, 0, 0, ISA_EXTERNALLEN,
203 &kdc_isa0, /* parent */
204 0, /* parentdata */
205 DC_BUSY, /* the console is almost always busy */
206 "Graphics console"
206 "Graphics console",
207 DC_CLS_DISPLAY /* class */
207};
208
209static inline void
210sc_registerdev(struct isa_device *id)
211{
212 if(id->id_unit)
213 kdc_sc[id->id_unit] = kdc_sc[0];
214 kdc_sc[id->id_unit].kdc_unit = id->id_unit;

--- 2858 unchanged lines hidden ---
208};
209
210static inline void
211sc_registerdev(struct isa_device *id)
212{
213 if(id->id_unit)
214 kdc_sc[id->id_unit] = kdc_sc[0];
215 kdc_sc[id->id_unit].kdc_unit = id->id_unit;

--- 2858 unchanged lines hidden ---