Renamed excep.h to acpiexcep.h

date	99.07.01.16.40.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 19:58:42 +00:00
parent fb8da644c0
commit 002c073797
2 changed files with 115 additions and 71 deletions

View File

@ -106,7 +106,7 @@
#include <environment.h> /* Target environment specific items */
#include <datatypes.h> /* Fundamental data types */
#include <internal.h> /* Internal data types */
#include <excep.h> /* Local exception codes */
#include <acpiexcep.h> /* Local exception codes */
#include <config.h> /* Configuration constants */
#include <output.h> /* Error output and Debug macros */
#include <acpiasm.h> /* Assembly macros */

View File

@ -96,12 +96,33 @@
*
*****************************************************************************/
#ifndef __ACPIOSD_H__
#define __ACPIOSD_H__
#include <environment.h>
#include <datatypes.h>
#include <acpiasm.h>
#include <acpiexcep.h>
#include <output.h>
/* Priorities for OsdQueueForExecution */
#define OSD_PRIORITY_HIGH 1
#define OSD_PRIORITY_MED 2
#define OSD_PRIORITY_LO 3
#define OSD_PRIORITY_GPE OSD_PRIORITY_HIGH
/* Types specific to the OS-dependent layer interfaces */
typedef
UINT32 (*OSD_HANDLER) (
void);
typedef
void (*OSD_EXECUTION_CALLBACK) (
void *Context);
/*
@ -110,25 +131,25 @@
void *
OsdAllocate (
UINT32 size);
UINT32 Size);
void *
OsdCallocate (
UINT32 size);
UINT32 Size);
void
OsdFree (
void * mem);
void * Memory);
char *
void *
OsdMapMemory (
UINT32 where,
UINT32 length);
void *PhysicalAddress,
UINT32 Length);
void
OsdUnMapMemory (
char * where,
UINT32 length);
void *PhysicalAddress,
UINT32 Length);
/*
@ -137,27 +158,33 @@ OsdUnMapMemory (
UINT32
OsdInstallInterruptHandler (
UINT32 InterruptNumber,
UINT32 (* Isr)(void),
UINT32 *SciHandle);
UINT32 InterruptNumber,
OSD_HANDLER ServiceRoutine,
UINT32 *SciHandle);
void
OsdRemoveInterruptHandler (
UINT32 Handle);
UINT32 Handle);
/*
* Scheduling
*/
ACPI_STATUS
OsdQueueForExecution (
UINT32 Priority,
OSD_EXECUTION_CALLBACK Function,
void *Context);
void
OsdSleep (
UINT32 seconds,
UINT32 milliseconds);
UINT32 Seconds,
UINT32 Milliseconds);
void
OsdSleepUsec (
UINT32 microseconds);
UINT32 Microseconds);
/*
@ -166,77 +193,78 @@ OsdSleepUsec (
UINT8
OsdIn8 (
UINT16 InPort);
UINT16 InPort);
UINT16
OsdIn16 (
UINT16 InPort);
UINT16 InPort);
UINT32
OsdIn32 (
UINT16 InPort);
UINT16 InPort);
void
OsdOut8 (
UINT16 OutPort,
UINT8 Value);
UINT16 OutPort,
UINT8 Value);
void
OsdOut16 (
UINT16 OutPort,
UINT16 Value);
UINT16 OutPort,
UINT16 Value);
void
OsdOut32 (
UINT16 OutPort,
UINT32 Value);
UINT16 OutPort,
UINT32 Value);
/*
* Standard access to PCI configuration space
*/
UINT8
ACPI_STATUS
OsdReadPciCfgByte (
INT32 Bus,
INT32 DeviceFunction,
INT32 Register,
UINT8 *Value);
UINT32 Bus,
UINT32 DeviceFunction,
UINT32 Register,
UINT8 *Value);
UINT8
ACPI_STATUS
OsdReadPciCfgWord (
INT32 Bus,
INT32 DeviceFunction,
INT32 Register,
UINT16 *Value);
UINT32 Bus,
UINT32 DeviceFunction,
UINT32 Register,
UINT16 *Value);
UINT8
ACPI_STATUS
OsdReadPciCfgDword (
INT32 Bus,
INT32 DeviceFunction,
INT32 Register,
UINT32 *Value);
UINT32 Bus,
UINT32 DeviceFunction,
UINT32 Register,
UINT32 *Value);
UINT8
ACPI_STATUS
OsdWritePciCfgByte (
INT32 Bus,
INT32 DeviceFunction,
INT32 Register,
UINT8 Value);
UINT32 Bus,
UINT32 DeviceFunction,
UINT32 Register,
UINT8 Value);
UINT8
ACPI_STATUS
OsdWritePciCfgWord (
INT32 Bus,
INT32 DeviceFunction,
INT32 Register,
UINT16 Value);
UINT32 Bus,
UINT32 DeviceFunction,
UINT32 Register,
UINT16 Value);
UINT8
ACPI_STATUS
OsdWritePciCfgDword (
INT32 Bus,
INT32 DeviceFunction,
INT32 Register,
UINT32 Value);
UINT32 Bus,
UINT32 DeviceFunction,
UINT32 Register,
UINT32 Value);
/*
@ -245,15 +273,15 @@ OsdWritePciCfgDword (
INT32
OsdPrintf (
OSD_FILE *stream,
const char *format,
OSD_FILE *Stream,
const char *Format,
...);
INT32
OsdVprintf (
OSD_FILE *stream,
const char *format,
va_list args);
OSD_FILE *Stream,
const char *Format,
va_list Args);
/*
@ -265,26 +293,42 @@ OsdVprintf (
OSD_FILE *
OsdOpen (
const char *filename,
const char *mode);
const char *Filename,
const char *Mode);
INT32
OsdClose (
OSD_FILE *stream);
OSD_FILE *Stream);
UINT32
OsdRead (
void *buffer,
UINT32 size,
UINT32 count,
OSD_FILE *stream);
void *Buffer,
UINT32 Size,
UINT32 Count,
OSD_FILE *Stream);
UINT32
OsdWrite (
const void *buffer,
UINT32 size,
UINT32 count,
OSD_FILE *stream);
const void *Buffer,
UINT32 Size,
UINT32 Count,
OSD_FILE *Stream);
/*
* Debug
*/
void
OsdDbgTrap(
UCHAR *pTrapCause);
void
OsdDbgAssert(
void *FailedAssertion,
void *FileName,
UINT32 LineNumber,
UCHAR *Message);
#endif /* __ACPIOSD_H__ */