/** * struct uacce_qfile_region - structure of queue file region * @type: type of the region
*/ struct uacce_qfile_region { enum uacce_qfrt type;
};
/** * struct uacce_ops - uacce device operations * @get_available_instances: get available instances left of the device * @get_queue: get a queue from the device * @put_queue: free a queue to the device * @start_queue: make the queue start work after get_queue * @stop_queue: make the queue stop work before put_queue * @is_q_updated: check whether the task is finished * @mmap: mmap addresses of queue to user space * @ioctl: ioctl for user space users of the queue * @get_isolate_state: get the device state after set the isolate strategy * @isolate_err_threshold_write: stored the isolate error threshold to the device * @isolate_err_threshold_read: read the isolate error threshold value from the device
*/ struct uacce_ops { int (*get_available_instances)(struct uacce_device *uacce); int (*get_queue)(struct uacce_device *uacce, unsignedlong arg, struct uacce_queue *q); void (*put_queue)(struct uacce_queue *q); int (*start_queue)(struct uacce_queue *q); void (*stop_queue)(struct uacce_queue *q); int (*is_q_updated)(struct uacce_queue *q); int (*mmap)(struct uacce_queue *q, struct vm_area_struct *vma, struct uacce_qfile_region *qfr); long (*ioctl)(struct uacce_queue *q, unsignedint cmd, unsignedlong arg); enum uacce_dev_state (*get_isolate_state)(struct uacce_device *uacce); int (*isolate_err_threshold_write)(struct uacce_device *uacce, u32 num);
u32 (*isolate_err_threshold_read)(struct uacce_device *uacce);
};
/** * struct uacce_interface - interface required for uacce_register() * @name: the uacce device name. Will show up in sysfs * @flags: uacce device attributes * @ops: pointer to the struct uacce_ops
*/ struct uacce_interface { char name[UACCE_MAX_NAME_SIZE]; unsignedint flags; conststruct uacce_ops *ops;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.