cregit-Linux how code gets into the kernel

Release 4.16 include/drm/drm_agpsupport.h

Directory: include/drm
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _DRM_AGPSUPPORT_H_

#define _DRM_AGPSUPPORT_H_

#include <linux/agp_backend.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/mm.h>
#include <linux/mutex.h>
#include <linux/types.h>
#include <uapi/drm/drm.h>

struct drm_device;
struct drm_file;


struct drm_agp_head {
	
struct agp_kern_info agp_info;
	
struct list_head memory;
	
unsigned long mode;
	
struct agp_bridge_data *bridge;
	
int enabled;
	
int acquired;
	
unsigned long base;
	
int agp_mtrr;
	
int cant_use_aperture;
	
unsigned long page_mask;
};

#if IS_ENABLED(CONFIG_AGP)

void drm_free_agp(struct agp_memory * handle, int pages);
int drm_bind_agp(struct agp_memory * handle, unsigned int start);
int drm_unbind_agp(struct agp_memory * handle);
struct agp_memory *drm_agp_bind_pages(struct drm_device *dev,
				struct page **pages,
				unsigned long num_pages,
				uint32_t gtt_offset,
				uint32_t type);

struct drm_agp_head *drm_agp_init(struct drm_device *dev);
void drm_legacy_agp_clear(struct drm_device *dev);
int drm_agp_acquire(struct drm_device *dev);
int drm_agp_acquire_ioctl(struct drm_device *dev, void *data,
			  struct drm_file *file_priv);
int drm_agp_release(struct drm_device *dev);
int drm_agp_release_ioctl(struct drm_device *dev, void *data,
			  struct drm_file *file_priv);
int drm_agp_enable(struct drm_device *dev, struct drm_agp_mode mode);
int drm_agp_enable_ioctl(struct drm_device *dev, void *data,
			 struct drm_file *file_priv);
int drm_agp_info(struct drm_device *dev, struct drm_agp_info *info);
int drm_agp_info_ioctl(struct drm_device *dev, void *data,
		       struct drm_file *file_priv);
int drm_agp_alloc(struct drm_device *dev, struct drm_agp_buffer *request);
int drm_agp_alloc_ioctl(struct drm_device *dev, void *data,
			struct drm_file *file_priv);
int drm_agp_free(struct drm_device *dev, struct drm_agp_buffer *request);
int drm_agp_free_ioctl(struct drm_device *dev, void *data,
		       struct drm_file *file_priv);
int drm_agp_unbind(struct drm_device *dev, struct drm_agp_binding *request);
int drm_agp_unbind_ioctl(struct drm_device *dev, void *data,
			 struct drm_file *file_priv);
int drm_agp_bind(struct drm_device *dev, struct drm_agp_binding *request);
int drm_agp_bind_ioctl(struct drm_device *dev, void *data,
		       struct drm_file *file_priv);

#else /* CONFIG_AGP */


static inline void drm_free_agp(struct agp_memory * handle, int pages) { }

Contributors

PersonTokensPropCommitsCommitProp
David Herrmann1285.71%150.00%
Daniel Vetter214.29%150.00%
Total14100.00%2100.00%


static inline int drm_bind_agp(struct agp_memory * handle, unsigned int start) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
David Herrmann1890.00%150.00%
Daniel Vetter210.00%150.00%
Total20100.00%2100.00%


static inline int drm_unbind_agp(struct agp_memory * handle) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
David Herrmann1487.50%150.00%
Daniel Vetter212.50%150.00%
Total16100.00%2100.00%


static inline struct agp_memory *drm_agp_bind_pages(struct drm_device *dev, struct page **pages, unsigned long num_pages, uint32_t gtt_offset, uint32_t type) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
David Herrmann3193.94%150.00%
Daniel Vetter26.06%150.00%
Total33100.00%2100.00%


static inline struct drm_agp_head *drm_agp_init(struct drm_device *dev) { return NULL; }

Contributors

PersonTokensPropCommitsCommitProp
David Herrmann17100.00%1100.00%
Total17100.00%1100.00%


static inline void drm_legacy_agp_clear(struct drm_device *dev) { }

Contributors

PersonTokensPropCommitsCommitProp
David Herrmann1090.91%150.00%
Daniel Vetter19.09%150.00%
Total11100.00%2100.00%


static inline int drm_agp_acquire(struct drm_device *dev) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
David Herrmann16100.00%1100.00%
Total16100.00%1100.00%


static inline int drm_agp_release(struct drm_device *dev) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
David Herrmann16100.00%1100.00%
Total16100.00%1100.00%


static inline int drm_agp_enable(struct drm_device *dev, struct drm_agp_mode mode) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
David Herrmann20100.00%1100.00%
Total20100.00%1100.00%


static inline int drm_agp_info(struct drm_device *dev, struct drm_agp_info *info) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
David Herrmann21100.00%1100.00%
Total21100.00%1100.00%


static inline int drm_agp_alloc(struct drm_device *dev, struct drm_agp_buffer *request) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
David Herrmann21100.00%1100.00%
Total21100.00%1100.00%


static inline int drm_agp_free(struct drm_device *dev, struct drm_agp_buffer *request) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
David Herrmann21100.00%1100.00%
Total21100.00%1100.00%


static inline int drm_agp_unbind(struct drm_device *dev, struct drm_agp_binding *request) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
David Herrmann21100.00%1100.00%
Total21100.00%1100.00%


static inline int drm_agp_bind(struct drm_device *dev, struct drm_agp_binding *request) { return -ENODEV; }

Contributors

PersonTokensPropCommitsCommitProp
David Herrmann21100.00%1100.00%
Total21100.00%1100.00%

#endif /* CONFIG_AGP */ #endif /* _DRM_AGPSUPPORT_H_ */

Overall Contributors

PersonTokensPropCommitsCommitProp
David Herrmann66096.35%342.86%
Daniel Vetter243.50%342.86%
Greg Kroah-Hartman10.15%114.29%
Total685100.00%7100.00%
Directory: include/drm
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.