diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/compote/compote.h')
-rw-r--r-- | drivers/gpu/drm/nouveau/compote/compote.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/drivers/gpu/drm/nouveau/compote/compote.h b/drivers/gpu/drm/nouveau/compote/compote.h new file mode 100644 index 000000000000..40f437703259 --- /dev/null +++ b/drivers/gpu/drm/nouveau/compote/compote.h @@ -0,0 +1,37 @@ +/* + * Copyright 2017 Red Hat Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * Authors: Jérôme Glisse <jglisse@redhat.com> + */ +#ifndef COMPOTE_H +#define COMPOTE_H + +#include "nouveau_drv.h" + +#define COMPOTE_DEVICE_NAME "compote" + +struct compote_device { + struct device *device; + struct nouveau_drm *nvdrm; + struct cdev cdev; + int minor; + uint8_t chipset; +}; + +struct compote_file { + struct compote_device *cdevice; + struct file *file; + struct nouveau_cli nvclient; +}; + +#endif /* COMPOTE_H */ |