summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/usb_mem.h
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2020-03-21 12:08:31 +0000
committerpatrick <patrick@openbsd.org>2020-03-21 12:08:31 +0000
commitc28d999fb593957e511be1c7c486eed1cb0f077b (patch)
treee92620bb5af0f2bd04baafa66179def1f90cfbd8 /sys/dev/usb/usb_mem.h
parentdrm/amd/display: remove duplicated assignment to grph_obj_type (diff)
downloadwireguard-openbsd-c28d999fb593957e511be1c7c486eed1cb0f077b.tar.xz
wireguard-openbsd-c28d999fb593957e511be1c7c486eed1cb0f077b.zip
Instead of passing the flags as part of a struct that's supposed to be
filled by the callee, change the usb_allocmem() API to take another argument for the flags. ok mpi@
Diffstat (limited to 'sys/dev/usb/usb_mem.h')
-rw-r--r--sys/dev/usb/usb_mem.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/usb/usb_mem.h b/sys/dev/usb/usb_mem.h
index f0e0d1c217d..98a221eae9a 100644
--- a/sys/dev/usb/usb_mem.h
+++ b/sys/dev/usb/usb_mem.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: usb_mem.h,v 1.16 2020/03/19 14:18:38 patrick Exp $ */
+/* $OpenBSD: usb_mem.h,v 1.17 2020/03/21 12:08:31 patrick Exp $ */
/* $NetBSD: usb_mem.h,v 1.20 2003/05/03 18:11:42 wiz Exp $ */
/* $FreeBSD: src/sys/dev/usb/usb_mem.h,v 1.9 1999/11/17 22:33:47 n_hibma Exp $ */
@@ -51,6 +51,7 @@ struct usb_dma_block {
#define KERNADDR(dma, o) \
((void *)((char *)((dma)->block->kaddr + (dma)->offs) + (o)))
-usbd_status usb_allocmem(struct usbd_bus *,size_t,size_t, struct usb_dma *);
+usbd_status usb_allocmem(struct usbd_bus *, size_t, size_t, int,
+ struct usb_dma *);
void usb_freemem(struct usbd_bus *, struct usb_dma *);
void usb_syncmem(struct usb_dma *, bus_addr_t, bus_size_t, int);