diff options
author | Emmanuel Vadot <manu@FreeBSD.org> | 2023-04-04 09:48:45 +0000 |
---|---|---|
committer | Emmanuel Vadot <manu@FreeBSD.org> | 2023-04-04 09:49:48 +0000 |
commit | 44312c28fe2de3078045b4a7e694797158942b28 (patch) | |
tree | 00aea887ac4b7dfa9d5e86dda694933467d56227 | |
parent | 7c7419f60cafa4f666f5a22b5e5f090081516cd2 (diff) | |
download | src-44312c28fe2de3078045b4a7e694797158942b28.tar.gz src-44312c28fe2de3078045b4a7e694797158942b28.zip |
linuxkpi: Add linux/agp_backend.h
It declares the structs needed by drm code for AGP.
Obtained from: drm-kmod
Sponsored by: Beckhoff Automation GmbH & Co. KG
-rw-r--r-- | sys/compat/linuxkpi/common/include/linux/agp_backend.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/agp_backend.h b/sys/compat/linuxkpi/common/include/linux/agp_backend.h new file mode 100644 index 000000000000..c855fd842970 --- /dev/null +++ b/sys/compat/linuxkpi/common/include/linux/agp_backend.h @@ -0,0 +1,28 @@ +/* Public domain */ + +#ifndef _LINUXKPI_LINUX_AGP_BACKEND_H_ +#define _LINUXKPI_LINUX_AGP_BACKEND_H_ + +#include <sys/types.h> + +struct agp_version { + uint16_t major; + uint16_t minor; +}; + +struct agp_kern_info { + struct agp_version version; + uint16_t vendor; + uint16_t device; + unsigned long mode; + unsigned long aper_base; + size_t aper_size; + int max_memory; + int current_memory; + bool cant_use_aperture; + unsigned long page_mask; +}; + +struct agp_memory; + +#endif /* _LINUXKPI_LINUX_AGP_BACKEND_H_ */ |