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
9int 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);
14void hfi1_cdev_cleanup(struct cdev *cdev, struct device **devp);
15const char *class_name(void);
16int __init dev_init(void);
17void dev_cleanup(void);
18
19#endif /* _HFI1_DEVICE_H */
20

source code of linux/drivers/infiniband/hw/hfi1/device.h