path: root/sys/sys
diff options
authorSam Leffler <sam@FreeBSD.org>2009-02-05 18:12:07 +0000
committerSam Leffler <sam@FreeBSD.org>2009-02-05 18:12:07 +0000
commit63425a7f25f2d5b32a8a80a1f4bc2d776fe97adc (patch)
treeca2ee3ec2914c2b518d9a0ad88a9c4ee7439e7d9 /sys/sys
parentb8bd4a9751d101a32257bd893d81c008376bb1bb (diff)
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
Notes: svn path=/head/; revision=188156
Diffstat (limited to 'sys/sys')
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/cfictl.h b/sys/sys/cfictl.h
index ef6d5d12efeb..a5439e04fbe9 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_ */