mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-08 13:28:05 +00:00
Define drmP.h's __OS_HAS_AGP and __OS_HAS_MTRR macros in a defined and
portable way. Reviewed by: dumbbell MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D7770
This commit is contained in:
parent
8aa5c6cfeb
commit
402e32a8af
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=305344
@ -103,8 +103,16 @@ __FBSDID("$FreeBSD$");
|
||||
|
||||
#include <dev/drm2/drm_os_freebsd.h>
|
||||
|
||||
#define __OS_HAS_AGP (defined(CONFIG_AGP) || (defined(CONFIG_AGP_MODULE) && defined(MODULE)))
|
||||
#define __OS_HAS_MTRR (defined(CONFIG_MTRR))
|
||||
#if defined(CONFIG_AGP) || (defined(CONFIG_AGP_MODULE) && defined(MODULE))
|
||||
#define __OS_HAS_AGP 1
|
||||
#else
|
||||
#define __OS_HAS_AGP 0
|
||||
#endif
|
||||
#if defined(CONFIG_MTRR)
|
||||
#define __OS_HAS_MTRR 1
|
||||
#else
|
||||
#define __OS_HAS_MTRR 0
|
||||
#endif
|
||||
|
||||
struct drm_file;
|
||||
struct drm_device;
|
||||
|
Loading…
Reference in New Issue
Block a user