xref: /linux/drivers/infiniband/hw/hfi1/device.h (revision 4b660dbd9ee2059850fd30e0df420ca7a38a1856)
1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
2 /*
3  * Copyright(c) 2015, 2016 Intel Corporation.
4  */
5 
6 #ifndef _HFI1_DEVICE_H
7 #define _HFI1_DEVICE_H
8 
9 int hfi1_cdev_init(int minor, const char *name,
10 		   const struct file_operations *fops,
11 		   struct cdev *cdev, struct device **devp,
12 		   bool user_accessible,
13 		   struct kobject *parent);
14 void hfi1_cdev_cleanup(struct cdev *cdev, struct device **devp);
15 const char *class_name(void);
16 int __init dev_init(void);
17 void dev_cleanup(void);
18 
19 #endif                          /* _HFI1_DEVICE_H */
20