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 _TSC_H 17*263f549eSPatrick Mooney #define _TSC_H 18*263f549eSPatrick Mooney 19*263f549eSPatrick Mooney /* 20*263f549eSPatrick Mooney * flags to patch tsc_read routine. 21*263f549eSPatrick Mooney */ 22*263f549eSPatrick Mooney #define TSC_NONE 0x0 23*263f549eSPatrick Mooney #define TSC_RDTSC_CPUID 0x1 24*263f549eSPatrick Mooney #define TSC_RDTSC_MFENCE 0x2 25*263f549eSPatrick Mooney #define TSC_RDTSC_LFENCE 0x3 26*263f549eSPatrick Mooney #define TSC_TSCP 0x4 27*263f549eSPatrick Mooney 28*263f549eSPatrick Mooney #endif /* _TSC_H */ 29