mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-08 01:08:03 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
37
include/linux/shm_ipc.h
Normal file
37
include/linux/shm_ipc.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
/*
|
||||
* Copyright (C) 2014 Samsung Electronics Co.Ltd
|
||||
* http://www.samsung.com
|
||||
*
|
||||
* Shared Memory driver
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation; either version 2 of the License, or (at your
|
||||
* option) any later version.
|
||||
*/
|
||||
#ifndef SHMEM_IPC_H
|
||||
#define SHMEM_IPC_H
|
||||
|
||||
struct shdmem_info {
|
||||
unsigned int base;
|
||||
unsigned int size;
|
||||
};
|
||||
|
||||
unsigned long shm_get_phys_base(void);
|
||||
unsigned shm_get_phys_size(void);
|
||||
unsigned long shm_get_sysram_base(void);
|
||||
unsigned shm_get_sysram_size(void);
|
||||
unsigned shm_get_boot_size(void);
|
||||
unsigned shm_get_ipc_rgn_offset(void);
|
||||
unsigned shm_get_ipc_rgn_size(void);
|
||||
unsigned long shm_get_security_param2(unsigned long mode, u32 bl_size);
|
||||
unsigned long shm_get_security_param3(unsigned long mode, u32 main_size);
|
||||
|
||||
void __iomem *shm_request_region(unsigned long sh_addr, unsigned size);
|
||||
void __iomem *shm_get_boot_region(void);
|
||||
void __iomem *shm_get_ipc_region(void);
|
||||
void shm_release_region(void *v_addr);
|
||||
#ifdef CONFIG_SHARE_MIF_FREQ_INFO
|
||||
void shm_set_mif_freq(u32 freq);
|
||||
#endif
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue