device.h 548 B

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