1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2 #ifndef _UAPI_PAPR_VPD_H_ 3 #define _UAPI_PAPR_VPD_H_ 4 5 #include <asm/ioctl.h> 6 #include <asm/papr-miscdev.h> 7 8 struct papr_location_code { 9 /* 10 * PAPR+ v2.13 12.3.2.4 Converged Location Code Rules - Length 11 * Restrictions. 79 characters plus nul. 12 */ 13 char str[80]; 14 }; 15 16 /* 17 * ioctl for /dev/papr-vpd. Returns a VPD handle fd corresponding to 18 * the location code. 19 */ 20 #define PAPR_VPD_IOC_CREATE_HANDLE _IOW(PAPR_MISCDEV_IOC_ID, 0, struct papr_location_code) 21 22 #endif /* _UAPI_PAPR_VPD_H_ */ 23