devinfo.h 865 B

1234567891011121314151617181920212223242526272829
  1. #ifndef DEVFINO_H
  2. #define DEVFINO_H
  3. /*****************************************************************************
  4. * MODULE DEFINITION
  5. *****************************************************************************/
  6. #define MODULE_NAME "[devinfo]"
  7. #define DEV_NAME "devmap"
  8. #define MAJOR_DEV_NUM 196
  9. /*****************************************************************************
  10. * IOCTL DEFINITION
  11. *****************************************************************************/
  12. #define DEV_IOC_MAGIC 'd'
  13. #define READ_DEV_DATA _IOR(DEV_IOC_MAGIC, 1, unsigned int)
  14. #define DEV_IOC_MAXNR (10)
  15. #ifdef CONFIG_OF
  16. /*device information data*/
  17. #define DEVINFO_MAX_SIZE 50
  18. struct devinfo_tag {
  19. u32 size;
  20. u32 tag;
  21. u32 data[DEVINFO_MAX_SIZE]; /* device information */
  22. u32 data_size; /* device information size */
  23. };
  24. #endif
  25. #endif /* end of DEVFINO_H */