mirror of
https://github.com/acpica/acpica/
synced 2025-03-10 00:01:38 +03:00
Osd I/O interfaces use pointer-sized address now
date 99.11.09.23.03.00; author rmoore1; state Exp;
This commit is contained in:
parent
ba9f9742b9
commit
3d0fb91af7
@ -122,8 +122,9 @@
|
||||
#include <events.h>
|
||||
|
||||
|
||||
#define _THIS_MODULE "evsci.c"
|
||||
#define _COMPONENT EVENT_HANDLING
|
||||
MODULE_NAME ("evsci");
|
||||
|
||||
|
||||
/*
|
||||
* Elements correspond to counts for
|
||||
@ -359,16 +360,16 @@ EvRestoreAcpiState (void)
|
||||
{
|
||||
/* Restore the fixed events */
|
||||
|
||||
if (OsdIn16 ((UINT16) (Gbl_FACP->Pm1aEvtBlk + 2)) != Gbl_Pm1EnableRegisterSave)
|
||||
if (OsdIn16 (Gbl_FACP->Pm1aEvtBlk + 2) != Gbl_Pm1EnableRegisterSave)
|
||||
{
|
||||
OsdOut16 ((UINT16) (Gbl_FACP->Pm1aEvtBlk + 2), Gbl_Pm1EnableRegisterSave);
|
||||
OsdOut16 ((Gbl_FACP->Pm1aEvtBlk + 2), Gbl_Pm1EnableRegisterSave);
|
||||
}
|
||||
|
||||
if (Gbl_FACP->Pm1bEvtBlk)
|
||||
{
|
||||
if (OsdIn16 ((UINT16) (Gbl_FACP->Pm1bEvtBlk + 2)) != Gbl_Pm1EnableRegisterSave)
|
||||
if (OsdIn16 (Gbl_FACP->Pm1bEvtBlk + 2) != Gbl_Pm1EnableRegisterSave)
|
||||
{
|
||||
OsdOut16 ((UINT16) (Gbl_FACP->Pm1bEvtBlk + 2), Gbl_Pm1EnableRegisterSave);
|
||||
OsdOut16 ((Gbl_FACP->Pm1bEvtBlk + 2), Gbl_Pm1EnableRegisterSave);
|
||||
}
|
||||
}
|
||||
|
||||
@ -382,9 +383,9 @@ EvRestoreAcpiState (void)
|
||||
|
||||
for (Index = 0; Index < Gbl_FACP->Gpe0BlkLen / 2; Index++)
|
||||
{
|
||||
if (OsdIn8 ((UINT16) (Gbl_FACP->Gpe0Blk + Gbl_FACP->Gpe0BlkLen / 2)) != Gbl_Gpe0EnableRegisterSave[Index])
|
||||
if (OsdIn8 ((Gbl_FACP->Gpe0Blk + Gbl_FACP->Gpe0BlkLen / 2)) != Gbl_Gpe0EnableRegisterSave[Index])
|
||||
{
|
||||
OsdOut8 ((UINT16) (Gbl_FACP->Gpe0Blk + Gbl_FACP->Gpe0BlkLen / 2), Gbl_Gpe0EnableRegisterSave[Index]);
|
||||
OsdOut8 ((Gbl_FACP->Gpe0Blk + Gbl_FACP->Gpe0BlkLen / 2), Gbl_Gpe0EnableRegisterSave[Index]);
|
||||
}
|
||||
}
|
||||
|
||||
@ -392,9 +393,9 @@ EvRestoreAcpiState (void)
|
||||
{
|
||||
for (Index = 0; Index < Gbl_FACP->Gpe1BlkLen / 2; Index++)
|
||||
{
|
||||
if (OsdIn8 ((UINT16) (Gbl_FACP->Gpe1Blk + Gbl_FACP->Gpe1BlkLen / 2)) != Gbl_Gpe1EnableRegisterSave[Index])
|
||||
if (OsdIn8 ((Gbl_FACP->Gpe1Blk + Gbl_FACP->Gpe1BlkLen / 2)) != Gbl_Gpe1EnableRegisterSave[Index])
|
||||
{
|
||||
OsdOut8 ((UINT16) (Gbl_FACP->Gpe1Blk + Gbl_FACP->Gpe1BlkLen / 2), Gbl_Gpe1EnableRegisterSave[Index]);
|
||||
OsdOut8 ((Gbl_FACP->Gpe1Blk + Gbl_FACP->Gpe1BlkLen / 2), Gbl_Gpe1EnableRegisterSave[Index]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user