mirror of
https://github.com/acpica/acpica/
synced 2025-01-29 12:45:29 +03:00
Added GPE command to generate software GPE
date 2003.02.28.16.06.00; author rmoore1; state Exp;
This commit is contained in:
parent
d7084dd0e7
commit
528efa3f9b
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user