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