Commit | Line | Data |
---|---|---|
86530b38 AT |
1 | /* |
2 | * ========== Copyright Header Begin ========================================== | |
3 | * | |
4 | * OpenSPARC T2 Processor File: fflp.h | |
5 | * Copyright (C) 1995-2007 Sun Microsystems, Inc. All Rights Reserved | |
6 | * 4150 Network Circle, Santa Clara, California 95054, U.S.A. | |
7 | * | |
8 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | |
9 | * | |
10 | * This program is free software; you can redistribute it and/or modify | |
11 | * it under the terms of the GNU General Public License as published by | |
12 | * the Free Software Foundation; version 2 of the License. | |
13 | * | |
14 | * This program is distributed in the hope that it will be useful, | |
15 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17 | * GNU General Public License for more details. | |
18 | * | |
19 | * You should have received a copy of the GNU General Public License | |
20 | * along with this program; if not, write to the Free Software | |
21 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
22 | * | |
23 | * For the avoidance of doubt, and except that if any non-GPL license | |
24 | * choice is available it will apply instead, Sun elects to use only | |
25 | * the General Public License version 2 (GPLv2) at this time for any | |
26 | * software where a choice of GPL license versions is made | |
27 | * available with the language indicating that GPLv2 or any later version | |
28 | * may be used, or where a choice of which version of the GPL is applied is | |
29 | * otherwise unspecified. | |
30 | * | |
31 | * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, | |
32 | * CA 95054 USA or visit www.sun.com if you need additional information or | |
33 | * have any questions. | |
34 | * | |
35 | * | |
36 | * ========== Copyright Header End ============================================ | |
37 | */ | |
38 | /**********************************************************************/ | |
39 | /*project name: NIU */ | |
40 | /*module name: */ | |
41 | /*description: */ | |
42 | /* include file for fflp.v */ | |
43 | /* */ | |
44 | /*parent module in: n.a. */ | |
45 | /*child modules in: n.a. */ | |
46 | /*interface modules: */ | |
47 | /*author name: Jeanne Cai */ | |
48 | /*date created: 03-18-04 */ | |
49 | /* */ | |
50 | /* Copyright (c) 2204, Sun Microsystems, Inc. */ | |
51 | /* Sun Proprietary and Confidential */ | |
52 | /* */ | |
53 | /**********************************************************************/ | |
54 | ||
55 | //pkt_type | |
56 | ||
57 | `define TYPE_IPV4 16'h0800 | |
58 | `define TYPE_IPV6 16'h86dd | |
59 | `define TYPE_ARP 16'h0806 | |
60 | `define TYPE_RARP 16'h8035 | |
61 | ||
62 | `define TCP 8'b0000_0110 //d'6 | |
63 | `define UDP 8'b0001_0001 //d'17 | |
64 | `define AH 8'b0011_0011 //d'51 | |
65 | `define ESP 8'b0011_0010 //d'50 | |
66 | `define SCTP 8'b1000_0100 //d'132 | |
67 | ||
68 | ||
69 | //cpu cmd | |
70 | ||
71 | `define WR_CAM_KEY 3'b000 | |
72 | `define RD_CAM_KEY 3'b001 | |
73 | `define COMP_SINGLE_KEY 3'b010 | |
74 | `define NOP_CMD3 3'b011 | |
75 | `define WR_ASSOC_D 3'b100 | |
76 | `define RD_ASSOC_D 3'b101 | |
77 | `define NOP_CMD1 3'b110 | |
78 | `define NOP_CMD2 3'b111 | |
79 | ||
80 | //ram commands | |
81 | ||
82 | `define RAM_R 2'b00 | |
83 | `define RAM_W 2'b01 | |
84 | `define RAM_RMW 2'b10 | |
85 | ||
86 | //FCRAM commands | |
87 | ||
88 | `define DESL 2'b10 | |
89 | `define RDA 2'b01 | |
90 | `define WRA 2'b00 | |
91 | `define LAL 2'b10 | |
92 | `define REF 2'b00 | |
93 | `define MRS 2'b00 | |
94 | ||
95 |