|
| | | | C T L _ C S N _ W R A P
| | | | | SOURCE: qdev_structures.txt 1.10 (15/08/2014) English struct ctl_csn_wrap
{
void (*cw_wrapcode)(
struct ctl_csn_cwin *, void *);
void *cw_wrapdata;
void *cw_userdata;
};
cw_wrapcode
- Code that will be wrapped. You want to pass cc_idcmpcode[n] in
here. You then glue your code to cc_idcmpcode[n]. When your
current code gets executed you call QDEV_CTL_PRV_CWEXECUTE()
macro to execute wrapped code.
cw_wrapdata
- Data(cc_idcmpdata[n]) that will be put to wrapped cw_wrapcode.
cw_userdata
- User data pointer that will be passed in argument 2 of the
pseudo-interrupt function. Can be whatever user wants.
| |
| | | | |
|