/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2009 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _HPET_H
#define _HPET_H
#include <sys/hpet_acpi.h>
/*
* Interface for HPET access.
*/
#ifdef __cplusplus
extern "C" {
#endif
/*
* HPET_INFINITY is used for timers that will never expire.
*/
/*
* State of initialization.
*/
#define HPET_NO_SUPPORT (0)
typedef struct hpet {
/*
* Next two function pointers allow CPUs to use the HPET's timer
* as a proxy for their LAPIC timers which stop during Deep C-State.
*/
} hpet_t;
/*
* unix access to the HPET is done through the hpet structure.
*/
void hpet_acpi_fini(void);
uint32_t hpet_proxy_ipl(void);
#ifdef __cplusplus
}
#endif
#endif /* _HPET_H */