Gitiles
Code Review
Sign In
review.coreboot.org
/
coreboot
/
fff20212afe2c83af90dbec39d112a31d34b6658
/
.
/
src
/
southbridge
/
amd
/
agesa
/
hudson
/
ramtop.c
blob: 821fc39bcd413da38046c7b3e4c3365a2ac8849f [
file
] [
log
] [
blame
]
/* SPDX-License-Identifier: GPL-2.0-only */
#include
<stdint.h>
#include
<arch/io.h>
#include
<acpi/acpi.h>
#include
"hudson.h"
int
acpi_get_sleep_type
(
void
)
{
u16 tmp
=
inw
(
ACPI_PM1_CNT_BLK
);
tmp
=
((
tmp
&
(
7
<<
10
))
>>
10
);
return
(
int
)
tmp
;
}