mirror of https://github.com/acidanthera/audk.git
Remove 4 obsolete macros in UefiScsiLib and we have equivalent macros to the UEFI Lib for managing Timer Events
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6565 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
e72a3b3ea8
commit
c1f1e9ac84
|
@ -13,26 +13,11 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||
|
||||
**/
|
||||
|
||||
#ifndef _SCSI_LIB_H_
|
||||
#define _SCSI_LIB_H_
|
||||
#ifndef __SCSI_LIB_H__
|
||||
#define __SCSI_LIB_H__
|
||||
|
||||
#include <Protocol/ScsiIo.h>
|
||||
|
||||
//
|
||||
// the time unit is 100ns, since the SCSI I/O defines timeout in 100ns unit.
|
||||
//
|
||||
#define EFI_SCSI_STALL_1_MICROSECOND 10
|
||||
#define EFI_SCSI_STALL_1_MILLISECOND 10000
|
||||
#define EFI_SCSI_STALL_1_SECOND 10000000
|
||||
|
||||
///
|
||||
/// this macro cannot be directly used by the gBS->Stall(),
|
||||
/// since the value output by this macro is in 100ns unit,
|
||||
/// not 1us unit (1us = 1000ns)
|
||||
///
|
||||
#define EFI_SCSI_STALL_SECONDS(a) ((a) * EFI_SCSI_STALL_1_SECOND)
|
||||
|
||||
|
||||
/**
|
||||
Execute Test Unit Ready SCSI command on a specific SCSI target.
|
||||
|
||||
|
|
Loading…
Reference in New Issue