diff options
author | Noe Rubinstein <nrubinstein@proformatique.com> | 2010-12-03 23:12:40 +0100 |
---|---|---|
committer | Noe Rubinstein <nrubinstein@proformatique.com> | 2010-12-03 23:12:40 +0100 |
commit | f146680146bfa723548c6c828315c10ee8e72b70 (patch) | |
tree | 55e6e2be89c53a049967f031f3c05346f6a163ea | |
parent | b5c84073d4b91d07597f77dd85d5892125506dfc (diff) |
add eyecandy macro
-rw-r--r-- | xhfc/xhfc.h | 3 |
1 files changed, 2 insertions, 1 deletions
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); |