xref: /freebsd/sys/compat/linuxkpi/common/include/linux/agp_backend.h (revision 44312c28fe2de3078045b4a7e694797158942b28)
1*44312c28SEmmanuel Vadot /* Public domain */
2*44312c28SEmmanuel Vadot 
3*44312c28SEmmanuel Vadot #ifndef _LINUXKPI_LINUX_AGP_BACKEND_H_
4*44312c28SEmmanuel Vadot #define	_LINUXKPI_LINUX_AGP_BACKEND_H_
5*44312c28SEmmanuel Vadot 
6*44312c28SEmmanuel Vadot #include <sys/types.h>
7*44312c28SEmmanuel Vadot 
8*44312c28SEmmanuel Vadot struct agp_version {
9*44312c28SEmmanuel Vadot 	uint16_t	major;
10*44312c28SEmmanuel Vadot 	uint16_t	minor;
11*44312c28SEmmanuel Vadot };
12*44312c28SEmmanuel Vadot 
13*44312c28SEmmanuel Vadot struct agp_kern_info {
14*44312c28SEmmanuel Vadot 	struct agp_version	version;
15*44312c28SEmmanuel Vadot 	uint16_t		vendor;
16*44312c28SEmmanuel Vadot 	uint16_t		device;
17*44312c28SEmmanuel Vadot 	unsigned long		mode;
18*44312c28SEmmanuel Vadot 	unsigned long		aper_base;
19*44312c28SEmmanuel Vadot 	size_t			aper_size;
20*44312c28SEmmanuel Vadot 	int			max_memory;
21*44312c28SEmmanuel Vadot 	int			current_memory;
22*44312c28SEmmanuel Vadot 	bool			cant_use_aperture;
23*44312c28SEmmanuel Vadot 	unsigned long		page_mask;
24*44312c28SEmmanuel Vadot };
25*44312c28SEmmanuel Vadot 
26*44312c28SEmmanuel Vadot struct agp_memory;
27*44312c28SEmmanuel Vadot 
28*44312c28SEmmanuel Vadot #endif /* _LINUXKPI_LINUX_AGP_BACKEND_H_ */
29