18c2ecf20Sopenharmony_ciWhat: /sys/firmware/secvar 28c2ecf20Sopenharmony_ciDate: August 2019 38c2ecf20Sopenharmony_ciContact: Nayna Jain <nayna@linux.ibm.com> 48c2ecf20Sopenharmony_ciDescription: This directory is created if the POWER firmware supports OS 58c2ecf20Sopenharmony_ci secureboot, thereby secure variables. It exposes interface 68c2ecf20Sopenharmony_ci for reading/writing the secure variables 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ciWhat: /sys/firmware/secvar/vars 98c2ecf20Sopenharmony_ciDate: August 2019 108c2ecf20Sopenharmony_ciContact: Nayna Jain <nayna@linux.ibm.com> 118c2ecf20Sopenharmony_ciDescription: This directory lists all the secure variables that are supported 128c2ecf20Sopenharmony_ci by the firmware. 138c2ecf20Sopenharmony_ci 148c2ecf20Sopenharmony_ciWhat: /sys/firmware/secvar/format 158c2ecf20Sopenharmony_ciDate: August 2019 168c2ecf20Sopenharmony_ciContact: Nayna Jain <nayna@linux.ibm.com> 178c2ecf20Sopenharmony_ciDescription: A string indicating which backend is in use by the firmware. 188c2ecf20Sopenharmony_ci This determines the format of the variable and the accepted 198c2ecf20Sopenharmony_ci format of variable updates. 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_ciWhat: /sys/firmware/secvar/vars/<variable name> 228c2ecf20Sopenharmony_ciDate: August 2019 238c2ecf20Sopenharmony_ciContact: Nayna Jain <nayna@linux.ibm.com> 248c2ecf20Sopenharmony_ciDescription: Each secure variable is represented as a directory named as 258c2ecf20Sopenharmony_ci <variable_name>. The variable name is unique and is in ASCII 268c2ecf20Sopenharmony_ci representation. The data and size can be determined by reading 278c2ecf20Sopenharmony_ci their respective attribute files. 288c2ecf20Sopenharmony_ci 298c2ecf20Sopenharmony_ciWhat: /sys/firmware/secvar/vars/<variable_name>/size 308c2ecf20Sopenharmony_ciDate: August 2019 318c2ecf20Sopenharmony_ciContact: Nayna Jain <nayna@linux.ibm.com> 328c2ecf20Sopenharmony_ciDescription: An integer representation of the size of the content of the 338c2ecf20Sopenharmony_ci variable. In other words, it represents the size of the data. 348c2ecf20Sopenharmony_ci 358c2ecf20Sopenharmony_ciWhat: /sys/firmware/secvar/vars/<variable_name>/data 368c2ecf20Sopenharmony_ciDate: August 2019 378c2ecf20Sopenharmony_ciContact: Nayna Jain h<nayna@linux.ibm.com> 388c2ecf20Sopenharmony_ciDescription: A read-only file containing the value of the variable. The size 398c2ecf20Sopenharmony_ci of the file represents the maximum size of the variable data. 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ciWhat: /sys/firmware/secvar/vars/<variable_name>/update 428c2ecf20Sopenharmony_ciDate: August 2019 438c2ecf20Sopenharmony_ciContact: Nayna Jain <nayna@linux.ibm.com> 448c2ecf20Sopenharmony_ciDescription: A write-only file that is used to submit the new value for the 458c2ecf20Sopenharmony_ci variable. The size of the file represents the maximum size of 468c2ecf20Sopenharmony_ci the variable data that can be written. 47