git: 44312c28fe2d - main - linuxkpi: Add linux/agp_backend.h
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Apr 2023 09:50:14 UTC
The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=44312c28fe2de3078045b4a7e694797158942b28 commit 44312c28fe2de3078045b4a7e694797158942b28 Author: Emmanuel Vadot <manu@FreeBSD.org> AuthorDate: 2023-04-04 09:48:45 +0000 Commit: Emmanuel Vadot <manu@FreeBSD.org> CommitDate: 2023-04-04 09:49:48 +0000 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 --- .../linuxkpi/common/include/linux/agp_backend.h | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) 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_ */