sio.c (85365) | sio.c (85371) |
---|---|
1/*- 2 * Copyright (c) 1991 The Regents of the University of California. 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 --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * | 1/*- 2 * Copyright (c) 1991 The Regents of the University of California. 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 --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * |
33 * $FreeBSD: head/sys/dev/sio/sio.c 85365 2001-10-23 15:17:33Z imp $ | 33 * $FreeBSD: head/sys/dev/sio/sio.c 85371 2001-10-23 20:16:56Z jlemon $ |
34 * from: @(#)com.c 7.5 (Berkeley) 5/16/91 35 * from: i386/isa sio.c,v 1.234 36 */ 37 38#include "opt_comconsole.h" 39#include "opt_compat.h" 40#include "opt_ddb.h" 41#include "opt_sio.h" --- 2485 unchanged lines hidden (view full) --- 2527#ifdef __alpha__ 2528int siocnattach __P((int port, int speed)); 2529int siogdbattach __P((int port, int speed)); 2530int siogdbgetc __P((void)); 2531void siogdbputc __P((int c)); 2532#else 2533static cn_probe_t siocnprobe; 2534static cn_init_t siocninit; | 34 * from: @(#)com.c 7.5 (Berkeley) 5/16/91 35 * from: i386/isa sio.c,v 1.234 36 */ 37 38#include "opt_comconsole.h" 39#include "opt_compat.h" 40#include "opt_ddb.h" 41#include "opt_sio.h" --- 2485 unchanged lines hidden (view full) --- 2527#ifdef __alpha__ 2528int siocnattach __P((int port, int speed)); 2529int siogdbattach __P((int port, int speed)); 2530int siogdbgetc __P((void)); 2531void siogdbputc __P((int c)); 2532#else 2533static cn_probe_t siocnprobe; 2534static cn_init_t siocninit; |
2535static cn_term_t siocnterm; |
|
2535#endif 2536static cn_checkc_t siocncheckc; 2537static cn_getc_t siocngetc; 2538static cn_putc_t siocnputc; 2539 2540#ifndef __alpha__ | 2536#endif 2537static cn_checkc_t siocncheckc; 2538static cn_getc_t siocngetc; 2539static cn_putc_t siocnputc; 2540 2541#ifndef __alpha__ |
2541CONS_DRIVER(sio, siocnprobe, siocninit, NULL, siocngetc, siocncheckc, | 2542CONS_DRIVER(sio, siocnprobe, siocninit, siocnterm, siocngetc, siocncheckc, |
2542 siocnputc, NULL); 2543#endif 2544 2545/* To get the GDB related variables */ 2546#if DDB > 0 2547#include <ddb/ddb.h> 2548#endif 2549 --- 235 unchanged lines hidden (view full) --- 2785 2786static void 2787siocninit(cp) 2788 struct consdev *cp; 2789{ 2790 comconsole = DEV_TO_UNIT(cp->cn_dev); 2791} 2792 | 2543 siocnputc, NULL); 2544#endif 2545 2546/* To get the GDB related variables */ 2547#if DDB > 0 2548#include <ddb/ddb.h> 2549#endif 2550 --- 235 unchanged lines hidden (view full) --- 2786 2787static void 2788siocninit(cp) 2789 struct consdev *cp; 2790{ 2791 comconsole = DEV_TO_UNIT(cp->cn_dev); 2792} 2793 |
2794static void 2795siocnterm(cp) 2796 struct consdev *cp; 2797{ 2798 comconsole = -1; 2799} 2800 |
|
2793#endif 2794 2795#ifdef __alpha__ 2796 2797CONS_DRIVER(sio, NULL, NULL, NULL, siocngetc, siocncheckc, siocnputc, NULL); 2798 2799int 2800siocnattach(port, speed) --- 194 unchanged lines hidden --- | 2801#endif 2802 2803#ifdef __alpha__ 2804 2805CONS_DRIVER(sio, NULL, NULL, NULL, siocngetc, siocncheckc, siocnputc, NULL); 2806 2807int 2808siocnattach(port, speed) --- 194 unchanged lines hidden --- |