ram_dsk.h
上传用户:sourcesun
上传日期:2013-09-23
资源大小:362k
文件大小:2k
- /*************************************************************************
- *
- * Used with ICCARM and AARM.
- *
- * (c) Copyright IAR Systems 2005
- *
- * File name : ram_dsk.h
- * Description : Define Ram Disk module
- *
- * History :
- * 1. Data : November 15, 2005
- * Author : Stanimir Bonev
- * Description : Create
- *
- * $Revision: 1.3.2.1 $
- **************************************************************************/
- #include <includes.h>
- #ifndef __RAM_DISK_H
- #define __RAM_DISK_H
- #define RAM_DISK_LUN 0
- #define RAM_DSK_BLOCK_SIZE 512
- #define RAM_DSK_BLOCK_NUMB 40
- /*************************************************************************
- * Function Name: RamDiskInit
- * Parameters: none
- *
- * Return: none
- *
- * Description: Init RAM disk
- *
- *************************************************************************/
- void RamDiskInit (void);
- /*************************************************************************
- * Function Name: RamDiskInfo
- * Parameters: pInt8U pData, DiskInfoType_t DiskInfoType
- *
- * Return: Int32U
- *
- * Description: Return pointer to Info stucture of the disk
- * (Inquiry or Format capacity)
- *
- *************************************************************************/
- Int32U RamDiskInfo (pInt8U pData, DiskInfoType_t DiskInfoType);
- /*************************************************************************
- * Function Name: RamDiskStatus
- * Parameters: void
- *
- * Return: pDiskStatus_t
- *
- * Description: Return pointer to status stucture of the disk
- *
- *************************************************************************/
- pDiskStatus_t RamDiskStatus (void);
- /*************************************************************************
- * Function Name: RamDiskIO
- * Parameters: pInt8U pData,Int32U BlockStart,
- * Int32U BlockNum, DiskIoRequest_t IoRequest
- *
- * Return: DiskStatusCode_t
- *
- * Description: Ram disk I/O
- *
- *************************************************************************/
- DiskStatusCode_t RamDiskIO (pInt8U pData,Int32U BlockStart,
- Int32U BlockNum, DiskIoRequest_t IoRequest);
- #endif // __RAM_DISK_H