drm/nouveau: consume the return of large GSP message
[drm/drm-misc.git] / drivers / char / xillybus / xillybus_class.h
blob5dbfdfc95c65055e05893068df57e391df0b440a
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3 * Copyright 2021 Xillybus Ltd, http://www.xillybus.com
5 * Header file for the Xillybus class
6 */
8 #ifndef __XILLYBUS_CLASS_H
9 #define __XILLYBUS_CLASS_H
11 #include <linux/types.h>
12 #include <linux/device.h>
13 #include <linux/fs.h>
14 #include <linux/module.h>
16 int xillybus_init_chrdev(struct device *dev,
17 const struct file_operations *fops,
18 struct module *owner,
19 void *private_data,
20 unsigned char *idt, unsigned int len,
21 int num_nodes,
22 const char *prefix, bool enumerate);
24 void xillybus_cleanup_chrdev(void *private_data,
25 struct device *dev);
27 int xillybus_find_inode(struct inode *inode,
28 void **private_data, int *index);
30 #endif /* __XILLYBUS_CLASS_H */