@@ -101,6 +101,12 @@ typedef struct _drmMMListHead
(__item) = DRMLISTENTRY(typeof(*__item), \
(__item)->__head.next, __head))
+#define DRMLISTFOREACHENTRYREVERSE(__item, __list, __head) \
+ for ((__item) = DRMLISTENTRY(typeof(*__item), (__list)->prev, __head); \
+ &(__item)->__head != (__list); \
+ (__item) = DRMLISTENTRY(typeof(*__item), \
+ (__item)->__head.prev, __head))
+
#define DRMLISTFOREACHENTRYSAFE(__item, __temp, __list, __head) \
for ((__item) = DRMLISTENTRY(typeof(*__item), (__list)->next, __head), \
(__temp) = DRMLISTENTRY(typeof(*__item), \