xref: /openbmc/linux/drivers/infiniband/hw/usnic/usnic_common_pkt_hdr.h (revision 0337966d121ebebf73a1c346123e8112796e684e)
1e3cf00d0SUpinder Malhi /*
2e3cf00d0SUpinder Malhi  * Copyright (c) 2013, Cisco Systems, Inc. All rights reserved.
3e3cf00d0SUpinder Malhi  *
4*3805eadeSJeff Squyres  * This software is available to you under a choice of one of two
5*3805eadeSJeff Squyres  * licenses.  You may choose to be licensed under the terms of the GNU
6*3805eadeSJeff Squyres  * General Public License (GPL) Version 2, available from the file
7*3805eadeSJeff Squyres  * COPYING in the main directory of this source tree, or the
8*3805eadeSJeff Squyres  * BSD license below:
9*3805eadeSJeff Squyres  *
10*3805eadeSJeff Squyres  *     Redistribution and use in source and binary forms, with or
11*3805eadeSJeff Squyres  *     without modification, are permitted provided that the following
12*3805eadeSJeff Squyres  *     conditions are met:
13*3805eadeSJeff Squyres  *
14*3805eadeSJeff Squyres  *      - Redistributions of source code must retain the above
15*3805eadeSJeff Squyres  *        copyright notice, this list of conditions and the following
16*3805eadeSJeff Squyres  *        disclaimer.
17*3805eadeSJeff Squyres  *
18*3805eadeSJeff Squyres  *      - Redistributions in binary form must reproduce the above
19*3805eadeSJeff Squyres  *        copyright notice, this list of conditions and the following
20*3805eadeSJeff Squyres  *        disclaimer in the documentation and/or other materials
21*3805eadeSJeff Squyres  *        provided with the distribution.
22e3cf00d0SUpinder Malhi  *
23e3cf00d0SUpinder Malhi  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24e3cf00d0SUpinder Malhi  * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25e3cf00d0SUpinder Malhi  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
26e3cf00d0SUpinder Malhi  * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
27e3cf00d0SUpinder Malhi  * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
28e3cf00d0SUpinder Malhi  * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
29e3cf00d0SUpinder Malhi  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
30e3cf00d0SUpinder Malhi  * SOFTWARE.
31e3cf00d0SUpinder Malhi  *
32e3cf00d0SUpinder Malhi  */
33e3cf00d0SUpinder Malhi 
34e3cf00d0SUpinder Malhi #ifndef USNIC_CMN_PKT_HDR_H
35e3cf00d0SUpinder Malhi #define USNIC_CMN_PKT_HDR_H
36e3cf00d0SUpinder Malhi 
37e3cf00d0SUpinder Malhi #define USNIC_ROCE_GRH_VER              (8)
38e3cf00d0SUpinder Malhi #define USNIC_PROTO_VER                 (1)
39e3cf00d0SUpinder Malhi #define USNIC_ROCE_GRH_VER_SHIFT        (4)
40e3cf00d0SUpinder Malhi 
41e3cf00d0SUpinder Malhi #endif /* USNIC_COMMON_PKT_HDR_H */
42