mirror of
https://github.com/opnsense/src.git
synced 2026-04-24 07:37:25 -04:00
o Fix unlocking.
o Fix types for ds_addr/ds_len. Sponsored by: DARPA, AFRL
This commit is contained in:
parent
21ca0912c6
commit
5b2e3029ff
2 changed files with 5 additions and 4 deletions
|
|
@ -412,7 +412,7 @@ xdma_prep_memcpy(xdma_channel_t *xchan, uintptr_t src_addr,
|
|||
if (ret != 0) {
|
||||
device_printf(xdma->dev,
|
||||
"%s: Can't prepare memcpy transfer.\n", __func__);
|
||||
XDMA_UNLOCK();
|
||||
XCHAN_UNLOCK(xchan);
|
||||
|
||||
return (-1);
|
||||
}
|
||||
|
|
@ -460,7 +460,8 @@ xdma_prep_cyclic(xdma_channel_t *xchan, enum xdma_direction dir,
|
|||
if (ret != 0) {
|
||||
device_printf(xdma->dev,
|
||||
"%s: Can't prepare cyclic transfer.\n", __func__);
|
||||
XDMA_UNLOCK();
|
||||
XCHAN_UNLOCK(xchan);
|
||||
|
||||
return (-1);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -77,8 +77,8 @@ struct xdma_channel_config {
|
|||
typedef struct xdma_channel_config xdma_config_t;
|
||||
|
||||
struct xdma_descriptor {
|
||||
uintptr_t ds_addr;
|
||||
uint32_t ds_len;
|
||||
bus_addr_t ds_addr;
|
||||
bus_size_t ds_len;
|
||||
};
|
||||
|
||||
typedef struct xdma_descriptor xdma_descriptor_t;
|
||||
|
|
|
|||
Loading…
Reference in a new issue