xref: /illumos-gate/usr/src/uts/i86pc/sys/ppm_plat.h (revision 444f66e7)
15cff7825Smh /*
25cff7825Smh  * CDDL HEADER START
35cff7825Smh  *
45cff7825Smh  * The contents of this file are subject to the terms of the
55cff7825Smh  * Common Development and Distribution License (the "License").
65cff7825Smh  * You may not use this file except in compliance with the License.
75cff7825Smh  *
85cff7825Smh  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95cff7825Smh  * or http://www.opensolaris.org/os/licensing.
105cff7825Smh  * See the License for the specific language governing permissions
115cff7825Smh  * and limitations under the License.
125cff7825Smh  *
135cff7825Smh  * When distributing Covered Code, include this CDDL HEADER in each
145cff7825Smh  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155cff7825Smh  * If applicable, add the following below this CDDL HEADER, with the
165cff7825Smh  * fields enclosed by brackets "[]" replaced with your own identifying
175cff7825Smh  * information: Portions Copyright [yyyy] [name of copyright owner]
185cff7825Smh  *
195cff7825Smh  * CDDL HEADER END
205cff7825Smh  */
215cff7825Smh /*
22*444f66e7SMark Haywood  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
235cff7825Smh  * Use is subject to license terms.
245cff7825Smh  */
25*444f66e7SMark Haywood /*
26*444f66e7SMark Haywood  * Copyright (c) 2009,  Intel Corporation.
27*444f66e7SMark Haywood  * All Rights Reserved.
28*444f66e7SMark Haywood  */
295cff7825Smh 
305cff7825Smh #ifndef _SYS_PPM_PLAT_H
315cff7825Smh #define	_SYS_PPM_PLAT_H
325cff7825Smh 
335cff7825Smh #include <sys/cpupm.h>
345cff7825Smh 
355cff7825Smh #ifdef  __cplusplus
365cff7825Smh extern "C" {
375cff7825Smh #endif
385cff7825Smh 
395cff7825Smh #define	PPM_GET_IO_DELAY(dc, delay) { \
405cff7825Smh 	if (dc->method == PPMDC_KIO) \
415cff7825Smh 		delay = dc->m_un.kio.delay; \
425cff7825Smh }
435cff7825Smh 
441159df0bSmh #define	PPM_GET_IO_POST_DELAY(dc, delay) { \
451159df0bSmh 	if (dc->method == PPMDC_KIO) \
461159df0bSmh 		delay = dc->m_un.kio.post_delay; \
471159df0bSmh }
481159df0bSmh 
49*444f66e7SMark Haywood extern void	ppm_alloc_pstate_domains(cpu_t *);
50*444f66e7SMark Haywood extern void	ppm_free_pstate_domains(cpu_t *);
515cff7825Smh extern void	ppm_set_topspeed(ppm_dev_t *, int);
525cff7825Smh extern void	ppm_redefine_topspeed(void *);
535cff7825Smh 
545cff7825Smh #ifdef  __cplusplus
555cff7825Smh }
565cff7825Smh #endif
575cff7825Smh 
585cff7825Smh #endif /* _SYS_PPM_PLAT_H */
59