5cff782560a1c3cf913ba5574a5123a299f3315emh/*
5cff782560a1c3cf913ba5574a5123a299f3315emh * CDDL HEADER START
5cff782560a1c3cf913ba5574a5123a299f3315emh *
5cff782560a1c3cf913ba5574a5123a299f3315emh * The contents of this file are subject to the terms of the
5cff782560a1c3cf913ba5574a5123a299f3315emh * Common Development and Distribution License (the "License").
5cff782560a1c3cf913ba5574a5123a299f3315emh * You may not use this file except in compliance with the License.
5cff782560a1c3cf913ba5574a5123a299f3315emh *
5cff782560a1c3cf913ba5574a5123a299f3315emh * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5cff782560a1c3cf913ba5574a5123a299f3315emh * or http://www.opensolaris.org/os/licensing.
5cff782560a1c3cf913ba5574a5123a299f3315emh * See the License for the specific language governing permissions
5cff782560a1c3cf913ba5574a5123a299f3315emh * and limitations under the License.
5cff782560a1c3cf913ba5574a5123a299f3315emh *
5cff782560a1c3cf913ba5574a5123a299f3315emh * When distributing Covered Code, include this CDDL HEADER in each
5cff782560a1c3cf913ba5574a5123a299f3315emh * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5cff782560a1c3cf913ba5574a5123a299f3315emh * If applicable, add the following below this CDDL HEADER, with the
5cff782560a1c3cf913ba5574a5123a299f3315emh * fields enclosed by brackets "[]" replaced with your own identifying
5cff782560a1c3cf913ba5574a5123a299f3315emh * information: Portions Copyright [yyyy] [name of copyright owner]
5cff782560a1c3cf913ba5574a5123a299f3315emh *
5cff782560a1c3cf913ba5574a5123a299f3315emh * CDDL HEADER END
5cff782560a1c3cf913ba5574a5123a299f3315emh */
5cff782560a1c3cf913ba5574a5123a299f3315emh/*
444f66e774d0e4f449866c7f5e64095f2fb0def0Mark Haywood * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
5cff782560a1c3cf913ba5574a5123a299f3315emh * Use is subject to license terms.
5cff782560a1c3cf913ba5574a5123a299f3315emh */
444f66e774d0e4f449866c7f5e64095f2fb0def0Mark Haywood/*
444f66e774d0e4f449866c7f5e64095f2fb0def0Mark Haywood * Copyright (c) 2009, Intel Corporation.
444f66e774d0e4f449866c7f5e64095f2fb0def0Mark Haywood * All Rights Reserved.
444f66e774d0e4f449866c7f5e64095f2fb0def0Mark Haywood */
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emh#ifndef _SYS_PPM_PLAT_H
5cff782560a1c3cf913ba5574a5123a299f3315emh#define _SYS_PPM_PLAT_H
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emh#include <sys/cpupm.h>
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emh#ifdef __cplusplus
5cff782560a1c3cf913ba5574a5123a299f3315emhextern "C" {
5cff782560a1c3cf913ba5574a5123a299f3315emh#endif
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emh#define PPM_GET_IO_DELAY(dc, delay) { \
5cff782560a1c3cf913ba5574a5123a299f3315emh if (dc->method == PPMDC_KIO) \
5cff782560a1c3cf913ba5574a5123a299f3315emh delay = dc->m_un.kio.delay; \
5cff782560a1c3cf913ba5574a5123a299f3315emh}
5cff782560a1c3cf913ba5574a5123a299f3315emh
1159df0bc965b142c76855c4c72c272ef1e960a4mh#define PPM_GET_IO_POST_DELAY(dc, delay) { \
1159df0bc965b142c76855c4c72c272ef1e960a4mh if (dc->method == PPMDC_KIO) \
1159df0bc965b142c76855c4c72c272ef1e960a4mh delay = dc->m_un.kio.post_delay; \
1159df0bc965b142c76855c4c72c272ef1e960a4mh}
1159df0bc965b142c76855c4c72c272ef1e960a4mh
444f66e774d0e4f449866c7f5e64095f2fb0def0Mark Haywoodextern void ppm_alloc_pstate_domains(cpu_t *);
444f66e774d0e4f449866c7f5e64095f2fb0def0Mark Haywoodextern void ppm_free_pstate_domains(cpu_t *);
5cff782560a1c3cf913ba5574a5123a299f3315emhextern void ppm_set_topspeed(ppm_dev_t *, int);
5cff782560a1c3cf913ba5574a5123a299f3315emhextern void ppm_redefine_topspeed(void *);
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emh#ifdef __cplusplus
5cff782560a1c3cf913ba5574a5123a299f3315emh}
5cff782560a1c3cf913ba5574a5123a299f3315emh#endif
5cff782560a1c3cf913ba5574a5123a299f3315emh
5cff782560a1c3cf913ba5574a5123a299f3315emh#endif /* _SYS_PPM_PLAT_H */