/*
* 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.
*/
/*
* Copyright (c) 2009-2010, Intel Corporation.
* All rights reserved.
*/
#ifndef _SYS_ACPICA_H
#define _SYS_ACPICA_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
} AcpiCA;
/* acpi-user-options options property */
extern unsigned int acpi_options_prop;
/*
* Initialization state of the ACPI CA subsystem
*/
#define ACPICA_NOT_INITIALIZED (0)
extern int acpica_init(void);
extern void acpica_ec_init(void);
/*
* acpi_status property values
*/
/*
* definitions of Bus Type
*/
/*
* intr_po - polarity definitions
*/
/*
* intr_el edge or level definitions
*/
/*
* interrupt flags structure
*/
typedef struct iflag {
} iflag_t;
/* _HID for PCI bus object */
/* ACPICA subsystem has been fully initialized except SCI interrupt. */
/* ACPI SCI interrupt has been enabled. */
/* ACPI device configuration has been enabled. */
/* ACPI _OSI method should report support of ACPI Module Device. */
/* ACPI device configuration features. */
/*
*/
typedef struct device_id {
char *id;
} device_id_t;
typedef struct property {
char *name;
char *value;
} property_t;
typedef struct master_rec {
char *name;
char *description;
} master_rec_t;
extern device_id_t *mf_alloc_device_id(void);
extern void mf_free_device_id(device_id_t *);
extern void process_master_file(void);
extern void free_master_data(void);
/*
* Function prototypes
*/
extern int acpica_get_bdf(dev_info_t *, int *, int *, int *);
extern void acpica_ddi_save_resources(dev_info_t *);
extern void acpica_ddi_restore_resources(dev_info_t *);
extern void acpi_reset_system(void);
extern void acpica_get_global_FADT(ACPI_TABLE_FADT **);
extern ACPI_STATUS acpica_build_processor_map(void);
extern void acpica_set_core_feature(uint64_t);
extern void acpica_clear_core_feature(uint64_t);
extern void acpica_set_devcfg_feature(uint64_t);
extern void acpica_clear_devcfg_feature(uint64_t);
void scan_d2a_map(void);
#ifdef __cplusplus
}
#endif
#endif /* _SYS_ACPICA_H */