func (p *FlashParams) DualOutputFastReadSupported() uint {
	return uint(p[3] >> 7)
}
DualOutputFastReadSupported returns if Dual Output Fast Read is supported.
package uefi
import (
	"fmt"
)
const (
	FlashParamsSize = 4
)
type FlashFrequency uint
const (
	Freq20MHz      FlashFrequency = 0
	Freq33MHz      FlashFrequency = 1
	Freq48MHz      FlashFrequency = 2
	Freq50MHz30MHz FlashFrequency = 4
	Freq17MHz      FlashFrequency = 6
)
var FlashFrequencyStringMap = map[FlashFrequency]string{
	Freq20MHz:      "20MHz",
	Freq33MHz:      "33MHz",
	Freq48MHz:      "48MHz",
	Freq50MHz30MHz: "50Mhz30MHz",
	Freq17MHz:      "17MHz",
}
type FlashParams [4]byte
func (p *FlashParams) FirstChipDensity() uint {
	return uint(p[0] & 0x0f)
}
func (p *FlashParams) SecondChipDensity() uint {
	return uint((p[0] >> 4) & 0x0f)
}
func (p *FlashParams) ReadClockFrequency() FlashFrequency {
	return FlashFrequency((p[2] >> 1) & 0x07)
}
func (p *FlashParams) FastReadEnabled() uint {
	return uint((p[2] >> 4) & 0x01)
}
func (p *FlashParams) FastReadFrequency() FlashFrequency {
	return FlashFrequency((p[2] >> 5) & 0x07)
}
func (p *FlashParams) FlashWriteFrequency() FlashFrequency {
	return FlashFrequency(p[3] & 0x07)
}
func (p *FlashParams) FlashReadStatusFrequency() FlashFrequency {
	return FlashFrequency((p[3] >> 3) & 0x07)
}