xref: /titanic_52/usr/src/lib/commpage/common/cp_defs.h (revision 263f549e5da8b32c4922f586afb365b8ae388a6c)
1*263f549eSPatrick Mooney /*
2*263f549eSPatrick Mooney  * This file and its contents are supplied under the terms of the
3*263f549eSPatrick Mooney  * Common Development and Distribution License ("CDDL"), version 1.0.
4*263f549eSPatrick Mooney  * You may only use this file in accordance with the terms of version
5*263f549eSPatrick Mooney  * 1.0 of the CDDL.
6*263f549eSPatrick Mooney  *
7*263f549eSPatrick Mooney  * A full copy of the text of the CDDL should have accompanied this
8*263f549eSPatrick Mooney  * source.  A copy of the CDDL is also available via the Internet at
9*263f549eSPatrick Mooney  * http://www.illumos.org/license/CDDL.
10*263f549eSPatrick Mooney  */
11*263f549eSPatrick Mooney 
12*263f549eSPatrick Mooney /*
13*263f549eSPatrick Mooney  * Copyright 2016 Joyent, Inc.
14*263f549eSPatrick Mooney  */
15*263f549eSPatrick Mooney 
16*263f549eSPatrick Mooney #ifndef	_CP_DEFS_H_
17*263f549eSPatrick Mooney #define	_CP_DEFS_H_
18*263f549eSPatrick Mooney 
19*263f549eSPatrick Mooney #include <sys/types.h>
20*263f549eSPatrick Mooney 
21*263f549eSPatrick Mooney #ifdef	__cplusplus
22*263f549eSPatrick Mooney extern "C" {
23*263f549eSPatrick Mooney #endif
24*263f549eSPatrick Mooney 
25*263f549eSPatrick Mooney struct comm_page;
26*263f549eSPatrick Mooney typedef struct comm_page comm_page_t;
27*263f549eSPatrick Mooney 
28*263f549eSPatrick Mooney extern uint_t __cp_can_gettime(comm_page_t *);
29*263f549eSPatrick Mooney extern hrtime_t __cp_gethrtime(comm_page_t *);
30*263f549eSPatrick Mooney extern int __cp_clock_gettime_realtime(comm_page_t *, timespec_t *);
31*263f549eSPatrick Mooney extern int __cp_clock_gettime_monotonic(comm_page_t *, timespec_t *);
32*263f549eSPatrick Mooney extern uint_t __cp_getcpu(comm_page_t *cp);
33*263f549eSPatrick Mooney 
34*263f549eSPatrick Mooney #ifdef	__cplusplus
35*263f549eSPatrick Mooney }
36*263f549eSPatrick Mooney #endif
37*263f549eSPatrick Mooney #endif /* _CP_DEFS_H_ */
38