Advertisement
saleks28

bos3_caller_h

Jan 13th, 2020
328
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.42 KB | None | 0 0
  1. #ifndef CALLER_H_INCLUDED
  2. #define CALLER_H_INCLUDED
  3. #include <linux/ioctl.h>
  4.  
  5.  
  6. typedef struct argVendorDevice{
  7.     unsigned int vendor;
  8.     unsigned int device;
  9. } argVenDev;
  10.  
  11. #define IOCTL_MAGIC 'h'
  12. #define IOCTL_GET_PSI_VENDEV _IOWR(IOCTL_MAGIC, 0, int)
  13. #define IOCTL_GET_PSI_DEVFN _IOWR(IOCTL_MAGIC, 1, argVenDev)
  14.  
  15. #define FIND_FUNCTION_NUMBER 1
  16. #define FIND_VENDOR_DEVICE 2
  17.  
  18. #define DEVPATH "/dev/ioctl"
  19.  
  20. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement