mediatek: mt7622: add Linux 5.10 support
[openwrt/staging/chunkeey.git] / target / linux / mediatek / files-5.10 / drivers / net / phy / rtk / rtl8367c / include / rtk_hal.h
1 #ifndef __RTK_HAL_H__
2 #define __RTK_HAL_H__
3 #include "ra_ioctl.h"
4
5 #define RTK_SW_VID_RANGE 16
6 void rtk_hal_switch_init(void);
7 void rtk_hal_dump_mib(void);
8 void rtk_hal_dump_full_mib(void);
9 int rtk_hal_dump_vlan(void);
10 void rtk_hal_clear_vlan(void);
11 int rtk_hal_set_vlan(struct ra_switch_ioctl_data *data);
12 int rtk_hal_set_ingress_rate(struct ra_switch_ioctl_data *data);
13 int rtk_hal_set_egress_rate(struct ra_switch_ioctl_data *data);
14 void rtk_hal_dump_table(void);
15 void rtk_hal_clear_table(void);
16 void rtk_hal_get_phy_status(struct ra_switch_ioctl_data *data);
17 void rtk_hal_set_port_mirror(struct ra_switch_ioctl_data *data);
18 void rtk_hal_read_reg(struct ra_switch_ioctl_data *data);
19 void rtk_hal_write_reg(struct ra_switch_ioctl_data *data);
20 void rtk_hal_qos_en(struct ra_switch_ioctl_data *data);
21 void rtk_hal_qos_set_table2type(struct ra_switch_ioctl_data *data);
22 void rtk_hal_qos_get_table2type(struct ra_switch_ioctl_data *data);
23 void rtk_hal_qos_set_port2table(struct ra_switch_ioctl_data *data);
24 void rtk_hal_qos_get_port2table(struct ra_switch_ioctl_data *data);
25 void rtk_hal_qos_set_port2pri(struct ra_switch_ioctl_data *data);
26 void rtk_hal_qos_get_port2pri(struct ra_switch_ioctl_data *data);
27 void rtk_hal_qos_set_dscp2pri(struct ra_switch_ioctl_data *data);
28 void rtk_hal_qos_get_dscp2pri(struct ra_switch_ioctl_data *data);
29 void rtk_hal_qos_set_pri2queue(struct ra_switch_ioctl_data *data);
30 void rtk_hal_qos_get_pri2queue(struct ra_switch_ioctl_data *data);
31 void rtk_hal_qos_set_queue_weight(struct ra_switch_ioctl_data *data);
32 void rtk_hal_qos_get_queue_weight(struct ra_switch_ioctl_data *data);
33 void rtk_hal_enable_igmpsnoop(struct ra_switch_ioctl_data *data);
34 void rtk_hal_disable_igmpsnoop(void);
35 void rtk_hal_set_phy_test_mode(struct ra_switch_ioctl_data *data);
36 void rtk_hal_get_phy_reg(struct ra_switch_ioctl_data *data);
37 void rtk_hal_set_phy_reg(struct ra_switch_ioctl_data *data);
38 void rtk_hal_vlan_tag(struct ra_switch_ioctl_data *data);
39 void rtk_hal_vlan_portpvid_set(rtk_port_t port, rtk_vlan_t pvid, rtk_pri_t priority);
40 void rtk_hal_add_table(struct ra_switch_ioctl_data *data);
41 void rtk_hal_del_table(struct ra_switch_ioctl_data *data);
42 void rtk_hal_vlan_mode(struct ra_switch_ioctl_data *data);
43 void rtk_hal_set_port_trunk(struct ra_switch_ioctl_data *data);
44 #endif