⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rbc.h

📁 ZLG文件系统
💻 H
字号:
/*
////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 1999-2003 PHILIPS Semiconductors - APIC
//
// Module Name:
//
//	rbc.h
//
// Abstract:
//
//    These are the structures and defines used in the Reduced Block Command set//

// Author:
//
//     Hilbert Zhang ZhenYu
//
// Revision History:
//
//		Created  29 Apr. 1999
//
// Copyright @ 1999-2003, PHILIPS Semiconductors - APIC. All rights reserved.
//
//  Implementation Notes:
//      1. LUN
//          In SCSI-2, 3 bits LUN locates the highest 3 bits of the byte next to
//          OperationCode of the command Request.
//          In SCSI-3, 4 Bits LUN is controlled by Transport Protocol,
//              RBC and SPC-2 are parts of SCSI-3
//
*/

#ifndef __RBC_
#define __RBC_

#include "BasicTyp.h"

typedef union _RBC_PROP {
	struct {
        unsigned    MediumRemovFlag : 2;
	    unsigned    MediumState : 2;
	    unsigned    PowerState : 4;
    } bits;

    INT8 value;
} RBC_PROPERTY, * PRBC_PROPERTY;

/*
////////////////////////////////////////////////////////////////////////////////////
// Functions
////////////////////////////////////////////////////////////////////////////////////
*/

uint8 RBC_Handler(void);

uint8 RBC_Read(void);
uint8 RBC_ReadCapacity(void);
uint8 RBC_OnOffUnit(void);
uint8 RBC_Verify(void);
uint8 RBC_Write(void);
uint8 RBC_SyncCache(void);

uint8 SPC_Inquiry(void);
uint8 SPC_ModeSelect(void);
uint8 SPC_ModeSense(void);
uint8 SPC_LockMedia(void);
uint8 SPC_TestUnit(void);
uint8 SPC_RequestSense(void);

//Optional
uint8 RBC_Format(void);
uint8 SPC_Reserve6(void);
uint8 SPC_Release6(void);
uint8 SPC_PersisReserveIn(void);
uint8 SPC_PersisReserveOut(void);
uint8 SPC_WriteBuff(void);
uint8 SPC_READLONG(void);


//void RBC_BuildSenseData(INT8 SenseKey,INT8 ASC, INT8 ASCQ);

#endif

⌨️ 快捷键说明

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