mirror of
				git://git.openwrt.org/openwrt/openwrt.git
				synced 2025-11-03 22:44:27 -05:00 
			
		
		
		
	realtek: Change LLTP register to LLDP
These registers control the handling of Link Layer Discovery Protocol (LLDP) packets. This seems to be a typo in the naming. Signed-off-by: Kevin Jilissen <info@kevinjilissen.nl>
This commit is contained in:
		
							parent
							
								
									752f6bf64e
								
							
						
					
					
						commit
						81ab9ef2d1
					
				@ -1678,9 +1678,9 @@ void rtl838x_set_receive_management_action(int port, rma_ctrl_t type, action_typ
 | 
			
		||||
		sw_w32_mask(3 << ((port & 0xf) << 1), (action & 0x3) << ((port & 0xf) << 1),
 | 
			
		||||
			    RTL838X_RMA_PTP_CTRL + ((port >> 4) << 2));
 | 
			
		||||
		break;
 | 
			
		||||
	case LLTP:
 | 
			
		||||
	case LLDP:
 | 
			
		||||
		sw_w32_mask(3 << ((port & 0xf) << 1), (action & 0x3) << ((port & 0xf) << 1),
 | 
			
		||||
			    RTL838X_RMA_LLTP_CTRL + ((port >> 4) << 2));
 | 
			
		||||
			    RTL838X_RMA_LLDP_CTRL + ((port >> 4) << 2));
 | 
			
		||||
		break;
 | 
			
		||||
	default:
 | 
			
		||||
		break;
 | 
			
		||||
 | 
			
		||||
@ -425,7 +425,7 @@ typedef enum {
 | 
			
		||||
	PTP,
 | 
			
		||||
	PTP_UDP,
 | 
			
		||||
	PTP_ETH2,
 | 
			
		||||
	LLTP,
 | 
			
		||||
	LLDP,
 | 
			
		||||
	EAPOL,
 | 
			
		||||
	GRATARP,
 | 
			
		||||
} rma_ctrl_t;
 | 
			
		||||
@ -449,10 +449,10 @@ typedef enum {
 | 
			
		||||
#define RTL930X_RMA_PTP_CTRL			(0x9E88)
 | 
			
		||||
#define RTL931X_RMA_PTP_CTRL			(0x8834)
 | 
			
		||||
 | 
			
		||||
#define RTL838X_RMA_LLTP_CTRL			(0x4340)
 | 
			
		||||
#define RTL839X_RMA_LLTP_CTRL			(0x124C)
 | 
			
		||||
#define RTL930X_RMA_LLTP_CTRL			(0x9EFC)
 | 
			
		||||
#define RTL931X_RMA_LLTP_CTRL			(0x8918)
 | 
			
		||||
#define RTL838X_RMA_LLDP_CTRL			(0x4340)
 | 
			
		||||
#define RTL839X_RMA_LLDP_CTRL			(0x124C)
 | 
			
		||||
#define RTL930X_RMA_LLDP_CTRL			(0x9EFC)
 | 
			
		||||
#define RTL931X_RMA_LLDP_CTRL			(0x8918)
 | 
			
		||||
 | 
			
		||||
#define RTL930X_RMA_EAPOL_CTRL			(0x9F08)
 | 
			
		||||
#define RTL931X_RMA_EAPOL_CTRL			(0x8930)
 | 
			
		||||
 | 
			
		||||
@ -1814,9 +1814,9 @@ void rtl839x_set_receive_management_action(int port, rma_ctrl_t type, action_typ
 | 
			
		||||
		sw_w32_mask(3 << ((port & 0xf) << 1), (action & 0x3) << ((port & 0xf) << 1),
 | 
			
		||||
			    RTL839X_RMA_PTP_CTRL + ((port >> 4) << 2));
 | 
			
		||||
		break;
 | 
			
		||||
	case LLTP:
 | 
			
		||||
	case LLDP:
 | 
			
		||||
		sw_w32_mask(3 << ((port & 0xf) << 1), (action & 0x3) << ((port & 0xf) << 1),
 | 
			
		||||
			    RTL839X_RMA_LLTP_CTRL + ((port >> 4) << 2));
 | 
			
		||||
			    RTL839X_RMA_LLDP_CTRL + ((port >> 4) << 2));
 | 
			
		||||
		break;
 | 
			
		||||
	default:
 | 
			
		||||
		break;
 | 
			
		||||
 | 
			
		||||
@ -516,8 +516,8 @@ void rtl931x_set_receive_management_action(int port, rma_ctrl_t type, action_typ
 | 
			
		||||
	case PTP_ETH2:
 | 
			
		||||
		sw_w32_mask(3, value, RTL931X_RMA_PTP_CTRL + (port << 2));
 | 
			
		||||
	break;
 | 
			
		||||
	case LLTP:
 | 
			
		||||
		sw_w32_mask(7 << ((port % 10) * 3), value << ((port % 10) * 3), RTL931X_RMA_LLTP_CTRL + ((port / 10) << 2));
 | 
			
		||||
	case LLDP:
 | 
			
		||||
		sw_w32_mask(7 << ((port % 10) * 3), value << ((port % 10) * 3), RTL931X_RMA_LLDP_CTRL + ((port / 10) << 2));
 | 
			
		||||
	break;
 | 
			
		||||
	case EAPOL:
 | 
			
		||||
		sw_w32_mask(7 << ((port % 10) * 3), value << ((port % 10) * 3), RTL931X_RMA_EAPOL_CTRL + ((port / 10) << 2));
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user