#ifndef DRM_ACCEL_H_
#define DRM_ACCEL_H_
#include <drm/drm_file.h>
#define ACCEL_MAJOR …
#define ACCEL_MAX_MINORS …
#define DRM_ACCEL_FOPS …
#define DEFINE_DRM_ACCEL_FOPS(name) …
#if IS_ENABLED(CONFIG_DRM_ACCEL)
void accel_core_exit(void);
int accel_core_init(void);
void accel_minor_remove(int index);
int accel_minor_alloc(void);
void accel_minor_replace(struct drm_minor *minor, int index);
void accel_set_device_instance_params(struct device *kdev, int index);
int accel_open(struct inode *inode, struct file *filp);
void accel_debugfs_init(struct drm_device *dev);
void accel_debugfs_register(struct drm_device *dev);
#else
static inline void accel_core_exit(void)
{
}
static inline int __init accel_core_init(void)
{
return 0;
}
static inline void accel_minor_remove(int index)
{
}
static inline int accel_minor_alloc(void)
{
return -EOPNOTSUPP;
}
static inline void accel_minor_replace(struct drm_minor *minor, int index)
{
}
static inline void accel_set_device_instance_params(struct device *kdev, int index)
{
}
static inline void accel_debugfs_init(struct drm_device *dev)
{
}
static inline void accel_debugfs_register(struct drm_device *dev)
{
}
#endif
#endif