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

Go to the source code of this file.

Data Structures

struct  hz_init_t
 

Enumerations

enum  verifier_state_t {
  state_command, state_header2, state_header1, state_vheader5,
  state_vheader6, state_error
}
 
enum  hazard_t {
  no_check = 0, check_for_header2, check_for_header1, check_for_header2_err,
  check_for_header1_err, check_for_fire, check_z_buffer_addr0, check_z_buffer_addr1,
  check_z_buffer_addr_mode, check_destination_addr0, check_destination_addr1, check_destination_addr_mode,
  check_for_dummy, check_for_dd, check_texture_addr0, check_texture_addr1,
  check_texture_addr2, check_texture_addr3, check_texture_addr4, check_texture_addr5,
  check_texture_addr6, check_texture_addr7, check_texture_addr8, check_texture_addr_mode,
  check_for_vertex_count, check_number_texunits, forbidden_command
}
 

Functions

int via_verify_command_stream (const uint32_t *buf, unsigned int size, struct drm_device *dev, int agp)
 
int via_parse_command_stream (struct drm_device *dev, const uint32_t *buf, unsigned int size)
 
void via_init_command_verifier (void)
 

Enumeration Type Documentation

enum hazard_t
Enumerator:
no_check 
check_for_header2 
check_for_header1 
check_for_header2_err 
check_for_header1_err 
check_for_fire 
check_z_buffer_addr0 
check_z_buffer_addr1 
check_z_buffer_addr_mode 
check_destination_addr0 
check_destination_addr1 
check_destination_addr_mode 
check_for_dummy 
check_for_dd 
check_texture_addr0 
check_texture_addr1 
check_texture_addr2 
check_texture_addr3 
check_texture_addr4 
check_texture_addr5 
check_texture_addr6 
check_texture_addr7 
check_texture_addr8 
check_texture_addr_mode 
check_for_vertex_count 
check_number_texunits 
forbidden_command 

Definition at line 46 of file via_verifier.c.

Enumerator:
state_command 
state_header2 
state_header1 
state_vheader5 
state_vheader6 
state_error 

Definition at line 37 of file via_verifier.c.

Function Documentation

void via_init_command_verifier ( void  )

Definition at line 1102 of file via_verifier.c.

int via_parse_command_stream ( struct drm_device dev,
const uint32_t buf,
unsigned int  size 
)

Definition at line 1037 of file via_verifier.c.

int via_verify_command_stream ( const uint32_t buf,
unsigned int  size,
struct drm_device dev,
int  agp 
)

Definition at line 961 of file via_verifier.c.