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
This commit is contained in:
Emmanuel Vadot 2023-04-04 11:48:45 +02:00
parent 7c7419f60c
commit 44312c28fe

View File

@ -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_ */