1 /*
2  * Copyright (C) 2015-2020 Alibaba Group Holding Limited
3  */
4 #ifndef __HAL_PHYIF_H__
5 #define __HAL_PHYIF_H__
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
11 #include "plat_types.h"
12 
13 int hal_phyif_open(uint32_t cs);
14 
15 int hal_phyif_close(uint32_t cs);
16 
17 int hal_phyif_reg_write(unsigned short reg, unsigned short val);
18 
19 int hal_phyif_reg_read(unsigned short reg, unsigned short *val);
20 
21 #ifdef __cplusplus
22 }
23 #endif
24 
25 #endif
26 
27