diff options
author | sam <sam@FreeBSD.org> | 2009-02-05 18:12:07 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2009-02-05 18:12:07 +0000 |
commit | a7490070eb9f1d4ec2ab2dc7c97cf5ec5c476a29 (patch) | |
tree | ca2ee3ec2914c2b518d9a0ad88a9c4ee7439e7d9 /sys/sys/cfictl.h | |
parent | c2ef74981e48ea6112d18468d2e885627fcc104f (diff) | |
download | FreeBSD-src-a7490070eb9f1d4ec2ab2dc7c97cf5ec5c476a29.zip FreeBSD-src-a7490070eb9f1d4ec2ab2dc7c97cf5ec5c476a29.tar.gz |
Add support for frobbing Intel StrataFlash Protection Registers:
o add CFI_SUPPORT_STRATAFLASH compile option to enable support
o add new ioctls to get/set the factory and user/oem segments of the PR
and to get/set Protection Lock Register that fuses the user segment
o add #defines for bits in the status register
o update cfi_wait_ready to take an offset so it can be used to wait for
PR write completion and replace constants w/ symbolic names
Note: writing the user segment isn't correct; committing now to get review.
Sponsored by: Carlson Wireless
Reviewed by: imp, Chris Anderson
Diffstat (limited to 'sys/sys/cfictl.h')
-rw-r--r-- | sys/sys/cfictl.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/cfictl.h b/sys/sys/cfictl.h index ef6d5d1..a5439e0 100644 --- a/sys/sys/cfictl.h +++ b/sys/sys/cfictl.h @@ -44,4 +44,10 @@ struct cfiocqry { #define CFIOCQRY _IOWR('q', 0, struct cfiocqry) +/* Intel StrataFlash Protection Register support */ +#define CFIOCGFACTORYPR _IOR('q', 1, uint64_t) /* get factory protection reg */ +#define CFIOCGOEMPR _IOR('q', 2, uint64_t) /* get oem protection reg */ +#define CFIOCSOEMPR _IOW('q', 3, uint64_t) /* set oem protection reg */ +#define CFIOCGPLR _IOR('q', 4, uint32_t) /* get protection lock reg */ +#define CFIOCSPLR _IO('q', 5) /* set protection log reg */ #endif /* _SYS_CFICTL_H_ */ |