soc/amd/*/include/smi: move NUMBER_SMITYPES definition to the top
Since all other defines for the number of certain things are at the top of the file, move NUMBER_SMITYPES there as well to keep things consistent. Signed-off-by: Felix Held <felix-coreboot@felixheld.de> Change-Id: Idfb599531d6cc382ab258bd1eae89e7b35fa9e79 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58953 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Raul Rangel <rrangel@chromium.org>
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
#define SMI_GEVENTS 24
|
#define SMI_GEVENTS 24
|
||||||
#define SCIMAPS 59 /* 0..58 */
|
#define SCIMAPS 59 /* 0..58 */
|
||||||
#define SCI_GPES 32
|
#define SCI_GPES 32
|
||||||
|
#define NUMBER_SMITYPES 160
|
||||||
|
|
||||||
#define SMI_EVENT_STATUS 0x0
|
#define SMI_EVENT_STATUS 0x0
|
||||||
#define SMI_EVENT_ENABLE 0x04
|
#define SMI_EVENT_ENABLE 0x04
|
||||||
@@ -138,7 +139,7 @@
|
|||||||
/* 153-155 Reserved */
|
/* 153-155 Reserved */
|
||||||
#define SMITYPE_CFGTRAP0 156
|
#define SMITYPE_CFGTRAP0 156
|
||||||
/* 157-159 Reserved */
|
/* 157-159 Reserved */
|
||||||
#define NUMBER_SMITYPES 160
|
|
||||||
#define TYPE_TO_MASK(X) (1 << (X) % 32)
|
#define TYPE_TO_MASK(X) (1 << (X) % 32)
|
||||||
|
|
||||||
#define SMI_REG_SMISTS0 0x80
|
#define SMI_REG_SMISTS0 0x80
|
||||||
|
@@ -8,6 +8,7 @@
|
|||||||
#define SMI_GEVENTS 24
|
#define SMI_GEVENTS 24
|
||||||
#define SCIMAPS 59 /* 0..58 */
|
#define SCIMAPS 59 /* 0..58 */
|
||||||
#define SCI_GPES 32
|
#define SCI_GPES 32
|
||||||
|
#define NUMBER_SMITYPES 160
|
||||||
|
|
||||||
#define SMI_EVENT_STATUS 0x0
|
#define SMI_EVENT_STATUS 0x0
|
||||||
#define SMI_EVENT_ENABLE 0x04
|
#define SMI_EVENT_ENABLE 0x04
|
||||||
@@ -140,7 +141,7 @@
|
|||||||
/* 153-155 Reserved */
|
/* 153-155 Reserved */
|
||||||
#define SMITYPE_CFGTRAP0 156
|
#define SMITYPE_CFGTRAP0 156
|
||||||
/* 157-159 Reserved */
|
/* 157-159 Reserved */
|
||||||
#define NUMBER_SMITYPES 160
|
|
||||||
#define TYPE_TO_MASK(X) (1 << (X) % 32)
|
#define TYPE_TO_MASK(X) (1 << (X) % 32)
|
||||||
|
|
||||||
#define SMI_REG_SMISTS0 0x80
|
#define SMI_REG_SMISTS0 0x80
|
||||||
|
@@ -6,6 +6,7 @@
|
|||||||
#define SMI_GEVENTS 24
|
#define SMI_GEVENTS 24
|
||||||
#define SCIMAPS 59 /* 0..58 */
|
#define SCIMAPS 59 /* 0..58 */
|
||||||
#define SCI_GPES 32
|
#define SCI_GPES 32
|
||||||
|
#define NUMBER_SMITYPES 160
|
||||||
|
|
||||||
#define SMI_EVENT_STATUS 0x0
|
#define SMI_EVENT_STATUS 0x0
|
||||||
#define SMI_EVENT_ENABLE 0x04
|
#define SMI_EVENT_ENABLE 0x04
|
||||||
@@ -138,7 +139,7 @@
|
|||||||
/* 153-155 Reserved */
|
/* 153-155 Reserved */
|
||||||
#define SMITYPE_CFGTRAP0 156
|
#define SMITYPE_CFGTRAP0 156
|
||||||
/* 157-159 Reserved */
|
/* 157-159 Reserved */
|
||||||
#define NUMBER_SMITYPES 160
|
|
||||||
#define TYPE_TO_MASK(X) (1 << (X) % 32)
|
#define TYPE_TO_MASK(X) (1 << (X) % 32)
|
||||||
|
|
||||||
#define SMI_REG_SMISTS0 0x80
|
#define SMI_REG_SMISTS0 0x80
|
||||||
|
Reference in New Issue
Block a user