Added GPE command to generate software GPE

date	2003.02.28.16.06.00;	author rmoore1;	state Exp;
This commit is contained in:
aystarik 2005-06-29 16:17:28 +00:00
parent d7084dd0e7
commit 528efa3f9b

View File

@ -1,7 +1,7 @@
/*******************************************************************************
*
* Module Name: dbcmds - debug commands and output routines
* $Revision: 1.94 $
* $Revision: 1.96 $
*
******************************************************************************/
@ -9,7 +9,7 @@
*
* 1. Copyright Notice
*
* Some or all of this work - Copyright (c) 1999 - 2002, Intel Corp.
* Some or all of this work - Copyright (c) 1999 - 2003, Intel Corp.
* All rights reserved.
*
* 2. License
@ -1266,4 +1266,42 @@ AcpiDbCheckIntegrity (void)
}
/*******************************************************************************
*
* FUNCTION: AcpiDbGenerateGpe
*
* PARAMETERS: None
*
* RETURN: None
*
* DESCRIPTION: Generate a GPE
*
******************************************************************************/
void
AcpiDbGenerateGpe (
char *GpeArg,
char *BlockArg)
{
UINT32 BlockNumber;
UINT32 GpeNumber;
ACPI_GPE_EVENT_INFO *GpeEventInfo;
GpeNumber = ACPI_STRTOUL (GpeArg, NULL, 10);
BlockNumber = ACPI_STRTOUL (BlockArg, NULL, 10);
GpeEventInfo = AcpiEvGetGpeEventInfo (GpeNumber);
if (!GpeEventInfo)
{
AcpiOsPrintf ("Invalid GPE\n");
return;
}
AcpiEvGpeDispatch (GpeEventInfo);
}
#endif /* ACPI_DEBUGGER */