35 #include <linux/types.h>
41 #define hvc_rtas_cookie 0x67781e15
44 static int rtascons_put_char_token = RTAS_UNKNOWN_SERVICE;
45 static int rtascons_get_char_token = RTAS_UNKNOWN_SERVICE;
52 for (i = 0; i <
count; i++) {
64 for (i = 0; i <
count; i++) {
65 if (
rtas_call(rtascons_get_char_token, 0, 2, &c))
74 static const struct hv_ops hvc_rtas_get_put_ops = {
75 .get_chars = hvc_rtas_read_console,
76 .put_chars = hvc_rtas_write_console,
79 static int __init hvc_rtas_init(
void)
83 if (rtascons_put_char_token == RTAS_UNKNOWN_SERVICE)
84 rtascons_put_char_token =
rtas_token(
"put-term-char");
85 if (rtascons_put_char_token == RTAS_UNKNOWN_SERVICE)
88 if (rtascons_get_char_token == RTAS_UNKNOWN_SERVICE)
89 rtascons_get_char_token =
rtas_token(
"get-term-char");
90 if (rtascons_get_char_token == RTAS_UNKNOWN_SERVICE)
108 static void __exit hvc_rtas_exit(
void)
118 static int __init hvc_rtas_console_init(
void)
120 rtascons_put_char_token =
rtas_token(
"put-term-char");
121 if (rtascons_put_char_token == RTAS_UNKNOWN_SERVICE)
124 rtascons_get_char_token =
rtas_token(
"get-term-char");
125 if (rtascons_get_char_token == RTAS_UNKNOWN_SERVICE)