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