Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
savage_bci.c File Reference
#include <drm/drmP.h>
#include <drm/savage_drm.h>
#include "savage_drv.h"

Go to the source code of this file.

Macros

#define SAVAGE_DEFAULT_USEC_TIMEOUT   1000000 /* 1s */
 
#define SAVAGE_EVENT_USEC_TIMEOUT   5000000 /* 5s */
 
#define SAVAGE_FREELIST_DEBUG   0
 

Functions

uint16_t savage_bci_emit_event (drm_savage_private_t *dev_priv, unsigned int flags)
 
void savage_freelist_put (struct drm_device *dev, struct drm_buf *buf)
 
void savage_dma_reset (drm_savage_private_t *dev_priv)
 
void savage_dma_wait (drm_savage_private_t *dev_priv, unsigned int page)
 
uint32_tsavage_dma_alloc (drm_savage_private_t *dev_priv, unsigned int n)
 
int savage_driver_load (struct drm_device *dev, unsigned long chipset)
 
int savage_driver_firstopen (struct drm_device *dev)
 
void savage_driver_lastclose (struct drm_device *dev)
 
int savage_driver_unload (struct drm_device *dev)
 
int savage_bci_buffers (struct drm_device *dev, void *data, struct drm_file *file_priv)
 
void savage_reclaim_buffers (struct drm_device *dev, struct drm_file *file_priv)
 

Variables

struct drm_ioctl_desc savage_ioctls []
 
int savage_max_ioctl = DRM_ARRAY_SIZE(savage_ioctls)
 

Macro Definition Documentation

#define SAVAGE_DEFAULT_USEC_TIMEOUT   1000000 /* 1s */

Definition at line 31 of file savage_bci.c.

#define SAVAGE_EVENT_USEC_TIMEOUT   5000000 /* 5s */

Definition at line 32 of file savage_bci.c.

#define SAVAGE_FREELIST_DEBUG   0

Definition at line 33 of file savage_bci.c.

Function Documentation

int savage_bci_buffers ( struct drm_device dev,
void data,
struct drm_file *  file_priv 
)

Definition at line 1018 of file savage_bci.c.

uint16_t savage_bci_emit_event ( drm_savage_private_t dev_priv,
unsigned int  flags 
)

Definition at line 164 of file savage_bci.c.

uint32_t* savage_dma_alloc ( drm_savage_private_t dev_priv,
unsigned int  n 
)

Definition at line 362 of file savage_bci.c.

void savage_dma_reset ( drm_savage_private_t dev_priv)

Definition at line 319 of file savage_bci.c.

void savage_dma_wait ( drm_savage_private_t dev_priv,
unsigned int  page 
)

Definition at line 334 of file savage_bci.c.

int savage_driver_firstopen ( struct drm_device dev)

Definition at line 562 of file savage_bci.c.

void savage_driver_lastclose ( struct drm_device dev)

Definition at line 658 of file savage_bci.c.

int savage_driver_load ( struct drm_device dev,
unsigned long  chipset 
)

Definition at line 538 of file savage_bci.c.

int savage_driver_unload ( struct drm_device dev)

Definition at line 670 of file savage_bci.c.

void savage_freelist_put ( struct drm_device dev,
struct drm_buf *  buf 
)

Definition at line 272 of file savage_bci.c.

void savage_reclaim_buffers ( struct drm_device dev,
struct drm_file *  file_priv 
)

Definition at line 1051 of file savage_bci.c.

Variable Documentation

struct drm_ioctl_desc savage_ioctls[]
Initial value:
= {
DRM_IOCTL_DEF_DRV(SAVAGE_BCI_INIT, savage_bci_init, DRM_AUTH|DRM_MASTER|DRM_ROOT_ONLY),
DRM_IOCTL_DEF_DRV(SAVAGE_BCI_CMDBUF, savage_bci_cmdbuf, DRM_AUTH),
DRM_IOCTL_DEF_DRV(SAVAGE_BCI_EVENT_EMIT, savage_bci_event_emit, DRM_AUTH),
DRM_IOCTL_DEF_DRV(SAVAGE_BCI_EVENT_WAIT, savage_bci_event_wait, DRM_AUTH),
}

Definition at line 1088 of file savage_bci.c.

int savage_max_ioctl = DRM_ARRAY_SIZE(savage_ioctls)

Definition at line 1095 of file savage_bci.c.