]> err.no Git - linux-2.6/blobdiff - drivers/char/drm/via_verifier.h
V4L/DVB (3661): Add wm8739 stereo audio ADC i2c driver
[linux-2.6] / drivers / char / drm / via_verifier.h
index a8e13592620f27aa860c9a95ed65db6dba152878..256590fcc22acab17d4b258d2b8ac45de1d6e4e5 100644 (file)
 #ifndef _VIA_VERIFIER_H_
 #define _VIA_VERIFIER_H_
 
-typedef enum{
-       no_sequence = 0, 
+typedef enum {
+       no_sequence = 0,
        z_address,
        dest_address,
        tex_address
-}drm_via_sequence_t;
+} drm_via_sequence_t;
 
-
-
-typedef struct{
+typedef struct {
        unsigned texture;
-       uint32_t z_addr; 
-       uint32_t d_addr; 
-        uint32_t t_addr[2][10];
+       uint32_t z_addr;
+       uint32_t d_addr;
+       uint32_t t_addr[2][10];
        uint32_t pitch[2][10];
        uint32_t height[2][10];
-       uint32_t tex_level_lo[2]; 
+       uint32_t tex_level_lo[2];
        uint32_t tex_level_hi[2];
        uint32_t tex_palette_size[2];
        drm_via_sequence_t unfinished;
        int agp_texture;
        int multitex;
        drm_device_t *dev;
-       drm_map_t *map_cache;
+       drm_local_map_t *map_cache;
        uint32_t vertex_count;
        int agp;
        const uint32_t *buf_start;
 } drm_via_state_t;
 
-extern int via_verify_command_stream(const uint32_t * buf, unsigned int size, 
-                                    drm_device_t *dev, int agp);
+extern int via_verify_command_stream(const uint32_t * buf, unsigned int size,
+                                    drm_device_t * dev, int agp);
+extern int via_parse_command_stream(drm_device_t *dev, const uint32_t *buf,
+                                   unsigned int size);
 
 #endif