freebsd-dev/sys/mips/ingenic
Ruslan Bukin 3d5b3b0a44 Tune xDMA interface slightly:
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
2018-04-12 15:36:24 +00:00
..
files.jz4780 Add driver for JZ4780 RTC device. 2016-12-24 02:31:26 +00:00
files.x1000 Add jz4780 AIC (Audio Interface Controller) driver. 2016-12-20 18:27:53 +00:00
jz4780_aic.c Tune xDMA interface slightly: 2018-04-12 15:36:24 +00:00
jz4780_aic.h Add registers for jz4780 audio and PDMA controllers. 2016-12-09 17:16:09 +00:00
jz4780_clk_gen.c Choose the closes matching divider instead of one that results in a 2016-12-20 01:37:00 +00:00
jz4780_clk_otg.c
jz4780_clk_pll.c
jz4780_clk.h
jz4780_clock.c Apply clear_mask correctly. 2016-12-12 17:08:52 +00:00
jz4780_clock.h
jz4780_codec.c The JZ4780 I2S can feed either the internal audio codec or the HDMI 2016-12-29 14:00:10 +00:00
jz4780_codec.h The JZ4780 I2S can feed either the internal audio codec or the HDMI 2016-12-29 14:00:10 +00:00
jz4780_common.h Add jz4780 internal codec initialization driver. 2016-12-08 16:28:34 +00:00
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 Pass memattrs to fb device so that user mappings can inherit them 2016-12-23 19:30:14 +00:00
jz4780_lcd.h Add support for Ingenic JZ4780 LCD controller and enable framebuffer 2016-12-20 01:51:09 +00:00
jz4780_machdep.c
jz4780_mmc.c Add and use a MMC_DECLARE_BRIDGE macro for declaring mmc(4) bridges 2017-03-07 22:42:44 +00:00
jz4780_mp.c
jz4780_mpboot.S Rename assym.s to assym.inc 2018-03-20 17:58:51 +00:00
jz4780_nand.c
jz4780_nemc.c
jz4780_ohci.c
jz4780_pdma.c Tune xDMA interface slightly: 2018-04-12 15:36:24 +00:00
jz4780_pdma.h Tune xDMA interface slightly: 2018-04-12 15:36:24 +00:00
jz4780_pinctrl.c Align OF_getencprop_alloc API with OF_getencprop and OF_getprop_alloc 2018-04-09 22:06:16 +00:00
jz4780_pinctrl.h
jz4780_regs.h
jz4780_rtc.c Add driver for JZ4780 RTC device. 2016-12-24 02:31:26 +00:00
jz4780_smb.c Add support for Ingenic JZ4780 SMBus controller. 2016-12-16 20:04:56 +00:00
jz4780_smb.h Add support for Ingenic JZ4780 SMBus controller. 2016-12-16 20:04:56 +00:00
jz4780_timer.c Use the TSLOG framework to record entry/exit timestamps for DELAY and 2017-12-31 09:24:41 +00:00
jz4780_uart.c Allow setting access-width for UART registers. 2017-02-27 20:08:42 +00:00