-/* $OpenBSD: drm_linux_list.h,v 1.7 2017/07/01 16:14:10 kettenis Exp $ */
+/* $OpenBSD: drm_linux_list.h,v 1.8 2018/01/31 04:35:38 jsg Exp $ */
/* drm_linux_list.h -- linux list functions for the BSDs.
* Created: Mon Apr 7 14:30:16 1999 by anholt@FreeBSD.org
*/
#define list_next_entry(pos, member) \
list_entry(((pos)->member.next), typeof(*(pos)), member)
+#define list_prev_entry(pos, member) \
+ list_entry(((pos)->member.prev), typeof(*(pos)), member)
+
#define list_for_each(entry, head) \
for (entry = (head)->next; entry != head; entry = (entry)->next)