BitOhenry | 83b5323 | 2015-11-18 17:26:55 +0800 | [diff] [blame] | 1 | // 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 |
| 33 | struct of_oxm_reg0 : of_oxm { |
| 34 | uint32_t type_len == 0x00010004; |
| 35 | uint32_t value; |
| 36 | }; |
| 37 | |
| 38 | struct 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 |
| 45 | struct of_oxm_reg1 : of_oxm { |
| 46 | uint32_t type_len == 0x00010204; |
| 47 | uint32_t value; |
| 48 | }; |
| 49 | |
| 50 | struct 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 |
| 57 | struct of_oxm_reg2 : of_oxm { |
| 58 | uint32_t type_len == 0x00010404; |
| 59 | uint32_t value; |
| 60 | }; |
| 61 | |
| 62 | struct 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 |
| 69 | struct of_oxm_reg3 : of_oxm { |
| 70 | uint32_t type_len == 0x00010604; |
| 71 | uint32_t value; |
| 72 | }; |
| 73 | |
| 74 | struct 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 |
| 81 | struct of_oxm_reg4 : of_oxm { |
| 82 | uint32_t type_len == 0x00010804; |
| 83 | uint32_t value; |
| 84 | }; |
| 85 | |
| 86 | struct 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 |
| 93 | struct of_oxm_reg5 : of_oxm { |
| 94 | uint32_t type_len == 0x00010a04; |
| 95 | uint32_t value; |
| 96 | }; |
| 97 | |
| 98 | struct 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 |
| 105 | struct of_oxm_reg6 : of_oxm { |
| 106 | uint32_t type_len == 0x00010c04; |
| 107 | uint32_t value; |
| 108 | }; |
| 109 | |
| 110 | struct 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 |
| 117 | struct of_oxm_reg7 : of_oxm { |
| 118 | uint32_t type_len == 0x00010e04; |
| 119 | uint32_t value; |
| 120 | }; |
| 121 | |
| 122 | struct of_oxm_reg7_masked : of_oxm { |
| 123 | uint32_t type_len == 0x00011008; |
| 124 | uint32_t value; |
| 125 | uint32_t value_mask; |
| 126 | }; |