Deleted Added
full compact
sio.c (111821) sio.c (112154)
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 111821 2003-03-03 16:24:47Z phk $
33 * $FreeBSD: head/sys/dev/sio/sio.c 112154 2003-03-12 17:20:24Z sobomax $
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"

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

725 * (the values happen to be all distinct - this is good for
726 * avoiding false positive tests from bus echoes).
727 * o an output interrupt is generated and its vector is correct.
728 * o the interrupt goes away when the IIR in the UART is read.
729 */
730/* EXTRA DELAY? */
731 failures[0] = sio_getreg(com, com_cfcr) - CFCR_8BITS;
732 failures[1] = sio_getreg(com, com_ier) - IER_ETXRDY;
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"

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

725 * (the values happen to be all distinct - this is good for
726 * avoiding false positive tests from bus echoes).
727 * o an output interrupt is generated and its vector is correct.
728 * o the interrupt goes away when the IIR in the UART is read.
729 */
730/* EXTRA DELAY? */
731 failures[0] = sio_getreg(com, com_cfcr) - CFCR_8BITS;
732 failures[1] = sio_getreg(com, com_ier) - IER_ETXRDY;
733 failures[2] = sio_getreg(com, com_mcr) - mcr_image;
733 failures[2] = (sio_getreg(com, com_mcr) & 0x7f) - mcr_image;
734 DELAY(10000); /* Some internal modems need this time */
735 irqmap[1] = isa_irq_pending();
736 failures[4] = (sio_getreg(com, com_iir) & IIR_IMASK) - IIR_TXRDY;
737 DELAY(1000); /* XXX */
738 irqmap[2] = isa_irq_pending();
739 failures[6] = (sio_getreg(com, com_iir) & IIR_IMASK) - IIR_NOPEND;
740
741 /*

--- 2536 unchanged lines hidden ---
734 DELAY(10000); /* Some internal modems need this time */
735 irqmap[1] = isa_irq_pending();
736 failures[4] = (sio_getreg(com, com_iir) & IIR_IMASK) - IIR_TXRDY;
737 DELAY(1000); /* XXX */
738 irqmap[2] = isa_irq_pending();
739 failures[6] = (sio_getreg(com, com_iir) & IIR_IMASK) - IIR_NOPEND;
740
741 /*

--- 2536 unchanged lines hidden ---