Changeset a35b458 in mainline for uspace/lib/graph/graph.h
- Timestamp:
- 2018-03-02T20:10:49Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f1380b7
- Parents:
- 3061bc1
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:38:31)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-03-02 20:10:49)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/graph/graph.h
r3061bc1 ra35b458 55 55 * specific for a claimed visualizer. */ 56 56 errno_t (*claim)(struct visualizer *vs); 57 57 58 58 /** 59 59 * Device driver shall deallocate any necessary internal structures … … 62 62 * accordingly (e.g. deallocate frame buffers). */ 63 63 errno_t (*yield)(struct visualizer *vs); 64 64 65 65 /** 66 66 * Device driver shall first try to claim all resources required for … … 73 73 * changed at this point. */ 74 74 errno_t (*change_mode)(struct visualizer *vs, vslmode_t new_mode); 75 75 76 76 /** 77 77 * Device driver shall render the cells from damaged region into its … … 85 85 sysarg_t x, sysarg_t y, sysarg_t width, sysarg_t height, 86 86 sysarg_t x_offset, sysarg_t y_offset); 87 87 88 88 /** 89 89 * Upper layers of the graphic stack might report inactivity. In such … … 91 91 * corresponding to the visualizer. */ 92 92 errno_t (*suspend)(struct visualizer *vs); 93 93 94 94 /** 95 95 * When upper layers detect activity on suspended visualizer, device … … 107 107 * Field is fully managed by libgraph. */ 108 108 link_t link; 109 109 110 110 /** 111 111 * When reference count equals 1, visualizer is claimed by a client, … … 114 114 * Field is fully managed by libgraph. */ 115 115 atomic_t ref_cnt; 116 116 117 117 /** 118 118 * Visualizer ID assigned by some particular registration service … … 123 123 * responsibility to set and update this field. */ 124 124 sysarg_t reg_svc_handle; 125 125 126 126 /** 127 127 * Visualizer ID in the client context. When client gets notified by … … 132 132 * gets claimed and is valid until it is yielded. */ 133 133 sysarg_t client_side_handle; 134 134 135 135 /** 136 136 * Callback session to the client. Established by libgraph during initial … … 143 143 * through notification functions. */ 144 144 async_sess_t *notif_sess; 145 145 146 146 /** 147 147 * Mutex protecting the mode list and default mode index. This is required … … 152 152 * modes list or default mode index. */ 153 153 fibril_mutex_t mode_mtx; 154 154 155 155 /** 156 156 * List of all modes that can be set by this visualizer. List is populated … … 164 164 * mutex. */ 165 165 list_t modes; 166 166 167 167 /** 168 168 * Index of the default mode. Might come in handy to the clients that are … … 175 175 * mutex. */ 176 176 sysarg_t def_mode_idx; 177 177 178 178 /** 179 179 * Copy of the currently established mode. It is read by both libgraph and … … 183 183 * Field is fully managed by libgraph, can be read by device driver. */ 184 184 vslmode_t cur_mode; 185 185 186 186 /** 187 187 * Determines whether the visualizer is currently set to some mode or not, … … 189 189 * Field is fully managed by libgraph, can be read by device driver. */ 190 190 bool mode_set; 191 191 192 192 /** 193 193 * Device driver function pointers. … … 195 195 * functions through it. */ 196 196 visualizer_ops_t ops; 197 197 198 198 /** 199 199 * Backbuffer shared with the client. Sharing is established by libgraph. … … 202 202 * Field is fully managed by libgraph, can be read by device driver. */ 203 203 pixelmap_t cells; 204 204 205 205 /** 206 206 * Device driver context, completely opaque to the libgraph. Intended to … … 252 252 // TODO 253 253 link_t link; 254 254 255 255 atomic_t ref_cnt; 256 256 257 257 sysarg_t reg_svc_handle; 258 258 259 259 renderer_ops_t ops; 260 260 } renderer_t;
Note:
See TracChangeset
for help on using the changeset viewer.