3d5b3b0a44
o Move descriptors allocation to DMA engine driver o Add generic xdma_request() routine o Add less-generic scatter-gather application based on xdma interface Typical operation flow in peripheral device driver is: 1. Get xDMA controller sc->xdma_tx = xdma_ofw_get(sc->dev, "tx"); 2. Allocate virtual channel sc->xchan_tx = xdma_channel_alloc(sc->xdma_tx, caps); 3. Setup transfer status callback xdma_setup_intr(sc->xchan_tx, my_tx_intr, sc, &sc->ih_tx); 4. Request a transfer(s) ret = xdma_request(sc->xchan_tx, &req); 5. Free the channel xdma_channel_free(sc->xdma_tx); 6. Free the controller xdma_put(sc->xdma_tx); Sponsored by: DARPA, AFRL Differential Revision: https://reviews.freebsd.org/D14971 |
||
---|---|---|
.. | ||
files.jz4780 | ||
files.x1000 | ||
jz4780_aic.c | ||
jz4780_aic.h | ||
jz4780_clk_gen.c | ||
jz4780_clk_otg.c | ||
jz4780_clk_pll.c | ||
jz4780_clk.h | ||
jz4780_clock.c | ||
jz4780_clock.h | ||
jz4780_codec.c | ||
jz4780_codec.h | ||
jz4780_common.h | ||
jz4780_cpuregs.h | ||
jz4780_dme.c | ||
jz4780_dwc_fdt.c | ||
jz4780_efuse.c | ||
jz4780_ehci.c | ||
jz4780_gpio_if.m | ||
jz4780_gpio.c | ||
jz4780_intr.c | ||
jz4780_lcd.c | ||
jz4780_lcd.h | ||
jz4780_machdep.c | ||
jz4780_mmc.c | ||
jz4780_mp.c | ||
jz4780_mpboot.S | ||
jz4780_nand.c | ||
jz4780_nemc.c | ||
jz4780_ohci.c | ||
jz4780_pdma.c | ||
jz4780_pdma.h | ||
jz4780_pinctrl.c | ||
jz4780_pinctrl.h | ||
jz4780_regs.h | ||
jz4780_rtc.c | ||
jz4780_smb.c | ||
jz4780_smb.h | ||
jz4780_timer.c | ||
jz4780_uart.c |