ide_X_hw.h
上传用户:yj_qqy
上传日期:2017-01-28
资源大小:2911k
文件大小:2k
源码类别:

uCOS

开发平台:

C/C++

  1. /*
  2. **********************************************************************
  3. *                          Micrium, Inc.
  4. *                      949 Crestview Circle
  5. *                     Weston,  FL 33327-1848
  6. *
  7. *                            uC/FS
  8. *
  9. *             (c) Copyright 2001 - 2003, Micrium, Inc.
  10. *                      All rights reserved.
  11. *
  12. ***********************************************************************
  13. ----------------------------------------------------------------------
  14. File        : ide_x_hw.h
  15. Purpose     : IDE hardware layer for EP7312
  16. ----------------------------------------------------------------------
  17. Known problems or limitations with current version
  18. ----------------------------------------------------------------------
  19. None.
  20. ---------------------------END-OF-HEADER------------------------------
  21. */
  22. #ifndef __IDE_X_HW_H__
  23. #define __IDE_X_HW_H__
  24. /*********************************************************************
  25. *
  26. *             Global function prototypes
  27. *
  28. **********************************************************************
  29. */
  30. /* Control line functions */
  31. void FS_IDE_HW_X_BusyLedOff(FS_u32 Unit);
  32. void FS_IDE_HW_X_BusyLedOn(FS_u32 Unit);
  33. void FS_IDE_HW_X_HWReset(FS_u32 Unit);
  34. /* ATA I/O register access functions */
  35. unsigned char FS_IDE_HW_X_GetAltStatus(FS_u32 Unit);
  36. unsigned char FS_IDE_HW_X_GetCylHigh(FS_u32 Unit);
  37. unsigned char FS_IDE_HW_X_GetCylLow(FS_u32 Unit);
  38. FS_u16 FS_IDE_HW_X_GetData(FS_u32 Unit);
  39. unsigned char FS_IDE_HW_X_GetDevice(FS_u32 Unit);
  40. unsigned char FS_IDE_HW_X_GetError(FS_u32 Unit);
  41. unsigned char FS_IDE_HW_X_GetSectorCount(FS_u32 Unit);
  42. unsigned char FS_IDE_HW_X_GetSectorNo(FS_u32 Unit);
  43. unsigned char FS_IDE_HW_X_GetStatus(FS_u32 Unit);
  44. void FS_IDE_HW_X_SetCommand(FS_u32 Unit, unsigned char Data);
  45. void FS_IDE_HW_X_SetCylHigh(FS_u32 Unit, unsigned char Data);
  46. void FS_IDE_HW_X_SetCylLow(FS_u32 Unit, unsigned char Data);
  47. void FS_IDE_HW_X_SetData(FS_u32 Unit, FS_u16 data);
  48. void FS_IDE_HW_X_SetDevControl(FS_u32 Unit, unsigned char Data);
  49. void FS_IDE_HW_X_SetDevice(FS_u32 Unit, unsigned char Data);
  50. void FS_IDE_HW_X_SetFeatures(FS_u32 Unit, unsigned char Data);
  51. void FS_IDE_HW_X_SetSectorCount(FS_u32 Unit, unsigned char Data);
  52. void FS_IDE_HW_X_SetSectorNo(FS_u32 Unit, unsigned char Data);
  53. /* Status detection functions */
  54. char FS_IDE_HW_X_DetectStatus(FS_u32 Unit);
  55. #endif  /* __IDE_X_HW_H__ */