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
..
2018-04-09 19:11:24 +00:00
2018-04-10 20:31:25 +00:00
2018-04-10 12:53:48 +00:00
2018-04-06 19:47:44 +00:00
2018-04-12 10:37:26 +00:00
2018-04-09 17:24:01 +00:00
2018-04-12 15:36:24 +00:00
2018-04-02 23:40:50 +00:00
2018-03-29 04:02:50 +00:00
2018-03-04 13:27:21 +00:00
2018-04-12 15:36:24 +00:00
2018-04-10 13:25:42 +00:00
2018-04-06 17:35:35 +00:00
2018-03-06 14:28:37 +00:00
2018-04-10 19:18:16 +00:00
2018-02-13 17:43:54 +00:00
2018-04-09 17:24:01 +00:00
2018-03-11 20:13:15 +00:00
2018-04-11 01:43:29 +00:00
2018-02-14 00:12:03 +00:00
2018-02-26 18:23:36 +00:00
2018-04-12 15:36:24 +00:00
2018-04-12 07:20:50 +00:00
2018-04-12 14:35:37 +00:00
2018-03-30 18:50:13 +00:00
2018-02-23 18:15:50 +00:00
2018-04-11 17:28:24 +00:00
2018-04-11 17:28:24 +00:00
2018-03-20 17:05:23 +00:00
2018-04-11 11:43:12 +00:00
2018-04-11 17:28:24 +00:00
2018-02-10 01:09:22 +00:00
2018-03-27 20:51:49 +00:00
2018-04-06 17:35:35 +00:00
2018-04-10 21:14:54 +00:00
2018-03-20 17:58:51 +00:00
2018-03-30 18:50:13 +00:00
2018-04-08 22:59:34 +00:00
2018-04-12 14:57:48 +00:00
2018-04-08 19:23:50 +00:00
2018-03-24 21:30:24 +00:00
2018-04-05 00:32:01 +00:00
2018-04-07 17:06:13 +00:00
2018-04-06 17:35:35 +00:00