blob: b328dcf5493938507a61cb0f0d3dd55243884e79 [file] [log] [blame]
BitOhenry83b53232015-11-18 17:26:55 +08001// Copyright 2015, Big Switch Networks, Inc.
2//
3// LoxiGen is licensed under the Eclipse Public License, version 1.0 (EPL), with
4// the following special exception:
5//
6// LOXI Exception
7//
8// As a special exception to the terms of the EPL, you may distribute libraries
9// generated by LoxiGen (LoxiGen Libraries) under the terms of your choice, provided
10// that copyright and licensing notices generated by LoxiGen are not altered or removd
11// from the LoxiGen Libraries and the notice provided below is (i) included in
12// the LoxiGen Libraries, if distributed in source code form and (ii) included in any
13// documentation for the LoxiGen Libraries, if distributed in binary form.
14//
15// Notice: "Copyright 2013, Big Switch Networks, Inc. This library was generated by t"
16//
17// You may not use this file except in compliance with the EPL or LOXI Exception. Youn
18// a copy of the EPL at:
19//
20// http://www.eclipse.org/legal/epl-v10.html
21//
22// Unless required by applicable law or agreed to in writing, software
23// distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
24// WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
25// EPL for the specific language governing permissions and limitations
26// under the EPL.
27
28#version 3
29#version 4
30#version 5
31
32// Nicira extension for reg0
33struct of_oxm_reg0 : of_oxm {
34 uint32_t type_len == 0x00010004;
35 uint32_t value;
36};
37
38struct of_oxm_reg0_masked : of_oxm {
39 uint32_t type_len == 0x00010108;
40 uint32_t value;
41 uint32_t value_mask;
42};
43
44// Nicira extension for reg1
45struct of_oxm_reg1 : of_oxm {
46 uint32_t type_len == 0x00010204;
47 uint32_t value;
48};
49
50struct of_oxm_reg1_masked : of_oxm {
51 uint32_t type_len == 0x00010308;
52 uint32_t value;
53 uint32_t value_mask;
54};
55
56// Nicira extension for reg2
57struct of_oxm_reg2 : of_oxm {
58 uint32_t type_len == 0x00010404;
59 uint32_t value;
60};
61
62struct of_oxm_reg2_masked : of_oxm {
63 uint32_t type_len == 0x00010508;
64 uint32_t value;
65 uint32_t value_mask;
66};
67
68// Nicira extension for reg3
69struct of_oxm_reg3 : of_oxm {
70 uint32_t type_len == 0x00010604;
71 uint32_t value;
72};
73
74struct of_oxm_reg3_masked : of_oxm {
75 uint32_t type_len == 0x00010708;
76 uint32_t value;
77 uint32_t value_mask;
78};
79
80// Nicira extension for reg4
81struct of_oxm_reg4 : of_oxm {
82 uint32_t type_len == 0x00010804;
83 uint32_t value;
84};
85
86struct of_oxm_reg4_masked : of_oxm {
87 uint32_t type_len == 0x00010908;
88 uint32_t value;
89 uint32_t value_mask;
90};
91
92// Nicira extension for reg5
93struct of_oxm_reg5 : of_oxm {
94 uint32_t type_len == 0x00010a04;
95 uint32_t value;
96};
97
98struct of_oxm_reg5_masked : of_oxm {
99 uint32_t type_len == 0x00010b08;
100 uint32_t value;
101 uint32_t value_mask;
102};
103
104// Nicira extension for reg6
105struct of_oxm_reg6 : of_oxm {
106 uint32_t type_len == 0x00010c04;
107 uint32_t value;
108};
109
110struct of_oxm_reg6_masked : of_oxm {
111 uint32_t type_len == 0x00010d08;
112 uint32_t value;
113 uint32_t value_mask;
114};
115
116// Nicira extension for reg7
117struct of_oxm_reg7 : of_oxm {
118 uint32_t type_len == 0x00010e04;
119 uint32_t value;
120};
121
122struct of_oxm_reg7_masked : of_oxm {
123 uint32_t type_len == 0x00011008;
124 uint32_t value;
125 uint32_t value_mask;
126};