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