I need to #define a macros as a function. For example:
#define REGISTER 0x80000000
...
writel(addr, nic->regs + REGISTER); // arguments are address and register
I defined it like that:
#define WRITEL(addr, nic->reg + reg) ((writel(addr, nic->regs + (reg))))
What's wrong here? Thanks