Commit a6765644 authored by Alessandro Rubini's avatar Alessandro Rubini

spec-nic.h: add GET_HI32/SET_HI32 to kill warnings

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <rubini@gnudd.com>
parent cabba324
......@@ -52,6 +52,17 @@
/* the various interrupt sources for the VIC */
#define WRN_VIC_MASK_NIC 0x0002
/* This is somehow generic, but I find no better place at this time */
#ifndef SET_HI32
# if BITS_PER_LONG > 32
# define SET_HI32(var, value) ((var) |= (value) << 32)
# define GET_HI32(var) ((var) >> 32)
# else
# define SET_HI32(var, value) ((var) |= 0)
# define GET_HI32(var) 0
# endif
#endif
struct wrn_drvdata {
struct gpio_chip *gc;
struct wrn_dev *wrn;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment