mirror of
				https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
				synced 2025-10-31 16:18:51 +01:00 
			
		
		
		
	Fixed MTP to work with TWRP
This commit is contained in:
		
						commit
						f6dfaef42e
					
				
					 50820 changed files with 20846062 additions and 0 deletions
				
			
		
							
								
								
									
										40
									
								
								arch/mips/paravirt/serial.c
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										40
									
								
								arch/mips/paravirt/serial.c
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,40 @@ | |||
| /*
 | ||||
|  * This file is subject to the terms and conditions of the GNU General Public | ||||
|  * License.  See the file "COPYING" in the main directory of this archive | ||||
|  * for more details. | ||||
|  * | ||||
|  * Copyright (C) 2013 Cavium, Inc. | ||||
|  */ | ||||
| 
 | ||||
| #include <linux/kernel.h> | ||||
| #include <linux/virtio_console.h> | ||||
| #include <linux/kvm_para.h> | ||||
| 
 | ||||
| /*
 | ||||
|  * Emit one character to the boot console. | ||||
|  */ | ||||
| int prom_putchar(char c) | ||||
| { | ||||
| 	kvm_hypercall3(KVM_HC_MIPS_CONSOLE_OUTPUT, 0 /*  port 0 */, | ||||
| 		(unsigned long)&c, 1 /* len == 1 */); | ||||
| 
 | ||||
| 	return 1; | ||||
| } | ||||
| 
 | ||||
| #ifdef CONFIG_VIRTIO_CONSOLE | ||||
| static int paravirt_put_chars(u32 vtermno, const char *buf, int count) | ||||
| { | ||||
| 	kvm_hypercall3(KVM_HC_MIPS_CONSOLE_OUTPUT, vtermno, | ||||
| 		(unsigned long)buf, count); | ||||
| 
 | ||||
| 	return count; | ||||
| } | ||||
| 
 | ||||
| static int __init paravirt_cons_init(void) | ||||
| { | ||||
| 	virtio_cons_early_init(paravirt_put_chars); | ||||
| 	return 0; | ||||
| } | ||||
| core_initcall(paravirt_cons_init); | ||||
| 
 | ||||
| #endif | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 awab228
						awab228