acpi_timer.h revision 1.6
11.6Sjruoho/* $NetBSD: acpi_timer.h,v 1.6 2010/07/10 19:37:38 jruoho Exp $ */ 21.4Sjruoho 31.4Sjruoho/*- 41.4Sjruoho * Copyright (c) 2006 Matthias Drochner <drochner@NetBSD.org> 51.4Sjruoho * All rights reserved. 61.4Sjruoho * 71.4Sjruoho * Redistribution and use in source and binary forms, with or without 81.4Sjruoho * modification, are permitted provided that the following conditions 91.4Sjruoho * are met: 101.4Sjruoho * 1. Redistributions of source code must retain the above copyright 111.4Sjruoho * notice, this list of conditions and the following disclaimer. 121.4Sjruoho * 2. Redistributions in binary form must reproduce the above copyright 131.4Sjruoho * notice, this list of conditions and the following disclaimer in the 141.4Sjruoho * documentation and/or other materials provided with the distribution. 151.4Sjruoho * 161.4Sjruoho * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 171.4Sjruoho * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 181.4Sjruoho * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 191.4Sjruoho * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 201.4Sjruoho * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 211.4Sjruoho * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 221.4Sjruoho * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 231.4Sjruoho * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 241.4Sjruoho * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 251.4Sjruoho * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 261.4Sjruoho * POSSIBILITY OF SUCH DAMAGE. 271.4Sjruoho */ 281.1Sdrochner 291.3Sjruoho#ifndef _SYS_DEV_ACPI_ACPI_TIMER_H 301.3Sjruoho#define _SYS_DEV_ACPI_ACPI_TIMER_H 311.3Sjruoho 321.6Sjruohoint acpitimer_init(struct acpi_softc *); 331.6Sjruohoint acpitimer_detach(void); 341.6Sjruohou_int acpitimer_read_safe(struct timecounter *); 351.6Sjruohou_int acpitimer_read_fast(struct timecounter *); 361.6Sjruohouint32_t acpitimer_delta(uint32_t, uint32_t); 371.3Sjruoho 381.3Sjruoho#endif /* !_SYS_DEV_ACPI_ACPI_TIMER_H */ 39