diff options
author | Andrey Petrov <andrey.petrov@intel.com> | 2016-05-12 19:10:11 -0700 |
---|---|---|
committer | Aaron Durbin <adurbin@chromium.org> | 2016-05-18 07:03:13 +0200 |
commit | dc4ae11366eedea20b8b2c530cdd830a3e256ef2 (patch) | |
tree | 35ec0aaa46e709ec85e45b51cb1ea074db076ebb /src/soc/intel/common/opregion.h | |
parent | 060b215fa7b7f9aae04e90be9eeed14e6f1974bf (diff) |
soc/intel/common: Add IGD OpRegion support
Add helper function that fills OpRegion structure based on
VBT file content and some reasonable defaults.
Change-Id: I9aa8862878cc016a9a684c844ceab390734f3e84
Signed-off-by: Andrey Petrov <andrey.petrov@intel.com>
Reviewed-on: https://review.coreboot.org/14806
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/soc/intel/common/opregion.h')
-rw-r--r-- | src/soc/intel/common/opregion.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/soc/intel/common/opregion.h b/src/soc/intel/common/opregion.h new file mode 100644 index 0000000000..228aca2d94 --- /dev/null +++ b/src/soc/intel/common/opregion.h @@ -0,0 +1,24 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2016 Intel Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 2 of the License. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef _COMMON_OPREGION_H_ +#define _COMMON_OPREGION_H_ + +#include "gma.h" + +/* Loads vbt and initializes opregion. Returns non-zero on success */ +int init_igd_opregion(igd_opregion_t *opregion); + +#endif /* _COMMON_OPREGION_H_ */ |