| 1 |
package fields |
| 2 |
|
| 3 |
import ( |
| 4 |
"review.coreboot.org/coreboot.git/util/intelp2m/config/p2m" |
| 5 |
"review.coreboot.org/coreboot.git/util/intelp2m/platforms/common" |
| 6 |
"review.coreboot.org/coreboot.git/util/intelp2m/platforms/common/fields/cb" |
| 7 |
"review.coreboot.org/coreboot.git/util/intelp2m/platforms/common/fields/fsp" |
| 8 |
"review.coreboot.org/coreboot.git/util/intelp2m/platforms/common/fields/raw" |
| 9 |
) |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
func Get() common.FieldsIf { |
| 14 |
var fldstylemap = map[p2m.FieldType]common.FieldsIf{ |
| 15 |
p2m.NoFlds: cb.FieldCollection{}, |
| 16 |
p2m.CbFlds: cb.FieldCollection{}, |
| 17 |
p2m.FspFlds: fsp.FieldCollection{}, |
| 18 |
p2m.RawFlds: raw.FieldCollection{}, |
| 19 |
} |
| 20 |
return fldstylemap[p2m.Config.Field] |
| 21 |
} |