Subversion Repositories Kolibri OS

Rev

Rev 1125 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1125 Rev 1126
Line 68... Line 68...
68
    } while (0)
68
    } while (0)
Line 69... Line 69...
69
 
69
 
70
#define DRM_DEBUG(fmt, arg...)     \
70
#define DRM_DEBUG(fmt, arg...)     \
Line -... Line 71...
-
 
71
    printk("[" DRM_NAME ":%s] " fmt , __func__ , ##arg)
-
 
72
 
-
 
73
 
-
 
74
/**
-
 
75
 * This structure defines the drm_mm memory object, which will be used by the
-
 
76
 * DRM for its buffer objects.
-
 
77
 */
-
 
78
struct drm_gem_object {
-
 
79
    /** Reference count of this object */
-
 
80
//    struct kref refcount;
-
 
81
 
-
 
82
    /** Handle count of this object. Each handle also holds a reference */
-
 
83
//    struct kref handlecount;
-
 
84
 
-
 
85
    /** Related drm device */
-
 
86
    struct drm_device *dev;
-
 
87
 
-
 
88
    /** File representing the shmem storage */
-
 
89
//    struct file *filp;
-
 
90
 
-
 
91
    /* Mapping info for this object */
-
 
92
//    struct drm_map_list map_list;
-
 
93
 
-
 
94
    /**
-
 
95
     * Size of the object, in bytes.  Immutable over the object's
-
 
96
     * lifetime.
-
 
97
     */
-
 
98
    size_t size;
-
 
99
 
-
 
100
    /**
-
 
101
     * Global name for this object, starts at 1. 0 means unnamed.
-
 
102
     * Access is covered by the object_name_lock in the related drm_device
-
 
103
     */
-
 
104
    int name;
-
 
105
 
-
 
106
    /**
-
 
107
     * Memory domains. These monitor which caches contain read/write data
-
 
108
     * related to the object. When transitioning from one set of domains
-
 
109
     * to another, the driver is called to ensure that caches are suitably
-
 
110
     * flushed and invalidated
-
 
111
     */
-
 
112
    uint32_t read_domains;
-
 
113
    uint32_t write_domain;
-
 
114
 
-
 
115
    /**
-
 
116
     * While validating an exec operation, the
-
 
117
     * new read/write domain values are computed here.
-
 
118
     * They will be transferred to the above values
-
 
119
     * at the point that any cache flushing occurs
-
 
120
     */
-
 
121
    uint32_t pending_read_domains;
-
 
122
    uint32_t pending_write_domain;
-
 
123
 
-
 
124
    void *driver_private;
-
 
125
};
71
    printk("[" DRM_NAME ":%s] " fmt , __func__ , ##arg)
126
 
Line 72... Line 127...
72
 
127
 
73
#if 0
128
#if 0
74
 
129