#include <linux/delay.h>
#include <linux/io.h>
#include <linux/scatterlist.h>
#include "common.h"
#include "pipe.h"
Go to the source code of this file.
|
#define | usbhsf_get_cfifo(p) (&((p)->fifo_info.cfifo)) |
|
#define | usbhsf_get_d0fifo(p) (&((p)->fifo_info.d0fifo)) |
|
#define | usbhsf_get_d1fifo(p) (&((p)->fifo_info.d1fifo)) |
|
#define | usbhsf_is_cfifo(p, f) (usbhsf_get_cfifo(p) == f) |
|
#define | usbhsf_fifo_is_busy(f) ((f)->pipe) /* see usbhs_pipe_select_fifo */ |
|
#define | usbhsf_irq_empty_ctrl(p, e) usbhsf_irq_callback_ctrl(p, bempsts, e) |
|
#define | usbhsf_irq_ready_ctrl(p, e) usbhsf_irq_callback_ctrl(p, brdysts, e) |
|
#define | usbhsf_irq_callback_ctrl(pipe, status, enable) |
|
#define | usbhsf_dma_start(p, f) __usbhsf_dma_ctrl(p, f, DREQE) |
|
#define | usbhsf_dma_stop(p, f) __usbhsf_dma_ctrl(p, f, 0) |
|
#define | usbhsf_dma_map(p) __usbhsf_dma_map_ctrl(p, 1) |
|
#define | usbhsf_dma_unmap(p) __usbhsf_dma_map_ctrl(p, 0) |
|
#define usbhsf_dma_map |
( |
|
p | ) |
__usbhsf_dma_map_ctrl(p, 1) |
#define usbhsf_dma_start |
( |
|
p, |
|
|
|
f |
|
) |
| __usbhsf_dma_ctrl(p, f, DREQE) |
#define usbhsf_dma_stop |
( |
|
p, |
|
|
|
f |
|
) |
| __usbhsf_dma_ctrl(p, f, 0) |
#define usbhsf_dma_unmap |
( |
|
p | ) |
__usbhsf_dma_map_ctrl(p, 0) |
#define usbhsf_get_cfifo |
( |
|
p | ) |
(&((p)->fifo_info.cfifo)) |
#define usbhsf_get_d0fifo |
( |
|
p | ) |
(&((p)->fifo_info.d0fifo)) |
#define usbhsf_get_d1fifo |
( |
|
p | ) |
(&((p)->fifo_info.d1fifo)) |
Value:
if (!mod) \
return; \
mod->irq_##status |=
status; \
else \
mod->irq_##status &= ~status; \
usbhs_irq_callback_update(priv, mod); \
})
Definition at line 197 of file fifo.c.
- Enumerator:
USBHSF_PKT_PREPARE |
|
USBHSF_PKT_TRY_RUN |
|
USBHSF_PKT_DMA_DONE |
|
Definition at line 132 of file fifo.c.
Initial value:= {
.prepare = usbhsf_ctrl_stage_end,
.try_run = usbhsf_ctrl_stage_end,
}
Definition at line 705 of file fifo.c.
Initial value:= {
.prepare = usbhsf_dcp_data_stage_prepare_pop,
}
Definition at line 468 of file fifo.c.
Initial value:= {
.prepare = usbhsf_dcp_data_stage_try_push,
}
Definition at line 429 of file fifo.c.
Initial value:= {
.prepare = usbhs_dcp_dir_switch_to_write,
.try_run = usbhs_dcp_dir_switch_done,
}
Definition at line 402 of file fifo.c.
Initial value:= {
.prepare = usbhs_dcp_dir_switch_to_read,
.try_run = usbhs_dcp_dir_switch_done,
}
Definition at line 407 of file fifo.c.
Initial value:= {
.prepare = usbhsf_prepare_pop,
.try_run = usbhsf_dma_try_pop,
.dma_done = usbhsf_dma_pop_done
}
Definition at line 972 of file fifo.c.
Initial value:= {
.prepare = usbhsf_dma_prepare_push,
.dma_done = usbhsf_dma_push_done,
}
Definition at line 873 of file fifo.c.
Initial value:= {
.prepare = usbhsf_prepare_pop,
.try_run = usbhsf_pio_try_pop,
}
Definition at line 688 of file fifo.c.
Initial value:= {
.prepare = usbhsf_pio_try_push,
.try_run = usbhsf_pio_try_push,
}
Definition at line 576 of file fifo.c.