12428aadPatrick Mooney/*
22428aadPatrick Mooney * This file and its contents are supplied under the terms of the
32428aadPatrick Mooney * Common Development and Distribution License ("CDDL"), version 1.0.
42428aadPatrick Mooney * You may only use this file in accordance with the terms of version
52428aadPatrick Mooney * 1.0 of the CDDL.
62428aadPatrick Mooney *
72428aadPatrick Mooney * A full copy of the text of the CDDL should have accompanied this
82428aadPatrick Mooney * source.  A copy of the CDDL is also available via the Internet at
92428aadPatrick Mooney * http://www.illumos.org/license/CDDL.
102428aadPatrick Mooney */
112428aadPatrick Mooney
122428aadPatrick Mooney/*
132428aadPatrick Mooney * Copyright 2016 Joyent, Inc.
142428aadPatrick Mooney */
152428aadPatrick Mooney
162428aadPatrick Mooney#ifndef _TSC_H
172428aadPatrick Mooney#define	_TSC_H
182428aadPatrick Mooney
192428aadPatrick Mooney/*
202428aadPatrick Mooney * flags to patch tsc_read routine.
212428aadPatrick Mooney */
222428aadPatrick Mooney#define	TSC_NONE		0x0
232428aadPatrick Mooney#define	TSC_RDTSC_CPUID		0x1
242428aadPatrick Mooney#define	TSC_RDTSC_MFENCE	0x2
252428aadPatrick Mooney#define	TSC_RDTSC_LFENCE	0x3
262428aadPatrick Mooney#define	TSC_TSCP		0x4
272428aadPatrick Mooney
282428aadPatrick Mooney#endif /* _TSC_H */