From f146680146bfa723548c6c828315c10ee8e72b70 Mon Sep 17 00:00:00 2001 From: Noe Rubinstein Date: Fri, 3 Dec 2010 23:12:40 +0100 Subject: add eyecandy macro --- xhfc/xhfc.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xhfc/xhfc.h b/xhfc/xhfc.h index 4e17d03..f6c525a 100644 --- a/xhfc/xhfc.h +++ b/xhfc/xhfc.h @@ -153,7 +153,8 @@ struct xhfc_pi { #endif }; -#define dchan_fifo(span) (span->port * 4 + 2) +#define dchan_fifo(span) ((span)->port * 4 + 2) +#define portno(span) ((span)->port + 1) void xhfc_flush_fifo(struct xhfc* x, int fifo); int xhfc_hdlc_init(struct xhfc* x); -- cgit v1.2.3