PageRenderTime 44ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/src/xgi_common.h

#
C Header | 62 lines | 27 code | 8 blank | 27 comment | 0 complexity | 2b76b3b68e31459c12579d023a577790 MD5 | raw file
Possible License(s): MIT
  1. /*
  2. * Common header definitions for XGI 2D/3D/DRM suite
  3. *
  4. * Copyright (C) 2003 Eric Anholt
  5. *
  6. * Permission to use, copy, modify, distribute, and sell this software and its
  7. * documentation for any purpose is hereby granted without fee, provided that
  8. * the above copyright notice appears in all copies and that both that copyright
  9. * notice and this permission notice appear in supporting documentation, and
  10. * and that the name of the copyright holder not be used in advertising
  11. * or publicity pertaining to distribution of the software without specific,
  12. * written prior permission. The copyright holder makes no representations
  13. * about the suitability of this software for any purpose. It is provided
  14. * "as is" without expressed or implied warranty.
  15. *
  16. * THE COPYRIGHT HOLDER DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  17. * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
  18. * EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  19. * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  20. * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  21. * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  22. * PERFORMANCE OF THIS SOFTWARE.
  23. *
  24. * Author:
  25. * Eric Anholt <anholt@FreeBSD.org>
  26. *
  27. */
  28. #ifndef _XGI_COMMON_H_
  29. #define _XGI_COMMON_H_
  30. #define DRM_XGI_FB_ALLOC 0x04
  31. #define DRM_XGI_FB_FREE 0x05
  32. #define DRM_XGI_FLIP 0x08
  33. #define DRM_XGI_FLIP_INIT 0x09
  34. #define DRM_XGI_FLIP_FINAL 0x10
  35. #define DRM_XGI_AGP_INIT 0x13
  36. #define DRM_XGI_AGP_ALLOC 0x14
  37. #define DRM_XGI_AGP_FREE 0x15
  38. #define DRM_XGI_FB_INIT 0x16
  39. typedef struct {
  40. int context;
  41. unsigned long offset;
  42. unsigned long size;
  43. void *free;
  44. } drm_xgi_mem_t;
  45. typedef struct {
  46. unsigned long offset, size;
  47. } drm_xgi_agp_t;
  48. typedef struct {
  49. unsigned long offset, size;
  50. } drm_xgi_fb_t;
  51. typedef struct {
  52. unsigned int left, right;
  53. } drm_xgi_flip_t;
  54. #endif /* _XGI_COMMON_H_ */