xillybus_class.h 736 B

123456789101112131415161718192021222324252627282930
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * Copyright 2021 Xillybus Ltd, http://www.xillybus.com
  4. *
  5. * Header file for the Xillybus class
  6. */
  7. #ifndef __XILLYBUS_CLASS_H
  8. #define __XILLYBUS_CLASS_H
  9. #include <linux/types.h>
  10. #include <linux/device.h>
  11. #include <linux/fs.h>
  12. #include <linux/module.h>
  13. int xillybus_init_chrdev(struct device *dev,
  14. const struct file_operations *fops,
  15. struct module *owner,
  16. void *private_data,
  17. unsigned char *idt, unsigned int len,
  18. int num_nodes,
  19. const char *prefix, bool enumerate);
  20. void xillybus_cleanup_chrdev(void *private_data,
  21. struct device *dev);
  22. int xillybus_find_inode(struct inode *inode,
  23. void **private_data, int *index);
  24. #endif /* __XILLYBUS_CLASS_H */