versadac  1
versadac - Scalable Recorder Firmware
mrp_forwardingdatabaseitf.h
1 /***************************************************************************************
2  *********** Copyright 2005 Zurich University of Applied Sciences / InES **************
3  ***************************************************************************************
4  **
5  ** File : mrp_forwardingdatabaseitf.h
6  **
7  ** Description : This file provides the interface to the address table/
8  ** forwarding database of the switch
9  **
10  ***************************************************************************************
11  ** Department : Institute of Embedded Systems
12  ** Project : MRP
13  ** Modul : MRP_ForwardingDataBaseItf_T
14  ** Author : Christian Schaer
15  ** Contact : scc@zhwin.ch
16  ** Date : 10.04.2006
17  ****************************** Modifications ******************************************
18  **
19  ** Date : Who : Comment :
20  ** 10.05.06 scc initial release
21  **************************************************************************************/
22 /* $Workfile:: mrp_forwardingdatabaseitf.h $*/
23 /* $Revision:: 2 $*/
24 /* $Date:: 16/12/10 14:44 $*/
25 
26 #ifndef MRP_FORWARDINGDATABASEITF_H
27 #define MRP_FORWARDINGDATABASEITF_H
28 
29 
30 /***********************************************************************/
31 /*** Header Files Includes ***/
32 /***********************************************************************/
33 
34 #include "mrp_pkg.h"
35 
36 
37 /********************************************/
38 /*** Constructors and destructors ***/
39 /********************************************/
40 
41 void MRP_ForwardingDataBaseItf_T_Init( void );
42 
43 void MRP_ForwardingDataBaseItf_T_Cleanup( void );
44 
45 
46 /********************************************/
47 /*** public Methods ***/
48 /********************************************/
49 
51 void MRP_ForwardingDataBaseItf_T_initFDB( void );
52 
54 void MRP_ForwardingDataBaseItf_T_finalFDB( void );
55 
57 void MRP_ForwardingDataBaseItf_T_addMACFDB( MRPRoleState role_state,
58  UChar mc_test_address[6],
59  UChar mc_control_address[6],
60  Unsigned16 ring_port_1_id,
61  Unsigned16 ring_port_2_id,
62  Unsigned16 vlan_id,
63  Unsigned16 priority);
64 
66 void MRP_ForwardingDataBaseItf_T_removeMACFDB( MRPRoleState role_state,
67  UChar mc_test_address[6],
68  UChar mc_control_address[6],
69  Unsigned16 ring_port_1_id,
70  Unsigned16 ring_port_2_id,
71  Unsigned16 vlan_id );
72 
74 void MRP_ForwardingDataBaseItf_T_clearLocalFDB( void );
75 
76 
77 #endif
78