and added files
[bcm963xx.git] / bcmdrivers / broadcom / include / bcm963xx / portMirror.h
1 /*
2 <:copyright-broadcom 
3  
4  Copyright (c) 2002 Broadcom Corporation 
5  All Rights Reserved 
6  No portions of this material may be reproduced in any form without the 
7  written permission of: 
8           Broadcom Corporation 
9           16215 Alton Parkway 
10           Irvine, California 92618 
11  All information contained in this document is Broadcom Corporation 
12  company private, proprietary, and trade secret. 
13  
14 :>
15 */
16 /****************************************************************************
17  *
18  * portMirror.h -- Internal definitions for Port Mirroring Feature.
19  *
20  * Description:
21  *   Port Mirroring feature definitions. Initially for the BLAA driver.
22  *
23  *
24  * Authors: Srinivasan Seshadri.
25  *
26  * $Revision: 1.1 $
27  *
28  * Initial CVS checkin.
29  *
30  ****************************************************************************/
31
32 #ifndef __PORT_MIRROR_H
33 #define __PORT_MIRROR_H
34
35 #define DIR_INVALID                  0
36 #define DIR_IN                       1
37 #define DIR_OUT                      2
38 #define MAX_DIRECTIONS               DIR_OUT
39
40 #define FLOW_INVALID                 0
41 #define RFC2684_802_3_BRIDGING_FLOW  1
42 #define MAX_FLOWS                    RFC2684_802_3_BRIDGING_FLOW
43
44 #define MIRROR_PORT_INVALID          0
45 #define MIRROR_PORT_ETH0             1
46 #define MIRROR_PORT_ETH1             2
47 #define MIRROR_PORT_USB              3
48 #define MAX_MIRROR_PORTS             MIRROR_PORT_USB
49
50 #define MIRROR_DISABLED              1
51 #define MIRROR_ENABLED               2
52
53 typedef struct _MirrorCfg {
54     int   dir ;
55     int   flowType ;
56     int   mirrorPort ;
57     int   status ;
58 } MirrorCfg ;
59
60 #define CMD_PORT_MIRRORING           1
61
62 #define MIRROR_NAME_MAX_LEN          16
63
64 #endif /* #ifndef __PORT_MIRROR_H */