diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2016-09-03 13:33:28 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2016-09-03 13:33:28 +0000 |
| commit | 402e32a8af068019109ed560c4eea45ed3028abd (patch) | |
| tree | 651946811981c3857655d8d13436f69f350ea909 /sys/dev/drm2 | |
| parent | 8aa5c6cfeb6c3c7f5c98c1542c31d17c32f60858 (diff) | |
Notes
Diffstat (limited to 'sys/dev/drm2')
| -rw-r--r-- | sys/dev/drm2/drmP.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/dev/drm2/drmP.h b/sys/dev/drm2/drmP.h index 2853678ccddf..508fc3099179 100644 --- a/sys/dev/drm2/drmP.h +++ b/sys/dev/drm2/drmP.h @@ -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; |
