ioat.h (11d38a5764295585a2472d5e861fa8abe1a11eb2) | ioat.h (faefad9c125a9478dd46ccadd0b20a2c825de803) |
---|---|
1/*- 2 * Copyright (C) 2012 Intel Corporation 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 36 unchanged lines hidden (view full) --- 45 * Like M_NOWAIT. Operations will return NULL if they cannot allocate a 46 * descriptor without blocking. 47 */ 48#define DMA_NO_WAIT 0x2 49#define DMA_ALL_FLAGS (DMA_INT_EN | DMA_NO_WAIT) 50 51typedef void *bus_dmaengine_t; 52struct bus_dmadesc; | 1/*- 2 * Copyright (C) 2012 Intel Corporation 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 36 unchanged lines hidden (view full) --- 45 * Like M_NOWAIT. Operations will return NULL if they cannot allocate a 46 * descriptor without blocking. 47 */ 48#define DMA_NO_WAIT 0x2 49#define DMA_ALL_FLAGS (DMA_INT_EN | DMA_NO_WAIT) 50 51typedef void *bus_dmaengine_t; 52struct bus_dmadesc; |
53typedef void (*bus_dmaengine_callback_t)(void *arg); | 53typedef void (*bus_dmaengine_callback_t)(void *arg, int error); |
54 55/* 56 * Called first to acquire a reference to the DMA channel 57 */ 58bus_dmaengine_t ioat_get_dmaengine(uint32_t channel_index); 59 60/* Release the DMA channel */ 61void ioat_put_dmaengine(bus_dmaengine_t dmaengine); --- 34 unchanged lines hidden --- | 54 55/* 56 * Called first to acquire a reference to the DMA channel 57 */ 58bus_dmaengine_t ioat_get_dmaengine(uint32_t channel_index); 59 60/* Release the DMA channel */ 61void ioat_put_dmaengine(bus_dmaengine_t dmaengine); --- 34 unchanged lines hidden --- |