mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-10-29 15:28:50 +01:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
15
include/net/tc_act/tc_csum.h
Normal file
15
include/net/tc_act/tc_csum.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef __NET_TC_CSUM_H
|
||||
#define __NET_TC_CSUM_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <net/act_api.h>
|
||||
|
||||
struct tcf_csum {
|
||||
struct tcf_common common;
|
||||
|
||||
u32 update_flags;
|
||||
};
|
||||
#define to_tcf_csum(a) \
|
||||
container_of(a->priv,struct tcf_csum,common)
|
||||
|
||||
#endif /* __NET_TC_CSUM_H */
|
||||
14
include/net/tc_act/tc_defact.h
Normal file
14
include/net/tc_act/tc_defact.h
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#ifndef __NET_TC_DEF_H
|
||||
#define __NET_TC_DEF_H
|
||||
|
||||
#include <net/act_api.h>
|
||||
|
||||
struct tcf_defact {
|
||||
struct tcf_common common;
|
||||
u32 tcfd_datalen;
|
||||
void *tcfd_defdata;
|
||||
};
|
||||
#define to_defact(a) \
|
||||
container_of(a->priv, struct tcf_defact, common)
|
||||
|
||||
#endif /* __NET_TC_DEF_H */
|
||||
17
include/net/tc_act/tc_gact.h
Normal file
17
include/net/tc_act/tc_gact.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef __NET_TC_GACT_H
|
||||
#define __NET_TC_GACT_H
|
||||
|
||||
#include <net/act_api.h>
|
||||
|
||||
struct tcf_gact {
|
||||
struct tcf_common common;
|
||||
#ifdef CONFIG_GACT_PROB
|
||||
u16 tcfg_ptype;
|
||||
u16 tcfg_pval;
|
||||
int tcfg_paction;
|
||||
#endif
|
||||
};
|
||||
#define to_gact(a) \
|
||||
container_of(a->priv, struct tcf_gact, common)
|
||||
|
||||
#endif /* __NET_TC_GACT_H */
|
||||
17
include/net/tc_act/tc_ipt.h
Normal file
17
include/net/tc_act/tc_ipt.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef __NET_TC_IPT_H
|
||||
#define __NET_TC_IPT_H
|
||||
|
||||
#include <net/act_api.h>
|
||||
|
||||
struct xt_entry_target;
|
||||
|
||||
struct tcf_ipt {
|
||||
struct tcf_common common;
|
||||
u32 tcfi_hook;
|
||||
char *tcfi_tname;
|
||||
struct xt_entry_target *tcfi_t;
|
||||
};
|
||||
#define to_ipt(a) \
|
||||
container_of(a->priv, struct tcf_ipt, common)
|
||||
|
||||
#endif /* __NET_TC_IPT_H */
|
||||
17
include/net/tc_act/tc_mirred.h
Normal file
17
include/net/tc_act/tc_mirred.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#ifndef __NET_TC_MIR_H
|
||||
#define __NET_TC_MIR_H
|
||||
|
||||
#include <net/act_api.h>
|
||||
|
||||
struct tcf_mirred {
|
||||
struct tcf_common common;
|
||||
int tcfm_eaction;
|
||||
int tcfm_ifindex;
|
||||
int tcfm_ok_push;
|
||||
struct net_device *tcfm_dev;
|
||||
struct list_head tcfm_list;
|
||||
};
|
||||
#define to_mirred(a) \
|
||||
container_of(a->priv, struct tcf_mirred, common)
|
||||
|
||||
#endif /* __NET_TC_MIR_H */
|
||||
21
include/net/tc_act/tc_nat.h
Normal file
21
include/net/tc_act/tc_nat.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#ifndef __NET_TC_NAT_H
|
||||
#define __NET_TC_NAT_H
|
||||
|
||||
#include <linux/types.h>
|
||||
#include <net/act_api.h>
|
||||
|
||||
struct tcf_nat {
|
||||
struct tcf_common common;
|
||||
|
||||
__be32 old_addr;
|
||||
__be32 new_addr;
|
||||
__be32 mask;
|
||||
u32 flags;
|
||||
};
|
||||
|
||||
static inline struct tcf_nat *to_tcf_nat(struct tc_action *a)
|
||||
{
|
||||
return container_of(a->priv, struct tcf_nat, common);
|
||||
}
|
||||
|
||||
#endif /* __NET_TC_NAT_H */
|
||||
15
include/net/tc_act/tc_pedit.h
Normal file
15
include/net/tc_act/tc_pedit.h
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#ifndef __NET_TC_PED_H
|
||||
#define __NET_TC_PED_H
|
||||
|
||||
#include <net/act_api.h>
|
||||
|
||||
struct tcf_pedit {
|
||||
struct tcf_common common;
|
||||
unsigned char tcfp_nkeys;
|
||||
unsigned char tcfp_flags;
|
||||
struct tc_pedit_key *tcfp_keys;
|
||||
};
|
||||
#define to_pedit(a) \
|
||||
container_of(a->priv, struct tcf_pedit, common)
|
||||
|
||||
#endif /* __NET_TC_PED_H */
|
||||
35
include/net/tc_act/tc_skbedit.h
Normal file
35
include/net/tc_act/tc_skbedit.h
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
/*
|
||||
* Copyright (c) 2008, Intel Corporation.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify it
|
||||
* under the terms and conditions of the GNU General Public License,
|
||||
* version 2, as published by the Free Software Foundation.
|
||||
*
|
||||
* This program is distributed in the hope it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
||||
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
* more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
*
|
||||
* Author: Alexander Duyck <alexander.h.duyck@intel.com>
|
||||
*/
|
||||
|
||||
#ifndef __NET_TC_SKBEDIT_H
|
||||
#define __NET_TC_SKBEDIT_H
|
||||
|
||||
#include <net/act_api.h>
|
||||
|
||||
struct tcf_skbedit {
|
||||
struct tcf_common common;
|
||||
u32 flags;
|
||||
u32 priority;
|
||||
u32 mark;
|
||||
u16 queue_mapping;
|
||||
/* XXX: 16-bit pad here? */
|
||||
};
|
||||
#define to_skbedit(a) \
|
||||
container_of(a->priv, struct tcf_skbedit, common)
|
||||
|
||||
#endif /* __NET_TC_SKBEDIT_H */
|
||||
Loading…
Add table
Add a link
Reference in a new issue