📄 cdbhost.h
字号:
/* cdbHost.h - Command Descriptor Block host header */
/* Copyright 2004 TAEBAEK Soft Corp. */
/*
modification history
--------------------
02e,28nov05,jmLee version control sync.
02d,01aug05,jmLee version control sync.
02c,25jul05,jmLee version control sync.
01a,26jul04,jmLee created. support UFI/SFF-8070i/SCSI transparent.
*/
#ifndef __INCcdbHosth
#define __INCcdbHosth
#ifdef __cplusplus
extern "C" {
#endif
/* Host Structure */
typedef struct _LOGICAL_DRV_STRUCT *PLOG_DRV;
typedef int (*PFCDBCOMMAND)(PLOG_DRV pdrv, UCHAR cmd);
typedef struct _LOGICAL_DRV_STRUCT {
PVOID phost; /* pointer to the USB host structure */
ULONG dNumBlocks; /* Number of Blocks */
ULONG dLastBlock; /* Zero based Last Block Number */
USHORT wNumHeads; /* Number of Heads */
USHORT wBlksPerTrack; /* Blocks per Track */
USHORT wBlockLength; /* Length of Block in Bytes */
UCHAR lun; /* Logical Unit Number, 0 ~ 7 */
UCHAR ready; /* ready status, 1 if ready to access */
PVOID pblkd; /* pointer to the client context structure */
PFCDBCOMMAND pfCommand; /* pointer to the command handler(UFI/SFF8070i/SCSI) */
UCHAR params[4]; /* command parameter */
ULONG lba; /* start LBA to be transferred */
PUCHAR buffer; /* I/O buffer, non-cached */
USHORT blocks; /* number of blocks to be transferred */
UCHAR bASC; /* Additional Sense Code */
UCHAR bASCQ; /* Additional Sense Code Qualifier */
} LOG_DRV;
/* Function Prototypes */
#if defined(__STDC__) || defined(__cplusplus)
IMPORT int cdbHostInit(VOID);
IMPORT int cdbHostAttachUFI(PMSC_HOST phost);
IMPORT int cdbHostDetachUFI(PMSC_HOST phost);
IMPORT int cdbHostAttach8070i(PMSC_HOST phost);
IMPORT int cdbHostDetach8070i(PMSC_HOST phost);
IMPORT int cdbHostAttachSCSI(PMSC_HOST phost);
IMPORT int cdbHostDetachSCSI(PMSC_HOST phost);
IMPORT int cdbHostIdleHandler(PMSC_HOST phost);
IMPORT int cdbHostCommand(PLOG_DRV pdrv, UCHAR cmd);
#else /* defined(__STDC__) || defined(__cplusplus) */
IMPORT int cdbHostInit();
IMPORT int cdbHostAttachUFI();
IMPORT int cdbHostDetachUFI();
IMPORT int cdbHostAttach8070i();
IMPORT int cdbHostDetach8070i();
IMPORT int cdbHostAttachSCSI();
IMPORT int cdbHostDetachSCSI();
IMPORT int cdbHostIdleHandler();
IMPORT int cdbHostCommand();
#endif /* defined(__STDC__) || defined(__cplusplus) */
#ifdef __cplusplus
}
#endif
#endif /* __INCcdbHosth */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -