mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-09 17:02:46 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
33
drivers/misc/samsung/scsc/fwhdr.h
Normal file
33
drivers/misc/samsung/scsc/fwhdr.h
Normal file
|
@ -0,0 +1,33 @@
|
|||
/****************************************************************************
|
||||
*
|
||||
* Copyright (c) 2014 - 2016 Samsung Electronics Co., Ltd. All rights reserved
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef FWHDR_H
|
||||
#define FWHDR_H
|
||||
|
||||
struct fwhdr {
|
||||
u16 hdr_major;
|
||||
u16 hdr_minor;
|
||||
|
||||
u16 fwapi_major;
|
||||
u16 fwapi_minor;
|
||||
|
||||
u32 firmware_entry_point;
|
||||
u32 fw_runtime_length;
|
||||
|
||||
u32 fw_crc32;
|
||||
u32 const_crc32;
|
||||
u32 header_crc32;
|
||||
|
||||
u32 const_fw_length;
|
||||
u32 hdr_length;
|
||||
u32 r4_panic_record_offset;
|
||||
u32 m4_panic_record_offset;
|
||||
};
|
||||
|
||||
bool fwhdr_parse(char *fw, struct fwhdr *fwhdr);
|
||||
char *fwhdr_get_build_id(char *fw, struct fwhdr *fwhdr);
|
||||
|
||||
#endif /* FWHDR_H */
|
Loading…
Add table
Add a link
Reference in a new issue