sio.c (98619) | sio.c (98691) |
---|---|
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 98619 2002-06-22 16:33:29Z n_hibma $ | 33 * $FreeBSD: head/sys/dev/sio/sio.c 98691 2002-06-23 18:57:53Z n_hibma $ |
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" --- 2990 unchanged lines hidden (view full) --- 3032siocnattach(port, speed) 3033 int port; 3034 int speed; 3035{ 3036 int s; 3037 u_char cfcr; 3038 u_int divisor; 3039 struct siocnstate sp; | 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" --- 2990 unchanged lines hidden (view full) --- 3032siocnattach(port, speed) 3033 int port; 3034 int speed; 3035{ 3036 int s; 3037 u_char cfcr; 3038 u_int divisor; 3039 struct siocnstate sp; |
3040 int unit = 0; /* XXX random value! */ |
|
3040 3041 siocniobase = port; | 3041 3042 siocniobase = port; |
3043 siocnunit = unit; |
|
3042 comdefaultrate = speed; 3043 sio_consdev.cn_pri = CN_NORMAL; | 3044 comdefaultrate = speed; 3045 sio_consdev.cn_pri = CN_NORMAL; |
3044 sio_consdev.cn_dev = makedev(CDEV_MAJOR, 0); | 3046 sio_consdev.cn_dev = makedev(CDEV_MAJOR, unit); |
3045 3046 s = spltty(); 3047 3048 /* 3049 * Initialize the divisor latch. We can't rely on 3050 * siocnopen() to do this the first time, since it 3051 * avoids writing to the latch if the latch appears 3052 * to have the correct value. Also, if we didn't --- 19 unchanged lines hidden (view full) --- 3072siogdbattach(port, speed) 3073 int port; 3074 int speed; 3075{ 3076 int s; 3077 u_char cfcr; 3078 u_int divisor; 3079 struct siocnstate sp; | 3047 3048 s = spltty(); 3049 3050 /* 3051 * Initialize the divisor latch. We can't rely on 3052 * siocnopen() to do this the first time, since it 3053 * avoids writing to the latch if the latch appears 3054 * to have the correct value. Also, if we didn't --- 19 unchanged lines hidden (view full) --- 3074siogdbattach(port, speed) 3075 int port; 3076 int speed; 3077{ 3078 int s; 3079 u_char cfcr; 3080 u_int divisor; 3081 struct siocnstate sp; |
3080 int unit = 1; /* XXX !!! */ | 3082 int unit = 1; /* XXX random value! */ |
3081 3082 siogdbiobase = port; 3083 gdbdefaultrate = speed; 3084 3085 printf("sio%d: gdb debugging port\n", unit); 3086 siogdbunit = unit; 3087#if DDB > 0 3088 gdbdev = makedev(CDEV_MAJOR, unit); --- 172 unchanged lines hidden --- | 3083 3084 siogdbiobase = port; 3085 gdbdefaultrate = speed; 3086 3087 printf("sio%d: gdb debugging port\n", unit); 3088 siogdbunit = unit; 3089#if DDB > 0 3090 gdbdev = makedev(CDEV_MAJOR, unit); --- 172 unchanged lines hidden --- |