diff options
author | Seungwon Jeon <tgih.jun@samsung.com> | 2013-08-31 18:10:21 +0200 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-09-07 01:01:41 +0200 |
commit | 12b4fdb4f6bccb5459a2f75fbe0eab253bfceab4 (patch) | |
tree | b83139cc18787adc3d8ea552ba41563ac9d4c3e0 /drivers/scsi/ufs/ufshci.h | |
parent | [SCSI] ufs: fix the setting interrupt aggregation counter (diff) | |
download | linux-12b4fdb4f6bccb5459a2f75fbe0eab253bfceab4.tar.xz linux-12b4fdb4f6bccb5459a2f75fbe0eab253bfceab4.zip |
[SCSI] ufs: add dme configuration primitives
Implements to support GET and SET operations of the DME.
These operations are used to configure the behavior of
the UNIPRO. Along with basic operation, {Peer/AttrSetType}
can be mixed.
Signed-off-by: Seungwon Jeon <tgih.jun@samsung.com>
Reviewed-by: Subhash Jadavani <subhashj@codeaurora.org>
Tested-by: Yaniv Gardi <ygardi@codeaurora.org>
Signed-off-by: Santosh Y <santoshsy@gmail.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to '')
-rw-r--r-- | drivers/scsi/ufs/ufshci.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/scsi/ufs/ufshci.h b/drivers/scsi/ufs/ufshci.h index 739ae3aade0e..1e1fe2668181 100644 --- a/drivers/scsi/ufs/ufshci.h +++ b/drivers/scsi/ufs/ufshci.h @@ -191,6 +191,12 @@ enum { #define CONFIG_RESULT_CODE_MASK 0xFF #define GENERIC_ERROR_CODE_MASK 0xFF +#define UIC_ARG_MIB_SEL(attr, sel) ((((attr) & 0xFFFF) << 16) |\ + ((sel) & 0xFFFF)) +#define UIC_ARG_MIB(attr) UIC_ARG_MIB_SEL(attr, 0) +#define UIC_ARG_ATTR_TYPE(t) (((t) & 0xFF) << 16) +#define UIC_GET_ATTR_ID(v) (((v) >> 16) & 0xFFFF) + /* UIC Commands */ enum { UIC_CMD_DME_GET = 0x01, |