162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 or BSD-3-Clause */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright(c) 2015, 2016 Intel Corporation. 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci#ifndef _HFI1_DEVICE_H 762306a36Sopenharmony_ci#define _HFI1_DEVICE_H 862306a36Sopenharmony_ci 962306a36Sopenharmony_ciint hfi1_cdev_init(int minor, const char *name, 1062306a36Sopenharmony_ci const struct file_operations *fops, 1162306a36Sopenharmony_ci struct cdev *cdev, struct device **devp, 1262306a36Sopenharmony_ci bool user_accessible, 1362306a36Sopenharmony_ci struct kobject *parent); 1462306a36Sopenharmony_civoid hfi1_cdev_cleanup(struct cdev *cdev, struct device **devp); 1562306a36Sopenharmony_ciconst char *class_name(void); 1662306a36Sopenharmony_ciint __init dev_init(void); 1762306a36Sopenharmony_civoid dev_cleanup(void); 1862306a36Sopenharmony_ci 1962306a36Sopenharmony_ci#endif /* _HFI1_DEVICE_H */ 20