This source file includes following definitions.
- prom_putchar
- paravirt_put_chars
- paravirt_cons_init
1
2
3
4
5
6
7
8
9 #include <linux/kernel.h>
10 #include <linux/virtio_console.h>
11 #include <linux/kvm_para.h>
12 #include <asm/setup.h>
13
14
15
16
17 void prom_putchar(char c)
18 {
19 kvm_hypercall3(KVM_HC_MIPS_CONSOLE_OUTPUT, 0 ,
20 (unsigned long)&c, 1 );
21 }
22
23 #ifdef CONFIG_VIRTIO_CONSOLE
24 static int paravirt_put_chars(u32 vtermno, const char *buf, int count)
25 {
26 kvm_hypercall3(KVM_HC_MIPS_CONSOLE_OUTPUT, vtermno,
27 (unsigned long)buf, count);
28
29 return count;
30 }
31
32 static int __init paravirt_cons_init(void)
33 {
34 virtio_cons_early_init(paravirt_put_chars);
35 return 0;
36 }
37 core_initcall(paravirt_cons_init);
38
39 #endif