acpiosxf.h revision 7b1019a6d29ccb7999dc76cba3dde1c627e8e609
/******************************************************************************
*
* Name: acpiosxf.h - All interfaces to the OS Services Layer (OSL). These
* interfaces must be implemented by OSL to interface the
* ACPI components to the host operating system.
*
*****************************************************************************/
/*
* Copyright (C) 2000 - 2016, Intel Corp.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions, and the following disclaimer,
* without modification.
* 2. Redistributions in binary form must reproduce at minimum a disclaimer
* substantially similar to the "NO WARRANTY" disclaimer below
* ("Disclaimer") and any redistribution must be conditioned upon
* including a substantially similar Disclaimer requirement for further
* binary redistribution.
* 3. Neither the names of the above-listed copyright holders nor the names
* of any contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* Alternatively, this software may be distributed under the terms of the
* GNU General Public License ("GPL") version 2 as published by the Free
* Software Foundation.
*
* NO WARRANTY
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
* IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGES.
*/
#ifndef __ACPIOSXF_H__
#define __ACPIOSXF_H__
#include "actypes.h"
/* Types for AcpiOsExecute */
typedef enum
{
#define ACPI_MUTEX_SEM 1
/* Functions for AcpiOsSignal */
#define ACPI_SIGNAL_FATAL 0
#define ACPI_SIGNAL_BREAKPOINT 1
typedef struct acpi_signal_fatal_info
{
/*
* OSL Initialization and shutdown primitives
*/
void);
#endif
void);
#endif
/*
* ACPI Table interfaces
*/
void);
#endif
const ACPI_PREDEFINED_NAMES *InitVal,
#endif
#endif
#endif
/*
* Spinlock primitives
*/
#endif
void
#endif
#endif
void
#endif
/*
* Semaphore primitives
*/
#endif
#endif
#endif
#endif
/*
* Mutex primitives. May be configured to use semaphores instead via
*/
#if (ACPI_MUTEX_TYPE != ACPI_BINARY_SEMAPHORE)
#endif
void
#endif
#endif
void
#endif
#endif
/*
* Memory allocation and mapping
*/
void *
#endif
void *
#endif
void
void * Memory);
#endif
void *
#endif
void
void *LogicalAddress,
#endif
void *LogicalAddress,
#endif
/*
*/
char *CacheName,
#endif
#endif
#endif
void *
#endif
void *Object);
#endif
/*
* Interrupt handlers
*/
void *Context);
#endif
#endif
/*
* Threads and Scheduling
*/
void);
#endif
void *Context);
#endif
void
void);
#endif
void
#endif
void
#endif
/*
* Platform and hardware-independent I/O interfaces
*/
#endif
#endif
/*
* Platform and hardware-independent physical memory interfaces
*/
#endif
#endif
/*
* Platform and hardware-independent PCI configuration space access
* Note: Can't use "Register" as a parameter, changed to "Reg" --
* certain compilers complain.
*/
#endif
#endif
/*
* Miscellaneous
*/
void *Pointer,
#endif
void *Pointer,
#endif
void);
#endif
void *Info);
#endif
/*
* Debug print routines
*/
const char *Format,
...);
#endif
void
const char *Format,
#endif
void
void *Destination);
#endif
/*
* Debug input
*/
char *Buffer,
#endif
/*
* Obtain ACPI table(s)
*/
char *Signature,
#endif
#endif
#endif
/*
* Directory manipulation
*/
void *
char *Pathname,
char *WildcardSpec,
char RequestedFileType);
#endif
/* RequesteFileType values */
#define REQUEST_FILE_ONLY 0
#define REQUEST_DIR_ONLY 1
char *
void *DirHandle);
#endif
void
void *DirHandle);
#endif
/*
* File I/O and related support
*/
const char *Path,
#endif
void
#endif
int
void *Buffer,
#endif
int
void *Buffer,
#endif
long
#endif
long Offset,
#endif
void
char *Pathname);
#endif
#endif /* __ACPIOSXF_H__ */