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 
11 
12 #ifndef __DWC_AHSATA_H__
13 #define __DWC_AHSATA_H__
14 
15 #define DWCAHSATA_BASE (0x9000000000000000 | 0x400e0000)
16 
17 int dwc_ahsata_bus_reset(struct rt_device *dev);
18 int dwc_ahsata_probe(struct rt_device *dev);
19 int dwc_ahsata_scan(struct rt_device *dev);
20 int dwc_ahsata_port_status(struct rt_device *dev, int port);
21 rt_ssize_t dwc_ahsata_read(rt_device_t dev, rt_off_t pos, void *buffer, rt_size_t size);
22 rt_ssize_t dwc_ahsata_write(rt_device_t dev, rt_off_t pos, const void *buffer, rt_size_t size);
23 rt_err_t dwc_ahsata_control(rt_device_t dev, int cmd, void *args);
24 
25 #endif
26