| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | /* $NetBSD: com.c,v 1.382 2022/12/09 00:35:58 knakahara Exp $ */ | | 1 | /* $NetBSD: com.c,v 1.383 2023/04/11 12:55:59 riastradh Exp $ */ |
2 | | | 2 | |
3 | /*- | | 3 | /*- |
4 | * Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc. | | 4 | * Copyright (c) 1998, 1999, 2004, 2008 The NetBSD Foundation, Inc. |
5 | * All rights reserved. | | 5 | * All rights reserved. |
6 | * | | 6 | * |
7 | * This code is derived from software contributed to The NetBSD Foundation | | 7 | * This code is derived from software contributed to The NetBSD Foundation |
8 | * by Charles M. Hannum. | | 8 | * by Charles M. Hannum. |
9 | * | | 9 | * |
10 | * Redistribution and use in source and binary forms, with or without | | 10 | * Redistribution and use in source and binary forms, with or without |
11 | * modification, are permitted provided that the following conditions | | 11 | * modification, are permitted provided that the following conditions |
12 | * are met: | | 12 | * are met: |
13 | * 1. Redistributions of source code must retain the above copyright | | 13 | * 1. Redistributions of source code must retain the above copyright |
14 | * notice, this list of conditions and the following disclaimer. | | 14 | * notice, this list of conditions and the following disclaimer. |
| @@ -57,30 +57,31 @@ | | | @@ -57,30 +57,31 @@ |
57 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | | 57 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
58 | * SUCH DAMAGE. | | 58 | * SUCH DAMAGE. |
59 | * | | 59 | * |
60 | * @(#)com.c 7.5 (Berkeley) 5/16/91 | | 60 | * @(#)com.c 7.5 (Berkeley) 5/16/91 |
61 | */ | | 61 | */ |
62 | | | 62 | |
63 | /* | | 63 | /* |
64 | * COM driver, uses National Semiconductor NS16450/NS16550AF UART | | 64 | * COM driver, uses National Semiconductor NS16450/NS16550AF UART |
65 | * Supports automatic hardware flow control on StarTech ST16C650A UART | | 65 | * Supports automatic hardware flow control on StarTech ST16C650A UART |
66 | * | | 66 | * |
67 | * Lock order: | | 67 | * Lock order: |
68 | * tty_lock (IPL_VM) | | 68 | * tty_lock (IPL_VM) |
69 | * -> sc->sc_lock (IPL_HIGH) | | 69 | * -> sc->sc_lock (IPL_HIGH) |
| | | 70 | * -> timecounter_lock (IPL_HIGH) |
70 | */ | | 71 | */ |
71 | | | 72 | |
72 | #include <sys/cdefs.h> | | 73 | #include <sys/cdefs.h> |
73 | __KERNEL_RCSID(0, "$NetBSD: com.c,v 1.382 2022/12/09 00:35:58 knakahara Exp $"); | | 74 | __KERNEL_RCSID(0, "$NetBSD: com.c,v 1.383 2023/04/11 12:55:59 riastradh Exp $"); |
74 | | | 75 | |
75 | #include "opt_com.h" | | 76 | #include "opt_com.h" |
76 | #include "opt_ddb.h" | | 77 | #include "opt_ddb.h" |
77 | #include "opt_kgdb.h" | | 78 | #include "opt_kgdb.h" |
78 | #include "opt_lockdebug.h" | | 79 | #include "opt_lockdebug.h" |
79 | #include "opt_multiprocessor.h" | | 80 | #include "opt_multiprocessor.h" |
80 | #include "opt_ntp.h" | | 81 | #include "opt_ntp.h" |
81 | | | 82 | |
82 | /* The COM16650 option was renamed to COM_16650. */ | | 83 | /* The COM16650 option was renamed to COM_16650. */ |
83 | #ifdef COM16650 | | 84 | #ifdef COM16650 |
84 | #error Obsolete COM16650 option; use COM_16650 instead. | | 85 | #error Obsolete COM16650 option; use COM_16650 instead. |
85 | #endif | | 86 | #endif |
86 | | | 87 | |