intel_context.h File Reference

Include dependency graph for intel_context.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  intel_context
 Intel rendering context, contains a state tracker and intel-specific info. More...
struct  intel_framebuffer
 Intel framebuffer. More...

Defines

#define DBG(flag,...)
#define PCI_CHIP_845_G   0x2562
#define PCI_CHIP_I830_M   0x3577
#define PCI_CHIP_I855_GM   0x3582
#define PCI_CHIP_I865_G   0x2572
#define PCI_CHIP_I915_G   0x2582
#define PCI_CHIP_I915_GM   0x2592
#define PCI_CHIP_I945_G   0x2772
#define PCI_CHIP_I945_GM   0x27A2
#define PCI_CHIP_I945_GME   0x27AE
#define PCI_CHIP_G33_G   0x29C2
#define PCI_CHIP_Q35_G   0x29B2
#define PCI_CHIP_Q33_G   0x29D2

Functions

void LOCK_HARDWARE (struct intel_context *intel)
void UNLOCK_HARDWARE (struct intel_context *intel)

Variables

char * __progname


Define Documentation

#define DBG ( flag,
...   ) 

Definition at line 101 of file intel_context.h.

#define PCI_CHIP_845_G   0x2562

Definition at line 105 of file intel_context.h.

#define PCI_CHIP_G33_G   0x29C2

Definition at line 114 of file intel_context.h.

#define PCI_CHIP_I830_M   0x3577

Definition at line 106 of file intel_context.h.

#define PCI_CHIP_I855_GM   0x3582

Definition at line 107 of file intel_context.h.

#define PCI_CHIP_I865_G   0x2572

Definition at line 108 of file intel_context.h.

#define PCI_CHIP_I915_G   0x2582

Definition at line 109 of file intel_context.h.

#define PCI_CHIP_I915_GM   0x2592

Definition at line 110 of file intel_context.h.

#define PCI_CHIP_I945_G   0x2772

Definition at line 111 of file intel_context.h.

#define PCI_CHIP_I945_GM   0x27A2

Definition at line 112 of file intel_context.h.

#define PCI_CHIP_I945_GME   0x27AE

Definition at line 113 of file intel_context.h.

#define PCI_CHIP_Q33_G   0x29D2

Definition at line 116 of file intel_context.h.

#define PCI_CHIP_Q35_G   0x29B2

Definition at line 115 of file intel_context.h.


Function Documentation

void LOCK_HARDWARE ( struct intel_context intel  ) 

Definition at line 71 of file intel_lock.c.

References __progname, assert, DBG, intel_context::driHwLock, intel_context::hHWContext, intelContendedLock(), intel_context::locked, and pipe_mutex_lock.

00072 {
00073     char __ret = 0;
00074 
00075     pipe_mutex_lock(lockMutex);
00076     assert(!intel->locked);
00077 
00078     DRM_CAS(intel->driHwLock, intel->hHWContext,
00079             (DRM_LOCK_HELD|intel->hHWContext), __ret);
00080 
00081     if (__ret)
00082        intelContendedLock( intel, 0 );
00083 
00084     DBG(LOCK, "%s - locked\n", __progname);
00085 
00086     intel->locked = 1;
00087 }

void UNLOCK_HARDWARE ( struct intel_context intel  ) 

Definition at line 92 of file intel_lock.c.

References __progname, assert, DBG, intel_context::driFd, intel_context::driHwLock, intel_context::hHWContext, intel_context::locked, and pipe_mutex_unlock.

00093 {
00094    assert(intel->locked);
00095    intel->locked = 0;
00096 
00097    DRM_UNLOCK(intel->driFd, intel->driHwLock, intel->hHWContext);
00098 
00099    pipe_mutex_unlock(lockMutex);
00100 
00101    DBG(LOCK, "%s - unlocked\n", __progname);
00102 }


Variable Documentation

char* __progname


Generated on Tue Sep 29 06:25:46 2009 for Gallium3D by  doxygen 1.5.4