1*57c9ec53SEmmanuel Vadot /*-
2*57c9ec53SEmmanuel Vadot * Copyright (c) 2022 Beckhoff Automation GmbH & Co. KG
3*57c9ec53SEmmanuel Vadot *
4*57c9ec53SEmmanuel Vadot * Redistribution and use in source and binary forms, with or without
5*57c9ec53SEmmanuel Vadot * modification, are permitted provided that the following conditions
6*57c9ec53SEmmanuel Vadot * are met:
7*57c9ec53SEmmanuel Vadot * 1. Redistributions of source code must retain the above copyright
8*57c9ec53SEmmanuel Vadot * notice, this list of conditions and the following disclaimer.
9*57c9ec53SEmmanuel Vadot * 2. Redistributions in binary form must reproduce the above copyright
10*57c9ec53SEmmanuel Vadot * notice, this list of conditions and the following disclaimer in the
11*57c9ec53SEmmanuel Vadot * documentation and/or other materials provided with the distribution.
12*57c9ec53SEmmanuel Vadot *
13*57c9ec53SEmmanuel Vadot * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
14*57c9ec53SEmmanuel Vadot * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
15*57c9ec53SEmmanuel Vadot * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
16*57c9ec53SEmmanuel Vadot * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
17*57c9ec53SEmmanuel Vadot * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
18*57c9ec53SEmmanuel Vadot * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
19*57c9ec53SEmmanuel Vadot * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
20*57c9ec53SEmmanuel Vadot * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
21*57c9ec53SEmmanuel Vadot * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
22*57c9ec53SEmmanuel Vadot * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
23*57c9ec53SEmmanuel Vadot * SUCH DAMAGE.
24*57c9ec53SEmmanuel Vadot *
25*57c9ec53SEmmanuel Vadot */
26*57c9ec53SEmmanuel Vadot
27*57c9ec53SEmmanuel Vadot #ifndef _LINUXKPI_LINUX_CONSOLE_H_
28*57c9ec53SEmmanuel Vadot #define _LINUXKPI_LINUX_CONSOLE_H_
29*57c9ec53SEmmanuel Vadot
30*57c9ec53SEmmanuel Vadot #include <linux/types.h>
31*57c9ec53SEmmanuel Vadot
32*57c9ec53SEmmanuel Vadot static inline void
console_lock(void)33*57c9ec53SEmmanuel Vadot console_lock(void)
34*57c9ec53SEmmanuel Vadot {
35*57c9ec53SEmmanuel Vadot }
36*57c9ec53SEmmanuel Vadot
37*57c9ec53SEmmanuel Vadot static inline int
console_trylock(void)38*57c9ec53SEmmanuel Vadot console_trylock(void)
39*57c9ec53SEmmanuel Vadot {
40*57c9ec53SEmmanuel Vadot return (1);
41*57c9ec53SEmmanuel Vadot }
42*57c9ec53SEmmanuel Vadot
43*57c9ec53SEmmanuel Vadot static inline void
console_unlock(void)44*57c9ec53SEmmanuel Vadot console_unlock(void)
45*57c9ec53SEmmanuel Vadot {
46*57c9ec53SEmmanuel Vadot }
47*57c9ec53SEmmanuel Vadot
48*57c9ec53SEmmanuel Vadot static inline bool
vgacon_text_force(void)49*57c9ec53SEmmanuel Vadot vgacon_text_force(void)
50*57c9ec53SEmmanuel Vadot {
51*57c9ec53SEmmanuel Vadot
52*57c9ec53SEmmanuel Vadot return (false);
53*57c9ec53SEmmanuel Vadot }
54*57c9ec53SEmmanuel Vadot
55*57c9ec53SEmmanuel Vadot #endif /* _LINUXKPI_LINUX_CONSOLE_H_ */
56