#ifndef __DAL_CA8277B_H_ #define __DAL_CA8277B_H_ #include #include #include #include #include #include #include #include #include #include #include #include extern ca_uint8_t CA_PON_MODE; #define CAERR_PORT_ID 0xFFFF #define RTK2CA_PORT_ID(port) \ (HAL_IS_PON_PORT(port)?((CA_PON_MODE == ONU_PON_MAC_EPON_D10G||CA_PON_MODE == ONU_PON_MAC_EPON_BI10G||CA_PON_MODE == ONU_PON_MAC_EPON_1G) ? CA_PORT_ID(CA_PORT_TYPE_EPON,port):CA_PORT_ID(CA_PORT_TYPE_GPON,port)) : HAL_IS_ETHER_PORT(port)?CA_PORT_ID(CA_PORT_TYPE_ETHERNET,port) : HAL_IS_CPU_PORT(port)?CA_PORT_ID(CA_PORT_TYPE_CPU,port) : (port == 0x18 || port == 0x19) ? port : CAERR_PORT_ID) #endif /*__DAL_CA8277B_H_*/