Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Copyright 2021 Xillybus Ltd, http://www.xillybus.com
0004  *
0005  * Header file for the Xillybus class
0006  */
0007 
0008 #ifndef __XILLYBUS_CLASS_H
0009 #define __XILLYBUS_CLASS_H
0010 
0011 #include <linux/types.h>
0012 #include <linux/device.h>
0013 #include <linux/fs.h>
0014 #include <linux/module.h>
0015 
0016 int xillybus_init_chrdev(struct device *dev,
0017              const struct file_operations *fops,
0018              struct module *owner,
0019              void *private_data,
0020              unsigned char *idt, unsigned int len,
0021              int num_nodes,
0022              const char *prefix, bool enumerate);
0023 
0024 void xillybus_cleanup_chrdev(void *private_data,
0025                  struct device *dev);
0026 
0027 int xillybus_find_inode(struct inode *inode,
0028             void **private_data, int *index);
0029 
0030 #endif /* __XILLYBUS_CLASS_H */