sys/dev/cfi/cfi_core.c
/*
 * Intel StrataFlash Protection Register Support.
 *
 * The memory includes a 128-bit Protection Register that can be
 * used for security.  There are two 64-bit segments; one is programmed
 * at the factory with a unique 64-bit number which is immutable.
 * The other segment is left blank for User (OEM) programming.
 * The User/OEM segment is One Time Programmable (OTP).  It can also
 * be locked to prevent any further writes by setting bit 0 of the
 * Protection Lock Register (PLR).  The PLR can written only once.
 */
Intel StrataFlash Protection Register Support.
The memory includes a 128-bit Protection Register that can be
used for security.  There are two 64-bit segments; one is programmed
at the factory with a unique 64-bit number which is immutable.
The other segment is left blank for User (OEM) programming.
The User/OEM segment is One Time Programmable (OTP).  It can also
be locked to prevent any further writes by setting bit 0 of the
Protection Lock Register (PLR).  The PLR can written only once.
Intel StrataFlash Protection Register Support . The memory includes a 128 - bit Protection Register that can be used for security . There are two 64 - bit segments ; one is programmed at the factory with a unique 64 - bit number which is immutable . The other segment is left blank for User ( OEM ) programming . The User / OEM segment is One Time Programmable ( OTP ) . It can also be locked to prevent any further writes by setting bit 0 of the Protection Lock Register ( PLR ) . The PLR can written only once .
static uint16_t
cfi_get16(struct cfi_softc *sc, int off)
{
	uint16_t v = bus_space_read_2(sc->sc_tag, sc->sc_handle, off<<1);
	return v;
}
static uint16_t cfi_get16 ( struct cfi_softc * sc , int off ) { uint16_t v = bus_space_read_2 ( sc -> sc_tag , sc -> sc_handle , off << 1 ) ; return v ; }
Intel StrataFlash Protection Register Support.
Intel StrataFlash Protection Register Support .