diff options
author | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2015-06-28 11:48:19 +0000 |
---|---|---|
committer | Jonathan Matthew <jmatthew@cvs.openbsd.org> | 2015-06-28 11:48:19 +0000 |
commit | a1e08a308f333afc17c5adda8075a25d65e423b8 (patch) | |
tree | 502e20d02c51cd2dd20a1dc738997ce2a738ab08 /sys/dev/usb/dwc2/dwc2_core.h | |
parent | e68bbaebbd4c651e7d13c22f491ffca8b3e1f935 (diff) |
Convert list_head lists into TAILQs and LISTs and fix up header includes
so we can build dwc2 without extra stuff.
tested by several edgerouter lite owners, ok jasper@
Diffstat (limited to 'sys/dev/usb/dwc2/dwc2_core.h')
-rw-r--r-- | sys/dev/usb/dwc2/dwc2_core.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/sys/dev/usb/dwc2/dwc2_core.h b/sys/dev/usb/dwc2/dwc2_core.h index d6e25dc9ec1..c12e91af21e 100644 --- a/sys/dev/usb/dwc2/dwc2_core.h +++ b/sys/dev/usb/dwc2/dwc2_core.h @@ -1,4 +1,4 @@ -/* $OpenBSD: dwc2_core.h,v 1.8 2015/02/12 11:38:42 uebayasi Exp $ */ +/* $OpenBSD: dwc2_core.h,v 1.9 2015/06/28 11:48:18 jmatthew Exp $ */ /* $NetBSD: dwc2_core.h,v 1.5 2014/04/03 06:34:58 skrll Exp $ */ /* @@ -49,8 +49,6 @@ #include <machine/intr.h> #include <machine/bus.h> -#include <dev/usb/dwc2/linux/list.h> - #include <dev/usb/dwc2/dwc2_hw.h> /* Maximum number of Endpoints/HostChannels */ @@ -313,6 +311,8 @@ struct dwc2_core_dma_config { void *set_dma_addr_data; }; +TAILQ_HEAD(dwc2_qh_list, dwc2_qh); + /** * struct dwc2_hsotg - Holds the state of the driver, including the non-periodic * and periodic schedules @@ -441,13 +441,13 @@ struct dwc2_hsotg { } b; } flags; - struct list_head non_periodic_sched_inactive; - struct list_head non_periodic_sched_active; - struct list_head *non_periodic_qh_ptr; - struct list_head periodic_sched_inactive; - struct list_head periodic_sched_ready; - struct list_head periodic_sched_assigned; - struct list_head periodic_sched_queued; + struct dwc2_qh_list non_periodic_sched_inactive; + struct dwc2_qh_list non_periodic_sched_active; + struct dwc2_qh *non_periodic_qh_ptr; + struct dwc2_qh_list periodic_sched_inactive; + struct dwc2_qh_list periodic_sched_ready; + struct dwc2_qh_list periodic_sched_assigned; + struct dwc2_qh_list periodic_sched_queued; u16 periodic_usecs; u16 frame_usecs[8]; u16 frame_number; @@ -462,7 +462,7 @@ struct dwc2_hsotg { int dumped_frame_num_array; #endif - struct list_head free_hc_list; + LIST_HEAD(, dwc2_host_chan) free_hc_list; int periodic_channels; int non_periodic_channels; int available_host_channels; |