Merge pull request #3 in PROCESSOR-SDK/ibl from PRSDK-5675 to master
[keystone-rtos/ibl.git] / src / hw / cpsw / cpsw_api.h
1 #ifndef _CPSW_API_H
2 #define _CPSW_API_H
3 /*************************************************************************************************
4  * FILE PURPOSE: Common Platform ethernet SWitch driver API
5  *************************************************************************************************
6  * FILE NAME: cpsw_api.h
7  *
8  * DESCRIPTION: Defines the driver interface for the switch
9  *
10  *************************************************************************************************/
11  
12 /* Control bitfields */
13 #define CPSW_CTL_P2_PASS_PRI_TAGGED     (1 << 5)
14 #define CPSW_CTL_P1_PASS_PRI_TAGGED     (1 << 4)
15 #define CPSW_CTL_P0_PASS_PRI_TAGGED     (1 << 3)
16 #define CPSW_CTL_P0_ENABLE              (1 << 2)
17 #define CPSW_CTL_VLAN_AWARE             (1 << 1)
18 #define CPSW_CTL_FIFO_LOOPBACK          (1 << 0)
20 /* API */
21 SINT16 hwCpswConfig (UINT32 ctl, UINT32 maxPktSize);
22 SINT16 hwCpswEnableP0 (void);
23 BOOL hwCpswIsEnabled (void);
29 #endif /* _CPSW_API_H */