dwc_ahsata.h 775 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (c) 2006-2020, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2020-08-19 lizhirui porting to ls2k
  9. */
  10. #ifndef __DWC_AHSATA_H__
  11. #define __DWC_AHSATA_H__
  12. #define DWCAHSATA_BASE (0x9000000000000000 | 0x400e0000)
  13. int dwc_ahsata_bus_reset(struct rt_device *dev);
  14. int dwc_ahsata_probe(struct rt_device *dev);
  15. int dwc_ahsata_scan(struct rt_device *dev);
  16. int dwc_ahsata_port_status(struct rt_device *dev, int port);
  17. rt_size_t dwc_ahsata_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size);
  18. rt_size_t dwc_ahsata_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size);
  19. rt_err_t dwc_ahsata_control(rt_device_t dev, int cmd, void *args);
  20. #endif