Cleanup via acpisrc -c

date	2001.08.27.20.14.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 20:33:49 +00:00
parent 3a87ffcc98
commit 09399441ca
2 changed files with 10 additions and 21 deletions

View File

@ -116,7 +116,7 @@
/*
* These interfaces are required in order to compile the ASL compiler under
* Linux.
* Linux.
*/
#include <stdio.h>
@ -818,7 +818,7 @@ AcpiOsReadPort (
*((UINT16 *) Value) = 0;
break;
case 32:
case 32:
*((UINT32 *) Value) = 0;
break;
}
@ -883,7 +883,7 @@ AcpiOsReadMemory (
*((UINT16 *) Value) = 0;
break;
case 32:
case 32:
*((UINT32 *) Value) = 0;
break;
}
@ -916,8 +916,6 @@ AcpiOsWriteMemory (
}
UINT32
AcpiOsGetThreadId(void)
{

View File

@ -1,7 +1,7 @@
/******************************************************************************
*
* Module Name: oswinxf - Windows application interface
* $Revision: 1.16 $
* $Revision: 1.17 $
*
*****************************************************************************/
@ -159,11 +159,9 @@ typedef struct semaphore_entry
SEMAPHORE_ENTRY AcpiGbl_Semaphores[NUM_SEMAPHORES];
extern FILE *AcpiGbl_DebugFile;
/******************************************************************************
*
* FUNCTION: AcpiOsInitialize, AcpiOsTerminate
@ -182,7 +180,6 @@ AcpiOsInitialize (void)
UINT32 i;
for (i = 0; i < NUM_SEMAPHORES; i++)
{
AcpiGbl_Semaphores[i].OsHandle = NULL;
@ -552,8 +549,6 @@ AcpiOsCreateSemaphore (
#endif
if (MaxUnits == ACPI_UINT32_MAX)
{
MaxUnits = 255;
@ -674,7 +669,6 @@ AcpiOsWaitSemaphore (
}
/* Make this a command line option so that we can catch
* synchronization deadlocks
*
@ -685,7 +679,7 @@ AcpiOsWaitSemaphore (
WaitStatus = WaitForSingleObject (AcpiGbl_Semaphores[Index].OsHandle, Timeout);
if (WaitStatus == WAIT_TIMEOUT)
{
/* Make optional -- wait of 0 is used to detect if unit is available
/* Make optional -- wait of 0 is used to detect if unit is available
ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "WaitSemaphore [%d]: *** Timeout on semaphore %d\n",
Handle));
*/
@ -747,10 +741,10 @@ AcpiOsSignalSemaphore (
}
if ((AcpiGbl_Semaphores[Index].CurrentUnits + 1) >
if ((AcpiGbl_Semaphores[Index].CurrentUnits + 1) >
AcpiGbl_Semaphores[Index].MaxUnits)
{
ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Oversignalled semaphore[%d]! Current %d Max %d\n",
ACPI_DEBUG_PRINT ((ACPI_DB_ERROR, "Oversignalled semaphore[%d]! Current %d Max %d\n",
Index, AcpiGbl_Semaphores[Index].CurrentUnits, AcpiGbl_Semaphores[Index].MaxUnits));
return (AE_LIMIT);
@ -760,7 +754,7 @@ AcpiOsSignalSemaphore (
AcpiGbl_Semaphores[Index].CurrentUnits++;
#endif
return (AE_OK);
}
@ -867,7 +861,6 @@ AcpiOsQueueForExecution (
}
/******************************************************************************
*
* FUNCTION: AcpiOsStall
@ -999,7 +992,7 @@ AcpiOsReadPort (
*((UINT16 *) Value) = 0;
break;
case 32:
case 32:
*((UINT32 *) Value) = 0;
break;
}
@ -1064,7 +1057,7 @@ AcpiOsReadMemory (
*((UINT16 *) Value) = 0;
break;
case 32:
case 32:
*((UINT32 *) Value) = 0;
break;
}
@ -1140,5 +1133,3 @@ AcpiOsSignal (
}