]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - sys/sys/_stdint.h
Implement pci_enable_msi() and pci_disable_msi() in the LinuxKPI.
[FreeBSD/FreeBSD.git] / sys / sys / _stdint.h
1 /*-
2  * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3  *
4  * Copyright (c) 2011 David E. O'Brien <obrien@FreeBSD.org>
5  * Copyright (c) 2001 Mike Barcroft <mike@FreeBSD.org>
6  * All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions
10  * are met:
11  * 1. Redistributions of source code must retain the above copyright
12  *    notice, this list of conditions and the following disclaimer.
13  * 2. Redistributions in binary form must reproduce the above copyright
14  *    notice, this list of conditions and the following disclaimer in the
15  *    documentation and/or other materials provided with the distribution.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
21  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27  * SUCH DAMAGE.
28  *
29  * $FreeBSD$
30  */
31
32 #ifndef _SYS__STDINT_H_
33 #define _SYS__STDINT_H_
34
35 #ifndef _INT8_T_DECLARED
36 typedef __int8_t                int8_t;
37 #define _INT8_T_DECLARED
38 #endif
39
40 #ifndef _INT16_T_DECLARED
41 typedef __int16_t               int16_t;
42 #define _INT16_T_DECLARED
43 #endif
44
45 #ifndef _INT32_T_DECLARED
46 typedef __int32_t               int32_t;
47 #define _INT32_T_DECLARED
48 #endif
49
50 #ifndef _INT64_T_DECLARED
51 typedef __int64_t               int64_t;
52 #define _INT64_T_DECLARED
53 #endif
54
55 #ifndef _UINT8_T_DECLARED
56 typedef __uint8_t               uint8_t;
57 #define _UINT8_T_DECLARED
58 #endif
59
60 #ifndef _UINT16_T_DECLARED
61 typedef __uint16_t              uint16_t;
62 #define _UINT16_T_DECLARED
63 #endif
64
65 #ifndef _UINT32_T_DECLARED
66 typedef __uint32_t              uint32_t;
67 #define _UINT32_T_DECLARED
68 #endif
69
70 #ifndef _UINT64_T_DECLARED
71 typedef __uint64_t              uint64_t;
72 #define _UINT64_T_DECLARED
73 #endif
74
75 #ifndef _INTPTR_T_DECLARED
76 typedef __intptr_t              intptr_t;
77 #define _INTPTR_T_DECLARED
78 #endif
79 #ifndef _UINTPTR_T_DECLARED
80 typedef __uintptr_t             uintptr_t;
81 #define _UINTPTR_T_DECLARED
82 #endif
83 #ifndef _INTMAX_T_DECLARED
84 typedef __intmax_t              intmax_t;
85 #define _INTMAX_T_DECLARED
86 #endif
87 #ifndef _UINTMAX_T_DECLARED
88 typedef __uintmax_t             uintmax_t;
89 #define _UINTMAX_T_DECLARED
90 #endif
91
92 #endif /* !_SYS__STDINT_H_ */