157c9ec53SEmmanuel Vadot /*-
257c9ec53SEmmanuel Vadot * Copyright (c) 2022 Beckhoff Automation GmbH & Co. KG
357c9ec53SEmmanuel Vadot *
457c9ec53SEmmanuel Vadot * Redistribution and use in source and binary forms, with or without
557c9ec53SEmmanuel Vadot * modification, are permitted provided that the following conditions
657c9ec53SEmmanuel Vadot * are met:
757c9ec53SEmmanuel Vadot * 1. Redistributions of source code must retain the above copyright
857c9ec53SEmmanuel Vadot * notice, this list of conditions and the following disclaimer.
957c9ec53SEmmanuel Vadot * 2. Redistributions in binary form must reproduce the above copyright
1057c9ec53SEmmanuel Vadot * notice, this list of conditions and the following disclaimer in the
1157c9ec53SEmmanuel Vadot * documentation and/or other materials provided with the distribution.
1257c9ec53SEmmanuel Vadot *
1357c9ec53SEmmanuel Vadot * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1457c9ec53SEmmanuel Vadot * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1557c9ec53SEmmanuel Vadot * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
1657c9ec53SEmmanuel Vadot * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
1757c9ec53SEmmanuel Vadot * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
1857c9ec53SEmmanuel Vadot * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
1957c9ec53SEmmanuel Vadot * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
2057c9ec53SEmmanuel Vadot * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
2157c9ec53SEmmanuel Vadot * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2257c9ec53SEmmanuel Vadot * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2357c9ec53SEmmanuel Vadot * SUCH DAMAGE.
2457c9ec53SEmmanuel Vadot *
2557c9ec53SEmmanuel Vadot */
2657c9ec53SEmmanuel Vadot
2757c9ec53SEmmanuel Vadot #ifndef _LINUXKPI_LINUX_CONSOLE_H_
2857c9ec53SEmmanuel Vadot #define _LINUXKPI_LINUX_CONSOLE_H_
2957c9ec53SEmmanuel Vadot
3057c9ec53SEmmanuel Vadot #include <linux/types.h>
3157c9ec53SEmmanuel Vadot
3257c9ec53SEmmanuel Vadot static inline void
console_lock(void)3357c9ec53SEmmanuel Vadot console_lock(void)
3457c9ec53SEmmanuel Vadot {
3557c9ec53SEmmanuel Vadot }
3657c9ec53SEmmanuel Vadot
3757c9ec53SEmmanuel Vadot static inline int
console_trylock(void)3857c9ec53SEmmanuel Vadot console_trylock(void)
3957c9ec53SEmmanuel Vadot {
4057c9ec53SEmmanuel Vadot return (1);
4157c9ec53SEmmanuel Vadot }
4257c9ec53SEmmanuel Vadot
4357c9ec53SEmmanuel Vadot static inline void
console_unlock(void)4457c9ec53SEmmanuel Vadot console_unlock(void)
4557c9ec53SEmmanuel Vadot {
4657c9ec53SEmmanuel Vadot }
4757c9ec53SEmmanuel Vadot
4857c9ec53SEmmanuel Vadot static inline bool
vgacon_text_force(void)4957c9ec53SEmmanuel Vadot vgacon_text_force(void)
5057c9ec53SEmmanuel Vadot {
5157c9ec53SEmmanuel Vadot
5257c9ec53SEmmanuel Vadot return (false);
5357c9ec53SEmmanuel Vadot }
5457c9ec53SEmmanuel Vadot
5557c9ec53SEmmanuel Vadot #endif /* _LINUXKPI_LINUX_CONSOLE_H_ */
56