8b35851e4c
There is no need to repeat "import" for each module in GoLang. Use this keyword only once in each file for code cleanliness. Change-Id: Ibb24fafd409b31b174946a39ca1f810d59b87e76 Signed-off-by: Maxim Polyakov <max.senia.poliak@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/55985 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Reviewed-by: Matt DeVillier <matt.devillier@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
21 lines
490 B
Go
21 lines
490 B
Go
package fields
|
|
|
|
import (
|
|
"../config"
|
|
"../platforms/common"
|
|
"./fsp"
|
|
"./cb"
|
|
"./raw"
|
|
)
|
|
|
|
// InterfaceSet - set the interface for decoding configuration
|
|
// registers DW0 and DW1.
|
|
func InterfaceGet() common.Fields {
|
|
var fldstylemap = map[uint8]common.Fields{
|
|
config.NoFlds : cb.FieldMacros{}, // analyze fields using cb macros
|
|
config.CbFlds : cb.FieldMacros{},
|
|
config.FspFlds : fsp.FieldMacros{},
|
|
config.RawFlds : raw.FieldMacros{},
|
|
}
|
|
return fldstylemap[config.FldStyleGet()]
|
|
}
|