summaryrefslogtreecommitdiffstats
path: root/sys/dev/cxgbe/osdep.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/cxgbe/osdep.h')
-rw-r--r--sys/dev/cxgbe/osdep.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/cxgbe/osdep.h b/sys/dev/cxgbe/osdep.h
index 438a434..bde1eb4 100644
--- a/sys/dev/cxgbe/osdep.h
+++ b/sys/dev/cxgbe/osdep.h
@@ -82,6 +82,7 @@ typedef boolean_t bool;
#define DIV_ROUND_UP(x, y) howmany(x, y)
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
+#define container_of(p, s, f) ((s *)(((uint8_t *)(p)) - offsetof(s, f)))
#define swab16(x) bswap16(x)
#define swab32(x) bswap32(x)
OpenPOWER on IntegriCloud