coreboot-kgpe-d16/util/intelp2m/fields/fields.go

22 lines
490 B
Go
Raw Normal View History

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()]
}