Path: blob/master/drivers/char/xillybus/xillybus_class.h
26282 views
/* SPDX-License-Identifier: GPL-2.0-only */1/*2* Copyright 2021 Xillybus Ltd, http://www.xillybus.com3*4* Header file for the Xillybus class5*/67#ifndef __XILLYBUS_CLASS_H8#define __XILLYBUS_CLASS_H910#include <linux/types.h>11#include <linux/device.h>12#include <linux/fs.h>13#include <linux/module.h>1415int xillybus_init_chrdev(struct device *dev,16const struct file_operations *fops,17struct module *owner,18void *private_data,19unsigned char *idt, unsigned int len,20int num_nodes,21const char *prefix, bool enumerate);2223void xillybus_cleanup_chrdev(void *private_data,24struct device *dev);2526int xillybus_find_inode(struct inode *inode,27void **private_data, int *index);2829#endif /* __XILLYBUS_CLASS_H */303132