Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | // ========== Copyright Header Begin ========================================== |
2 | // | |
3 | // OpenSPARC T2 Processor File: ht_db.vr | |
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 HT_DB | |
36 | ||
37 | class ht_db { | |
38 | ||
39 | //======================================================= | |
40 | //= IPP-HRP post_data parameters === | |
41 | //======================================================= | |
42 | bit dest_port_type = 1'bx; // dest_port_type | |
43 | // 0: IBTP | |
44 | // 1: HRP | |
45 | bit [1:0] HT_target_type = 2'bx; // 00: IPSec | |
46 | // 01: reserved | |
47 | // 10: CPU | |
48 | // 11: TCP TE | |
49 | bit discard = 1'bx; | |
50 | bit goodpkt = 1'bx; | |
51 | ||
52 | ||
53 | //======================================================= | |
54 | //= OPP-HRP Control Word parameters === | |
55 | //======================================================= | |
56 | bit [7:0] packet_type = 8'bx; // Packet type | |
57 | // 8'b0xxxxxxx - Skip; disable this tag | |
58 | // 8'b10000001 - IB | |
59 | // 8'b10000010 - Network | |
60 | // 8'b10000011 - IPSec(decrypted) | |
61 | // 8'b10000100 - IPSec(encrypted) | |
62 | // 8'b10000101 - IPSec Command | |
63 | // 8'b10000110 - TE | |
64 | // 8'b10000111 - Rdma Read | |
65 | // 8'b10001000 - Rdma Write | |
66 | bit [3:0] packet_source = 4'bx; // Packet Source | |
67 | // 4'b0000 - None | |
68 | // 4'b0001 - IB | |
69 | // 4'b0010 - Network | |
70 | // 4'b1000 - IPSec | |
71 | // 4'b1010 - TE | |
72 | // 4'b1011 - CPU | |
73 | bit [3:0] initial_dest = 4'bx; // Initial Dest of packet | |
74 | // 4'b0000 - None | |
75 | // 4'b0001 - IB | |
76 | // 4'b0010 - Network | |
77 | // 4'b1000 - IPSec | |
78 | // 4'b1010 - TE | |
79 | // 4'b1011 - CPU | |
80 | ||
81 | bit [3:0] final_dest = 4'bx; // Final Dest of packet | |
82 | // 4'b0000 - None | |
83 | // 4'b0001 - IB | |
84 | // 4'b0010 - Network | |
85 | // 4'b1000 - IPSec | |
86 | // 4'b1010 - TE | |
87 | // 4'b1011 - CPU | |
88 | bit [7:0] dest_port = 8'bx; // Final port Destination | |
89 | // 8'h00 - mac0 | |
90 | // 8'h01 - mac1 | |
91 | // 8'h02 - mac2 | |
92 | // 8'h03 - mac3 | |
93 | // 8'h00 -8'h3f - QPn | |
94 | bit [3:0] dest_qos = 4'bx; // Service Level of Packet | |
95 | bit [10:0] rsvd1 = 11'bx; // Reserved fields | |
96 | bit [11:0] mac_default = 12'h0; // mac_default for IPSec from IP flow | |
97 | bit [7:0] mac_index = 8'h0; // mac_index for IPSec from IP flow | |
98 | bit [10:0] bucket_cnt = 11'bx; // number of buckets for the packet | |
99 | // rsvd for IB flow | |
100 | bit [10:0] eop_offset = 11'bx; // {line_offset, byte_offset} | |
101 | // rsvd for IB flow | |
102 | bit [13:0] pkt_length = 14'bx; // packet_length, mac status bytes(8) not | |
103 | // included, rsvd for IB flow | |
104 | bit [2:0] rsvd2 = 3'bx; // Reserved fields | |
105 | bit crc_err_from_mac = 1'b0; // crc error from mac_status | |
106 | // rsvd for IB flow | |
107 | bit [4:0] rsvd3 = 5'bx; // Reserved fields | |
108 | bit [63:0] mac_status = 64'b0; // Mac status word | |
109 | // rsvd from IB side data flow | |
110 | ||
111 | ||
112 | bit [127:0] control_word2 = 127'bx; // 2nd line of the control word | |
113 | ||
114 | bit abort = 1'b0; // abort bit in pakt status | |
115 | bit par_hdr_err = 1'b0; // parity error in header | |
116 | bit par_data_err = 1'b0; // parity error in packet data | |
117 | bit buf_alloc_err = 1'b0; // buffer size allocation error | |
118 | bit [3:0] mac_port = 4'b0; // mac source port 0-3, 4'b1111-HTP | |
119 | bit [19:0] chksum_info = 20'b0; //checksum info from MAC | |
120 | bit null_packet = 1'bx; | |
121 | ||
122 | } // end of class ht_db |