/*
* 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 2008 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 2010, Intel Corporation.
* All rights reserved.
*/
#ifndef _SYS_DRMACH_ACPI_H
#define _SYS_DRMACH_ACPI_H
#ifdef __cplusplus
extern "C" {
#endif
#ifdef _KERNEL
/* Use ACPI handle as DRMACH handle on x86 systems. */
/* Macros to deal with object type. */
((id != 0) && \
((id != 0) && \
#define DRMACH_INTERNAL_ERROR() \
#ifdef DEBUG
extern int drmach_debug;
#else
#endif /* DEBUG */
typedef struct {
void *data;
void *func;
typedef struct drmach_node {
void *here;
int *len);
typedef struct {
int min_index;
int max_index;
int arr_sz;
typedef struct {
void *isa;
typedef struct {
int assigned;
int powered;
int connected;
int cond;
typedef struct {
int unum;
int busy;
int powered;
const char *type;
typedef struct drmach_cpu {
} drmach_cpu_t;
typedef struct drmach_mem {
} drmach_mem_t;
typedef struct drmach_io {
} drmach_io_t;
typedef struct drmach_domain_info {
int allow_dr;
typedef struct {
int ndevs;
void *a;
extern drmach_domain_info_t drmach_domain;
drmach_board_t *, int, drmachid_t *);
#endif /* _KERNEL */
#ifdef __cplusplus
}
#endif
#endif /* _SYS_DRMACH_ACPI_H */