xref: /kernel/linux/linux-6.6/drivers/char/xillybus/xillybus_class.h (revision 62306a36)
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-6.6/drivers/char/xillybus/
162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Copyright 2021 Xillybus Ltd, http://www.xillybus.com
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Header file for the Xillybus class
662306a36Sopenharmony_ci */
762306a36Sopenharmony_ci
862306a36Sopenharmony_ci#ifndef __XILLYBUS_CLASS_H
962306a36Sopenharmony_ci#define __XILLYBUS_CLASS_H
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci#include <linux/types.h>
1262306a36Sopenharmony_ci#include <linux/device.h>
1362306a36Sopenharmony_ci#include <linux/fs.h>
1462306a36Sopenharmony_ci#include <linux/module.h>
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ciint xillybus_init_chrdev(struct device *dev,
1762306a36Sopenharmony_ci			 const struct file_operations *fops,
1862306a36Sopenharmony_ci			 struct module *owner,
1962306a36Sopenharmony_ci			 void *private_data,
2062306a36Sopenharmony_ci			 unsigned char *idt, unsigned int len,
2162306a36Sopenharmony_ci			 int num_nodes,
2262306a36Sopenharmony_ci			 const char *prefix, bool enumerate);
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_civoid xillybus_cleanup_chrdev(void *private_data,
2562306a36Sopenharmony_ci			     struct device *dev);
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ciint xillybus_find_inode(struct inode *inode,
2862306a36Sopenharmony_ci			void **private_data, int *index);
2962306a36Sopenharmony_ci
3062306a36Sopenharmony_ci#endif /* __XILLYBUS_CLASS_H */
31

Indexes created Thu Nov 07 10:32:03 CST 2024