com_scsi.c

来自「6440linuxDriver的源代码」· C语言 代码 · 共 26 行

C
26
字号
#include "com_type.h"#include "com_define.h"#include "com_dbg.h"#include "com_scsi.h"#include "com_util.h"MV_VOID MV_SetSenseData(	IN PMV_Sense_Data pSense,	IN MV_U8 SenseKey,	IN MV_U8 AdditionalSenseCode,	IN MV_U8 ASCQ	){	/* The caller should make sure it's a valid sense buffer. */	MV_DASSERT( pSense!=NULL );	MV_ZeroMemory(pSense, sizeof(MV_Sense_Data));	pSense->Valid = 0;	/* TBD: Why? */	pSense->ErrorCode = MV_SCSI_RESPONSE_CODE;	pSense->SenseKey = SenseKey;	pSense->AdditionalSenseCode = AdditionalSenseCode;	pSense->AdditionalSenseCodeQualifier = ASCQ;	pSense->AdditionalSenseLength = sizeof(MV_Sense_Data) - 8;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?