kern_cons.c (798) | kern_cons.c (849) |
---|---|
1/* 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1991 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * from: @(#)cons.c 7.2 (Berkeley) 5/9/91 | 1/* 2 * Copyright (c) 1988 University of Utah. 3 * Copyright (c) 1991 The Regents of the University of California. 4 * All rights reserved. 5 * 6 * This code is derived from software contributed to Berkeley by 7 * the Systems Programming Group of the University of Utah Computer 8 * Science Department. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * from: @(#)cons.c 7.2 (Berkeley) 5/9/91 |
39 * $Id: cons.c,v 1.5 1993/11/07 17:41:32 wollman Exp $ | 39 * $Id: cons.c,v 1.6 1993/11/25 01:30:50 wollman Exp $ |
40 */ 41 42 43#include "sys/param.h" 44#include "sys/proc.h" 45#include "sys/user.h" 46#include "sys/systm.h" 47#include "sys/buf.h" 48#include "sys/ioctl.h" 49#include "sys/tty.h" 50#include "sys/file.h" 51#include "sys/conf.h" 52#include "machine/stdarg.h" 53 54#include "machine/cons.h" 55 56/* XXX - all this could be autoconfig()ed */ 57int pccnprobe(), pccninit(), pccngetc(), pccnputc(); | 40 */ 41 42 43#include "sys/param.h" 44#include "sys/proc.h" 45#include "sys/user.h" 46#include "sys/systm.h" 47#include "sys/buf.h" 48#include "sys/ioctl.h" 49#include "sys/tty.h" 50#include "sys/file.h" 51#include "sys/conf.h" 52#include "machine/stdarg.h" 53 54#include "machine/cons.h" 55 56/* XXX - all this could be autoconfig()ed */ 57int pccnprobe(), pccninit(), pccngetc(), pccnputc(); |
58 59#include "sio.h" 60#if NSIO > 0 61int siocnprobe(), siocninit(), siocngetc(), siocnputc(); 62#endif 63 |
|
58#include "com.h" 59#if NCOM > 0 60int comcnprobe(), comcninit(), comcngetc(), comcnputc(); 61#endif 62 63struct consdev constab[] = { 64 { pccnprobe, pccninit, pccngetc, pccnputc }, | 64#include "com.h" 65#if NCOM > 0 66int comcnprobe(), comcninit(), comcngetc(), comcnputc(); 67#endif 68 69struct consdev constab[] = { 70 { pccnprobe, pccninit, pccngetc, pccnputc }, |
71#if NSIO > 0 72 { siocnprobe, siocninit, siocngetc, siocnputc }, 73#endif |
|
65#if NCOM > 0 66 { comcnprobe, comcninit, comcngetc, comcnputc }, 67#endif 68 { 0 }, 69}; 70/* end XXX */ 71 72struct tty *constty = 0; /* virtual console output device */ --- 150 unchanged lines hidden --- | 74#if NCOM > 0 75 { comcnprobe, comcninit, comcngetc, comcnputc }, 76#endif 77 { 0 }, 78}; 79/* end XXX */ 80 81struct tty *constty = 0; /* virtual console output device */ --- 150 unchanged lines hidden --- |