acpi_slit.h revision 1.3
11.3Sjruoho/* $NetBSD: acpi_slit.h,v 1.3 2010/03/05 08:30:48 jruoho Exp $ */
21.1Scegger
31.1Scegger/*
41.1Scegger * Copyright (c) 2009 The NetBSD Foundation, Inc.
51.1Scegger * All rights reserved.
61.1Scegger *
71.1Scegger * This code is derived from software contributed to The NetBSD Foundation
81.1Scegger * by Christoph Egger.
91.1Scegger *
101.1Scegger * Redistribution and use in source and binary forms, with or without
111.1Scegger * modification, are permitted provided that the following conditions
121.1Scegger * are met:
131.1Scegger * 1. Redistributions of source code must retain the above copyright
141.1Scegger *    notice, this list of conditions and the following disclaimer.
151.1Scegger * 2. Redistributions in binary form must reproduce the above copyright
161.1Scegger *    notice, this list of conditions and the following disclaimer in the
171.1Scegger *    documentation and/or other materials provided with the distribution.
181.1Scegger *
191.1Scegger * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
201.1Scegger * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
211.1Scegger * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
221.1Scegger * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
231.1Scegger * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
241.1Scegger * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
251.1Scegger * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
261.1Scegger * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
271.1Scegger * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
281.1Scegger * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
291.1Scegger * POSSIBILITY OF SUCH DAMAGE.
301.1Scegger */
311.1Scegger
321.3Sjruoho#ifndef _SYS_DEV_ACPI_ACPI_SLIT_H
331.3Sjruoho#define _SYS_DEV_ACPI_ACPI_SLIT_H
341.1Scegger
351.1Scegger/* Returns true if ACPI SLIT table is available
361.1Scegger * If table does not exist, all functions below
371.1Scegger * have undefined behaviour.
381.1Scegger */
391.1Sceggerbool acpislit_exist(void);
401.1Scegger
411.1Scegger/* Initializes parser. Must be the first function
421.1Scegger * being called when table is available.
431.1Scegger */
441.1Sceggerint acpislit_init(void);
451.1Scegger
461.1Sceggervoid acpislit_dump(void);
471.1Scegger
481.1Scegger/* Retrieve number of cpus */
491.1Sceggeruint32_t acpislit_cpus(void);
501.1Scegger
511.1Scegger/* Get distance between cpu1 and cpu2 */
521.1Sceggeruint32_t acpislit_distance(uint32_t, uint32_t);
531.1Scegger
541.3Sjruoho#endif	/* !_SYS_DEV_ACPI_ACPI_SLIT_H */
55