xref: /illumos-gate/usr/src/uts/common/io/qede/qede_types.h (revision 14b24e2b79293068c8e016a69ef1d872fb5e2fd5)
1 /*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, v.1,  (the "License").
6 * You may not use this file except in compliance with the License.
7 *
8 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 * or http://opensource.org/licenses/CDDL-1.0.
10 * See the License for the specific language governing permissions
11 * and limitations under the License.
12 *
13 * When distributing Covered Code, include this CDDL HEADER in each
14 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 * If applicable, add the following below this CDDL HEADER, with the
16 * fields enclosed by brackets "[]" replaced with your own identifying
17 * information: Portions Copyright [yyyy] [name of copyright owner]
18 *
19 * CDDL HEADER END
20 */
21 
22 /*
23 * Copyright 2014-2017 Cavium, Inc.
24 * The contents of this file are subject to the terms of the Common Development
25 * and Distribution License, v.1,  (the "License").
26 
27 * You may not use this file except in compliance with the License.
28 
29 * You can obtain a copy of the License at available
30 * at http://opensource.org/licenses/CDDL-1.0
31 
32 * See the License for the specific language governing permissions and
33 * limitations under the License.
34 */
35 
36 #ifndef _QEDE_TYPES_H
37 #define _QEDE_TYPES_H
38 
39 typedef uint8_t			u8;
40 typedef uint8_t			U8;
41 typedef uint16_t		u16;
42 typedef uint16_t		U16;
43 typedef uint32_t		u32;
44 typedef uint32_t		U32;
45 typedef uint64_t		u64;
46 typedef	uint64_t		U64;
47 typedef	boolean_t		bool;
48 
49 typedef u16			__le16;
50 typedef	u32			__le32;
51 typedef	u64			__le64;
52 
53 typedef int8_t			s8;
54 typedef int16_t			s16;
55 typedef int32_t			s32;
56 typedef int64_t			s64;
57 
58 typedef	void *			int_ptr_t;
59 
60 typedef int OSAL_BE32;
61 typedef	void *	osal_dpc_t;
62 typedef u64 dma_addr_t;
63 
64 /*
65  * NOTE: This should be changed to
66  * u32 for 32-bit. Add appr. ifdef
67  * or kerenl type which suits this
68  * requirement
69  */
70 typedef	u64 osal_uintptr_t;
71 
72 #endif  /* !_QEDE_TYPES_H */
73