Deleted Added
full compact
sio.c (83832) sio.c (84029)
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 83832 2001-09-22 19:44:37Z dfr $
33 * $FreeBSD: head/sys/dev/sio/sio.c 84029 2001-09-27 17:00:25Z 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"

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

3330 struct siocnstate sp;
3331 Port_t iobase;
3332
3333 if (minor(dev) == siogdbunit)
3334 iobase = siogdbiobase;
3335 else
3336 iobase = siocniobase;
3337 s = spltty();
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"

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

3330 struct siocnstate sp;
3331 Port_t iobase;
3332
3333 if (minor(dev) == siogdbunit)
3334 iobase = siogdbiobase;
3335 else
3336 iobase = siocniobase;
3337 s = spltty();
3338 if (sio_inited)
3339 mtx_lock_spin(&sio_lock);
3338 siocnopen(&sp, iobase, comdefaultrate);
3339 siocntxwait(iobase);
3340 outb(iobase + com_data, c);
3341 siocnclose(&sp, iobase);
3340 siocnopen(&sp, iobase, comdefaultrate);
3341 siocntxwait(iobase);
3342 outb(iobase + com_data, c);
3343 siocnclose(&sp, iobase);
3344 if (sio_inited)
3345 mtx_unlock_spin(&sio_lock);
3342 splx(s);
3343}
3344
3345#ifdef __alpha__
3346int
3347siogdbgetc()
3348{
3349 int c;

--- 40 unchanged lines hidden ---
3346 splx(s);
3347}
3348
3349#ifdef __alpha__
3350int
3351siogdbgetc()
3352{
3353 int c;

--- 40 unchanged lines hidden ---