2014-07-27 17:26:58 -07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2014 VMware, Inc.
|
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at:
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
2014-08-29 04:06:48 +00:00
|
|
|
#ifndef __TYPES_H_
|
|
|
|
#define __TYPES_H_ 1
|
2014-07-27 17:26:58 -07:00
|
|
|
|
2014-08-22 09:59:59 -07:00
|
|
|
/* Defines the userspace specific data types
|
|
|
|
* for files included from user space. */
|
2014-07-27 17:26:58 -07:00
|
|
|
typedef unsigned long long uint64, uint64_t, ovs_be64, u64;
|
|
|
|
typedef long long int64, int64_t;
|
|
|
|
typedef unsigned int uint32, uint32_t, ovs_be32, u32;
|
|
|
|
typedef unsigned short uint16, uint16_t, ovs_be16, u16;
|
|
|
|
typedef unsigned char uint8, uint8_t, u8;
|
|
|
|
typedef uint64 __u64, __be64;
|
|
|
|
typedef uint32 __u32, __be32;
|
|
|
|
typedef uint16 __u16, __be16;
|
|
|
|
typedef uint8 __u8;
|
2016-04-13 11:54:03 -07:00
|
|
|
typedef union ovs_u128 {
|
|
|
|
uint32_t u32[4];
|
|
|
|
struct {
|
|
|
|
uint64_t lo, hi;
|
|
|
|
} u64;
|
|
|
|
} ovs_u128;
|
2014-07-27 17:26:58 -07:00
|
|
|
|
2014-08-22 09:59:59 -07:00
|
|
|
/* Defines the userspace specific data types for file
|
|
|
|
* included within kernel only. */
|
2014-09-26 17:32:31 -07:00
|
|
|
typedef UINT8 BE8;
|
2014-09-03 16:33:24 -07:00
|
|
|
typedef UINT16 BE16;
|
2014-08-22 09:59:59 -07:00
|
|
|
typedef UINT32 BE32;
|
|
|
|
typedef UINT64 BE64;
|
|
|
|
|
2014-07-27 17:26:58 -07:00
|
|
|
#define ETH_ALEN 6
|
|
|
|
|
2014-08-22 09:59:59 -07:00
|
|
|
#define SIZE_MAX MAXUINT32
|
|
|
|
|
2014-08-29 04:06:48 +00:00
|
|
|
#endif /* __TYPES_H_ */
|