mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-08 09:08:05 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
3
drivers/scsi/cxgbi/cxgb3i/Kbuild
Normal file
3
drivers/scsi/cxgbi/cxgb3i/Kbuild
Normal file
|
@ -0,0 +1,3 @@
|
|||
EXTRA_CFLAGS += -I$(srctree)/drivers/net/ethernet/chelsio/cxgb3
|
||||
|
||||
obj-$(CONFIG_SCSI_CXGB3_ISCSI) += cxgb3i.o
|
10
drivers/scsi/cxgbi/cxgb3i/Kconfig
Normal file
10
drivers/scsi/cxgbi/cxgb3i/Kconfig
Normal file
|
@ -0,0 +1,10 @@
|
|||
config SCSI_CXGB3_ISCSI
|
||||
tristate "Chelsio T3 iSCSI support"
|
||||
depends on PCI && INET && (IPV6 || IPV6=n)
|
||||
select NETDEVICES
|
||||
select ETHERNET
|
||||
select NET_VENDOR_CHELSIO
|
||||
select CHELSIO_T3
|
||||
select SCSI_ISCSI_ATTRS
|
||||
---help---
|
||||
This driver supports iSCSI offload for the Chelsio T3 devices.
|
1413
drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
Normal file
1413
drivers/scsi/cxgbi/cxgb3i/cxgb3i.c
Normal file
File diff suppressed because it is too large
Load diff
62
drivers/scsi/cxgbi/cxgb3i/cxgb3i.h
Normal file
62
drivers/scsi/cxgbi/cxgb3i/cxgb3i.h
Normal file
|
@ -0,0 +1,62 @@
|
|||
/*
|
||||
* cxgb3i.h: Chelsio S3xx iSCSI driver.
|
||||
*
|
||||
* Copyright (c) 2008 Chelsio Communications, Inc.
|
||||
*
|
||||
* 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.
|
||||
*
|
||||
* Written by: Karen Xie (kxie@chelsio.com)
|
||||
*/
|
||||
|
||||
#ifndef __CXGB3I_H__
|
||||
#define __CXGB3I_H__
|
||||
|
||||
#define CXGB3I_SCSI_HOST_QDEPTH 1024
|
||||
#define CXGB3I_MAX_LUN 512
|
||||
#define ISCSI_PDU_NONPAYLOAD_MAX \
|
||||
(sizeof(struct iscsi_hdr) + ISCSI_MAX_AHS_SIZE + 2*ISCSI_DIGEST_SIZE)
|
||||
|
||||
/*for TX: a skb must have a headroom of at least TX_HEADER_LEN bytes */
|
||||
#define CXGB3I_TX_HEADER_LEN \
|
||||
(sizeof(struct tx_data_wr) + sizeof(struct sge_opaque_hdr))
|
||||
|
||||
extern cxgb3_cpl_handler_func cxgb3i_cpl_handlers[NUM_CPL_CMDS];
|
||||
|
||||
static inline unsigned int cxgb3i_get_private_ipv4addr(struct net_device *ndev)
|
||||
{
|
||||
return ((struct port_info *)(netdev_priv(ndev)))->iscsi_ipv4addr;
|
||||
}
|
||||
|
||||
static inline void cxgb3i_set_private_ipv4addr(struct net_device *ndev,
|
||||
unsigned int addr)
|
||||
{
|
||||
struct port_info *pi = (struct port_info *)netdev_priv(ndev);
|
||||
|
||||
pi->iscsic.flags = addr ? 1 : 0;
|
||||
pi->iscsi_ipv4addr = addr;
|
||||
if (addr)
|
||||
memcpy(pi->iscsic.mac_addr, ndev->dev_addr, ETH_ALEN);
|
||||
}
|
||||
|
||||
struct cpl_iscsi_hdr_norss {
|
||||
union opcode_tid ot;
|
||||
u16 pdu_len_ddp;
|
||||
u16 len;
|
||||
u32 seq;
|
||||
u16 urg;
|
||||
u8 rsvd;
|
||||
u8 status;
|
||||
};
|
||||
|
||||
struct cpl_rx_data_ddp_norss {
|
||||
union opcode_tid ot;
|
||||
u16 urg;
|
||||
u16 len;
|
||||
u32 seq;
|
||||
u32 nxt_seq;
|
||||
u32 ulp_crc;
|
||||
u32 ddp_status;
|
||||
};
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue