Deleted Added
full compact
sio.c (171380) sio.c (172568)
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

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
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

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

21 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 *
29 * $FreeBSD: head/sys/pc98/cbus/sio.c 171380 2007-07-11 22:25:38Z mjacob $
29 * $FreeBSD: head/sys/pc98/cbus/sio.c 172568 2007-10-12 06:03:46Z kevlo $
30 * from: @(#)com.c 7.5 (Berkeley) 5/16/91
31 * from: i386/isa sio.c,v 1.234
32 */
33
34#include "opt_comconsole.h"
35#include "opt_compat.h"
36#include "opt_gdb.h"
37#include "opt_kdb.h"

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

1064 divisor = siodivisor(rclk, SIO_TEST_SPEED);
1065 sio_setreg(com, com_dlbl, divisor & 0xff);
1066 sio_setreg(com, com_dlbh, divisor >> 8);
1067 sio_setreg(com, com_cfcr, CFCR_8BITS);
1068 DELAY((16 + 1) * 1000000 / (SIO_TEST_SPEED / 10));
1069 }
1070
1071 /*
30 * from: @(#)com.c 7.5 (Berkeley) 5/16/91
31 * from: i386/isa sio.c,v 1.234
32 */
33
34#include "opt_comconsole.h"
35#include "opt_compat.h"
36#include "opt_gdb.h"
37#include "opt_kdb.h"

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

1064 divisor = siodivisor(rclk, SIO_TEST_SPEED);
1065 sio_setreg(com, com_dlbl, divisor & 0xff);
1066 sio_setreg(com, com_dlbh, divisor >> 8);
1067 sio_setreg(com, com_cfcr, CFCR_8BITS);
1068 DELAY((16 + 1) * 1000000 / (SIO_TEST_SPEED / 10));
1069 }
1070
1071 /*
1072 * Enable the interrupt gate and disable device interupts. This
1072 * Enable the interrupt gate and disable device interrupts. This
1073 * should leave the device driving the interrupt line low and
1074 * guarantee an edge trigger if an interrupt can be generated.
1075 */
1076/* EXTRA DELAY? */
1077 sio_setreg(com, com_mcr, mcr_image);
1078 sio_setreg(com, com_ier, 0);
1079 DELAY(1000); /* XXX */
1080 irqmap[0] = isa_irq_pending();

--- 3296 unchanged lines hidden ---
1073 * should leave the device driving the interrupt line low and
1074 * guarantee an edge trigger if an interrupt can be generated.
1075 */
1076/* EXTRA DELAY? */
1077 sio_setreg(com, com_mcr, mcr_image);
1078 sio_setreg(com, com_ier, 0);
1079 DELAY(1000); /* XXX */
1080 irqmap[0] = isa_irq_pending();

--- 3296 unchanged lines hidden ---