summaryrefslogtreecommitdiffstats
path: root/sys/dev/tsec/if_tsec.h
diff options
context:
space:
mode:
authorraj <raj@FreeBSD.org>2009-02-17 14:59:47 +0000
committerraj <raj@FreeBSD.org>2009-02-17 14:59:47 +0000
commitfbfe9d5998e0c33fb0b816846504c03461b5cb56 (patch)
treeb2941f3512b46b158b4987cd445b512b5c48053c /sys/dev/tsec/if_tsec.h
parentfe8e0abcf53c6335cdb09c1bf1bd11c6b3fcb8df (diff)
downloadFreeBSD-src-fbfe9d5998e0c33fb0b816846504c03461b5cb56.zip
FreeBSD-src-fbfe9d5998e0c33fb0b816846504c03461b5cb56.tar.gz
tsec(4) style improvements and clean-up.
Diffstat (limited to 'sys/dev/tsec/if_tsec.h')
-rw-r--r--sys/dev/tsec/if_tsec.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/tsec/if_tsec.h b/sys/dev/tsec/if_tsec.h
index 143b3d0..55b1e4f 100644
--- a/sys/dev/tsec/if_tsec.h
+++ b/sys/dev/tsec/if_tsec.h
@@ -141,11 +141,11 @@ struct tsec_softc {
#define TSEC_PUT_GENERIC(hand, tab, count, wrap, val) \
((hand)->tab[TSEC_INC((hand)->count, wrap)] = val)
-#define TSEC_BACK_GENERIC(sc, count, wrap) do { \
- if ((sc)->count > 0) \
- (sc)->count--; \
- else \
- (sc)->count = (wrap) - 1; \
+#define TSEC_BACK_GENERIC(sc, count, wrap) do { \
+ if ((sc)->count > 0) \
+ (sc)->count--; \
+ else \
+ (sc)->count = (wrap) - 1; \
} while (0)
/* TX maps interface */
@@ -197,12 +197,12 @@ struct tsec_softc {
TSEC_CNT_INIT((sc)->tx_dirty_desc_cnt, TSEC_TX_NUM_DESC); \
} while (0)
-#define TSEC_GET_CUR_TX_DESC(sc) \
- &TSEC_GET_GENERIC(sc, tsec_tx_vaddr, tx_cur_desc_cnt, \
+#define TSEC_GET_CUR_TX_DESC(sc) \
+ &TSEC_GET_GENERIC(sc, tsec_tx_vaddr, tx_cur_desc_cnt, \
TSEC_TX_NUM_DESC)
-#define TSEC_GET_DIRTY_TX_DESC(sc) \
- &TSEC_GET_GENERIC(sc, tsec_tx_vaddr, tx_dirty_desc_cnt, \
+#define TSEC_GET_DIRTY_TX_DESC(sc) \
+ &TSEC_GET_GENERIC(sc, tsec_tx_vaddr, tx_dirty_desc_cnt, \
TSEC_TX_NUM_DESC)
#define TSEC_BACK_DIRTY_TX_DESC(sc) \
@@ -366,4 +366,4 @@ int tsec_suspend(device_t dev); /* XXX */
void tsec_get_hwaddr(struct tsec_softc *sc, uint8_t *addr);
-#endif
+#endif /* _IF_TSEC_H */
OpenPOWER on IntegriCloud