drm.h (112015) | drm.h (119098) |
---|---|
1/* drm.h -- Header for Direct Rendering Manager -*- linux-c -*- 2 * Created: Mon Jan 4 10:05:05 1999 by faith@precisioninsight.com 3 * 4 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. 5 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. 6 * All rights reserved. 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a --- 16 unchanged lines hidden (view full) --- 25 * OTHER DEALINGS IN THE SOFTWARE. 26 * 27 * Authors: 28 * Rickard E. (Rik) Faith <faith@valinux.com> 29 * 30 * Acknowledgements: 31 * Dec 1999, Richard Henderson <rth@twiddle.net>, move to generic cmpxchg. 32 * | 1/* drm.h -- Header for Direct Rendering Manager -*- linux-c -*- 2 * Created: Mon Jan 4 10:05:05 1999 by faith@precisioninsight.com 3 * 4 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas. 5 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California. 6 * All rights reserved. 7 * 8 * Permission is hereby granted, free of charge, to any person obtaining a --- 16 unchanged lines hidden (view full) --- 25 * OTHER DEALINGS IN THE SOFTWARE. 26 * 27 * Authors: 28 * Rickard E. (Rik) Faith <faith@valinux.com> 29 * 30 * Acknowledgements: 31 * Dec 1999, Richard Henderson <rth@twiddle.net>, move to generic cmpxchg. 32 * |
33 * $FreeBSD: head/sys/dev/drm/drm.h 112015 2003-03-09 02:08:30Z anholt $ | 33 * $FreeBSD: head/sys/dev/drm/drm.h 119098 2003-08-19 02:57:31Z anholt $ |
34 */ 35 36#ifndef _DRM_H_ 37#define _DRM_H_ 38 39#if defined(__linux__) 40#include <linux/config.h> 41#include <asm/ioctl.h> /* For _IO* macros */ 42#define DRM_IOCTL_NR(n) _IOC_NR(n) 43#define DRM_IOC_VOID _IOC_NONE 44#define DRM_IOC_READ _IOC_READ 45#define DRM_IOC_WRITE _IOC_WRITE 46#define DRM_IOC_READWRITE _IOC_READ|_IOC_WRITE 47#define DRM_IOC(dir, group, nr, size) _IOC(dir, group, nr, size) | 34 */ 35 36#ifndef _DRM_H_ 37#define _DRM_H_ 38 39#if defined(__linux__) 40#include <linux/config.h> 41#include <asm/ioctl.h> /* For _IO* macros */ 42#define DRM_IOCTL_NR(n) _IOC_NR(n) 43#define DRM_IOC_VOID _IOC_NONE 44#define DRM_IOC_READ _IOC_READ 45#define DRM_IOC_WRITE _IOC_WRITE 46#define DRM_IOC_READWRITE _IOC_READ|_IOC_WRITE 47#define DRM_IOC(dir, group, nr, size) _IOC(dir, group, nr, size) |
48#elif defined(__FreeBSD__) || defined(__NetBSD__) | 48#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) |
49#if defined(__FreeBSD__) && defined(XFree86Server) 50/* Prevent name collision when including sys/ioccom.h */ 51#undef ioctl 52#include <sys/ioccom.h> 53#define ioctl(a,b,c) xf86ioctl(a,b,c) 54#else 55#include <sys/ioccom.h> 56#endif /* __FreeBSD__ && xf86ioctl */ --- 419 unchanged lines hidden --- | 49#if defined(__FreeBSD__) && defined(XFree86Server) 50/* Prevent name collision when including sys/ioccom.h */ 51#undef ioctl 52#include <sys/ioccom.h> 53#define ioctl(a,b,c) xf86ioctl(a,b,c) 54#else 55#include <sys/ioccom.h> 56#endif /* __FreeBSD__ && xf86ioctl */ --- 419 unchanged lines hidden --- |