nfcinfo.h 508 B

1234567891011121314151617181920212223242526
  1. /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
  2. /*
  3. * Copyright (c) 2018-2020 The Linux Foundation. All rights reserved.
  4. */
  5. #ifndef _UAPI_NFCINFO_H_
  6. #define _UAPI_NFCINFO_H_
  7. #include <linux/ioctl.h>
  8. #define NFCC_MAGIC 0xE9
  9. #define NFCC_GET_INFO _IOW(NFCC_MAGIC, 0x09, unsigned int)
  10. struct nqx_devinfo {
  11. unsigned char chip_type;
  12. unsigned char rom_version;
  13. unsigned char fw_major;
  14. unsigned char fw_minor;
  15. };
  16. union nqx_uinfo {
  17. unsigned int i;
  18. struct nqx_devinfo info;
  19. };
  20. #endif