sio.c (172568) | sio.c (174283) |
---|---|
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 --- 17 unchanged lines hidden (view full) --- 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * from: @(#)com.c 7.5 (Berkeley) 5/16/91 30 * from: i386/isa sio.c,v 1.234 31 */ 32 33#include <sys/cdefs.h> | 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 --- 17 unchanged lines hidden (view full) --- 26 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 27 * SUCH DAMAGE. 28 * 29 * from: @(#)com.c 7.5 (Berkeley) 5/16/91 30 * from: i386/isa sio.c,v 1.234 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: head/sys/dev/sio/sio.c 172568 2007-10-12 06:03:46Z kevlo $"); | 34__FBSDID("$FreeBSD: head/sys/dev/sio/sio.c 174283 2007-12-05 05:16:56Z julian $"); |
35 36#include "opt_comconsole.h" 37#include "opt_compat.h" 38#include "opt_gdb.h" 39#include "opt_kdb.h" 40#include "opt_sio.h" 41 42/* --- 2395 unchanged lines hidden (view full) --- 2438 if (COM_CONSOLE(flags) || COM_DEBUGGER(flags)) { 2439 int port; 2440 Port_t iobase; 2441 2442 if (resource_int_value("sio", unit, "port", &port)) 2443 continue; 2444 iobase = port; 2445 s = spltty(); | 35 36#include "opt_comconsole.h" 37#include "opt_compat.h" 38#include "opt_gdb.h" 39#include "opt_kdb.h" 40#include "opt_sio.h" 41 42/* --- 2395 unchanged lines hidden (view full) --- 2438 if (COM_CONSOLE(flags) || COM_DEBUGGER(flags)) { 2439 int port; 2440 Port_t iobase; 2441 2442 if (resource_int_value("sio", unit, "port", &port)) 2443 continue; 2444 iobase = port; 2445 s = spltty(); |
2446 if (boothowto & RB_SERIAL) { | 2446 if ((boothowto & RB_SERIAL) && COM_CONSOLE(flags)) { |
2447 boot_speed = 2448 siocngetspeed(iobase, comdefaultrclk); 2449 if (boot_speed) 2450 comdefaultrate = boot_speed; 2451 } 2452 2453 /* 2454 * Initialize the divisor latch. We can't rely on --- 158 unchanged lines hidden --- | 2447 boot_speed = 2448 siocngetspeed(iobase, comdefaultrclk); 2449 if (boot_speed) 2450 comdefaultrate = boot_speed; 2451 } 2452 2453 /* 2454 * Initialize the divisor latch. We can't rely on --- 158 unchanged lines hidden --- |