2021-08-23 04:26:22 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */
|
2015-07-30 19:17:43 +00:00
|
|
|
/*
|
2016-02-15 04:22:17 +00:00
|
|
|
* Copyright(c) 2015, 2016 Intel Corporation.
|
2015-07-30 19:17:43 +00:00
|
|
|
*/
|
|
|
|
|
2021-08-23 04:26:22 +00:00
|
|
|
#ifndef _HFI1_DEVICE_H
|
|
|
|
#define _HFI1_DEVICE_H
|
|
|
|
|
2015-07-30 19:17:43 +00:00
|
|
|
int hfi1_cdev_init(int minor, const char *name,
|
|
|
|
const struct file_operations *fops,
|
2015-09-17 17:47:49 +00:00
|
|
|
struct cdev *cdev, struct device **devp,
|
2016-05-19 12:26:44 +00:00
|
|
|
bool user_accessible,
|
|
|
|
struct kobject *parent);
|
2015-07-30 19:17:43 +00:00
|
|
|
void hfi1_cdev_cleanup(struct cdev *cdev, struct device **devp);
|
|
|
|
const char *class_name(void);
|
|
|
|
int __init dev_init(void);
|
|
|
|
void dev_cleanup(void);
|
|
|
|
|
|
|
|
#endif /* _HFI1_DEVICE_H */
|