Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: rand_defines.vri | |
4 | // Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved | |
5 | // 4150 Network Circle, Santa Clara, California 95054, U.S.A. | |
6 | // | |
7 | // * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
8 | // | |
9 | // This program is free software; you can redistribute it and/or modify | |
10 | // it under the terms of the GNU General Public License as published by | |
11 | // the Free Software Foundation; version 2 of the License. | |
12 | // | |
13 | // This program is distributed in the hope that it will be useful, | |
14 | // but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | // GNU General Public License for more details. | |
17 | // | |
18 | // You should have received a copy of the GNU General Public License | |
19 | // along with this program; if not, write to the Free Software | |
20 | // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
21 | // | |
22 | // For the avoidance of doubt, and except that if any non-GPL license | |
23 | // choice is available it will apply instead, Sun elects to use only | |
24 | // the General Public License version 2 (GPLv2) at this time for any | |
25 | // software where a choice of GPL license versions is made | |
26 | // available with the language indicating that GPLv2 or any later version | |
27 | // may be used, or where a choice of which version of the GPL is applied is | |
28 | // otherwise unspecified. | |
29 | // | |
30 | // Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
31 | // CA 95054 USA or visit www.sun.com if you need additional information or | |
32 | // have any questions. | |
33 | // | |
34 | // ========== Copyright Header End ============================================ | |
35 | #define l2_src_addr0 48'h0101_0101_0101 | |
36 | #define l2_src_addr1 48'h0303_0303_0303 | |
37 | #define l2_src_addr2 48'h0707_0707_0707 | |
38 | #define l2_src_addr3 48'h0f0f_0f0f_0f0f | |
39 | #define l2_src_addr4 48'h00ff_00ff_00ff | |
40 | #define l2_src_addr5 48'h0000_ffff_0000 | |
41 | #define l2_src_addr6 48'h0000_00ff_ffff | |
42 | #define l2_src_addr7 48'hffff_ff00_0000 | |
43 | ||
44 | #define bmac_l2_dest_addr0 48'h0101_0101_0101 | |
45 | #define bmac_l2_dest_addr1 48'h0303_0303_0303 | |
46 | #define bmac_l2_dest_addr2 48'h0707_0707_0707 | |
47 | #define bmac_l2_dest_addr3 48'h0f0f_0f0f_0f0f | |
48 | #define bmac_l2_dest_addr4 48'h00ff_00ff_00ff | |
49 | #define bmac_l2_dest_addr5 48'h0000_ffff_0000 | |
50 | #define bmac_l2_dest_addr6 48'h0000_00ff_ffff | |
51 | #define bmac_l2_dest_addr7 48'hffff_ff00_0000 | |
52 | ||
53 | #define xmac_l2_dest_addr0 48'h0101_0101_0101 | |
54 | #define xmac_l2_dest_addr1 48'h0303_0303_0303 | |
55 | #define xmac_l2_dest_addr2 48'h0707_0707_0707 | |
56 | #define xmac_l2_dest_addr3 48'h0f0f_0f0f_0f0f | |
57 | #define xmac_l2_dest_addr4 48'h00ff_00ff_00ff | |
58 | #define xmac_l2_dest_addr5 48'h0000_ffff_0000 | |
59 | #define xmac_l2_dest_addr6 48'h0000_00ff_ffff | |
60 | #define xmac_l2_dest_addr7 48'hffff_ff00_0000 | |
61 | #define xmac_l2_dest_addr8 48'h1111_1111_1111 | |
62 | #define xmac_l2_dest_addr9 48'h3333_3333_3333 | |
63 | #define xmac_l2_dest_addr10 48'h7777_7777_7777 | |
64 | #define xmac_l2_dest_addr11 48'hffff_ffff_ffff | |
65 | #define xmac_l2_dest_addr12 48'hff00_ff00_ff00 | |
66 | #define xmac_l2_dest_addr13 48'hffff_ff00_0000 | |
67 | #define xmac_l2_dest_addr14 48'habcd_ef01_2345 | |
68 | #define xmac_l2_dest_addr15 48'hffff_ff00_0000 | |
69 | ||
70 | #define l2_dest_pause 48'h0180_C200_0001 | |
71 | ||
72 | #define rx_frame_class_0 CL_ARP | |
73 | #define rx_frame_class_1 CL_RARP | |
74 | #define rx_frame_class_2 CL_RSVP | |
75 | #define rx_frame_class_3 CL_IGMP | |
76 | #define rx_frame_class_4 CL_ICMP | |
77 | #define rx_frame_class_5 CL_PIM | |
78 | #define rx_frame_class_6 CL_GRE | |
79 | #define rx_frame_class_7 CL_IP | |
80 | #define rx_frame_class_8 CL_IP_OPT | |
81 | #define rx_frame_class_9 CL_IP_FRAG | |
82 | #define rx_frame_class_10 CL_IP_ROUTE | |
83 | #define rx_frame_class_11 CL_IP_SEC_AH | |
84 | #define rx_frame_class_12 CL_IP_SEC_ESP | |
85 | #define rx_frame_class_13 CL_UDP | |
86 | #define rx_frame_class_14 CL_UDP_FRAG | |
87 | #define rx_frame_class_15 CL_UDP_OPT | |
88 | #define rx_frame_class_16 CL_TCP | |
89 | #define rx_frame_class_17 CL_TCP_FRAG | |
90 | #define rx_frame_class_18 CL_TCP_OPT | |
91 | #define rx_frame_class_19 CL_SCTP | |
92 | #define rx_frame_class_20 CL_SCTP_OPT | |
93 | #define rx_frame_class_21 CL_SCTP_FRAG | |
94 | ||
95 | #define rx_frame_class_22 CL_ARP_IP_V6 | |
96 | #define rx_frame_class_23 CL_RARP_IP_V6 | |
97 | #define rx_frame_class_24 CL_RSVP_IP_V6 | |
98 | #define rx_frame_class_25 CL_IGMP_IP_V6 | |
99 | #define rx_frame_class_26 CL_ICMP_IP_V6 | |
100 | #define rx_frame_class_27 CL_PIM_IP_V6 | |
101 | #define rx_frame_class_28 CL_GRE_IP_V6 | |
102 | #define rx_frame_class_29 CL_IP_V6 | |
103 | #define rx_frame_class_30 CL_IP_V6_OPT | |
104 | #define rx_frame_class_31 CL_IP_V6_FRAG | |
105 | #define rx_frame_class_32 CL_IP_V6_ROUTE | |
106 | #define rx_frame_class_33 CL_IP_V6_SEC_AH | |
107 | #define rx_frame_class_34 CL_IP_V6_SEC_ESP | |
108 | #define rx_frame_class_35 CL_UDP_IP_V6 | |
109 | #define rx_frame_class_36 CL_UDP_FRAG_IP_V6 | |
110 | #define rx_frame_class_37 CL_UDP_OPT_IP_V6 | |
111 | #define rx_frame_class_38 CL_TCP_IP_V6 | |
112 | #define rx_frame_class_39 CL_TCP_FRAG_IP_V6 | |
113 | #define rx_frame_class_40 CL_TCP_OPT_IP_V6 | |
114 | #define rx_frame_class_41 CL_IP_TUN_V4_V4 | |
115 | #define rx_frame_class_42 CL_IP_TUN_V4_V6 | |
116 | #define rx_frame_class_43 CL_IP_TUN_V6_V4 | |
117 | #define rx_frame_class_44 CL_IP_TUN_V6_V6 | |
118 | #define rx_frame_class_45 CL_USER1 | |
119 | #define rx_frame_class_46 CL_USER2 | |
120 | #define rx_frame_class_47 CL_USER3 | |
121 | ||
122 | #define rx_frame_class_funct_0 CLF_SRC | |
123 | #define rx_frame_class_funct_1 CLF_DST | |
124 | #define rx_frame_class_funct_2 CLF_OR | |
125 | #define rx_frame_class_funct_3 CLF_AND | |
126 | ||
127 | #define rx_tcp_flags_0 6'b00_0010 | |
128 | #define rx_tcp_flags_1 6'b00_0100 | |
129 | #define rx_tcp_flags_2 6'b00_0001 | |
130 | #define rx_tcp_flags_3 6'b00_1000 | |
131 | #define rx_tcp_flags_4 6'b01_0000 | |
132 | #define rx_tcp_flags_5 6'b10_0000 |