papr-vpd.h 553 B

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