#include <errno.h>
#include <str_error.h>
#include <usb/usb.h>
#include <usb/debug.h>
#include "batch.h"
#include "hcd_endpoint.h"
#include "utils/malloc32.h"
#include "hw_struct/endpoint_descriptor.h"
#include "hw_struct/transfer_descriptor.h"
Go to the source code of this file.
Data Structures | |
| struct | ohci_transfer_batch |
| OHCI specific data required for USB transfer. More... | |
Typedefs | |
| typedef ohci_transfer_batch | ohci_transfer_batch_t |
| OHCI specific data required for USB transfer. | |
Functions | |
| void | batch_bulk_in (usb_transfer_batch_t *instance) |
| Prepare bulk in transfer. | |
| void | batch_bulk_out (usb_transfer_batch_t *instance) |
| Prepare bulk out transfer. | |
| void | batch_commit (usb_transfer_batch_t *instance) |
| Starts execution of the TD list. | |
| static void | batch_control (usb_transfer_batch_t *instance, usb_direction_t data_dir, usb_direction_t status_dir) |
| Prepare generic control transfer. | |
| void | batch_control_read (usb_transfer_batch_t *instance) |
| Prepares control read transfer. | |
| void | batch_control_write (usb_transfer_batch_t *instance) |
| Prepares control write transfer. | |
| static void | batch_data (usb_transfer_batch_t *instance) |
| Prepare generic data transfer. | |
| usb_transfer_batch_t * | batch_get (ddf_fun_t *fun, endpoint_t *ep, char *buffer, size_t buffer_size, const char *setup_buffer, size_t setup_size, usbhc_iface_transfer_in_callback_t func_in, usbhc_iface_transfer_out_callback_t func_out, void *arg) |
| Allocate memory initialize internal structures. | |
| void | batch_interrupt_in (usb_transfer_batch_t *instance) |
| Prepare interrupt in transfer. | |
| void | batch_interrupt_out (usb_transfer_batch_t *instance) |
| Prepare interrupt out transfer. | |
| bool | batch_is_complete (usb_transfer_batch_t *instance) |
| Check batch TDs' status. | |
| static void | ohci_transfer_batch_dispose (void *ohci_batch) |
| Safely destructs ohci_transfer_batch_t structure. | |
Definition in file batch.c.
1.4.7