mirror of
				https://xff.cz/git/u-boot/
				synced 2025-10-31 02:15:45 +01:00 
			
		
		
		
	Move the function mac_table_add into a different file, so it can be reused. Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
		
			
				
	
	
		
			20 lines
		
	
	
		
			422 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			422 B
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
 | |
| /*
 | |
|  * Copyright (c) 2018 Microsemi Corporation
 | |
|  */
 | |
| 
 | |
| #include <common.h>
 | |
| 
 | |
| #define ETH_LEN 6
 | |
| #define MAC_VID 1
 | |
| 
 | |
| enum mscc_regs_ana_table {
 | |
| 	MSCC_ANA_TABLES_MACHDATA,
 | |
| 	MSCC_ANA_TABLES_MACLDATA,
 | |
| 	MSCC_ANA_TABLES_MACACCESS,
 | |
| };
 | |
| 
 | |
| int mscc_mac_table_add(void __iomem *regs,
 | |
| 		       const unsigned long *mscc_mac_table_offset,
 | |
| 		       const unsigned char mac[ETH_LEN], int pgid);
 |