Module Name: src Committed By: jruoho Date: Tue Mar 2 06:52:53 UTC 2010
Modified Files: src/share/man/man3: bits.3 Log Message: Remove some /* comments */ in the example so that it will nicely fit into 80 columns. To generate a diff of this commit: cvs rdiff -u -r1.4 -r1.5 src/share/man/man3/bits.3 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/man/man3/bits.3 diff -u src/share/man/man3/bits.3:1.4 src/share/man/man3/bits.3:1.5 --- src/share/man/man3/bits.3:1.4 Mon Oct 19 23:19:38 2009 +++ src/share/man/man3/bits.3 Tue Mar 2 06:52:53 2010 @@ -1,4 +1,4 @@ -.\" $NetBSD: bits.3,v 1.4 2009/10/19 23:19:38 rmind Exp $ +.\" $NetBSD: bits.3,v 1.5 2010/03/02 06:52:53 jruoho Exp $ .\" .\" Copyright (c) 2006 David Young. All rights reserved. .\" @@ -109,9 +109,9 @@ /* * Register definitions taken from the RFMD RF3000 manual. */ -#define RF3000_GAINCTL 0x11 /* TX variable gain control */ -#define RF3000_GAINCTL_TXVGC_MASK __BITS(7, 2) -#define RF3000_GAINCTL_SCRAMBLER __BIT(1) +#define RF3000_GAINCTL 0x11 +#define RF3000_GAINCTL_TXVGC_MASK __BITS(7, 2) +#define RF3000_GAINCTL_SCRAMBLER __BIT(1) /* * Shift the transmit power into the transmit-power field of the @@ -122,19 +122,18 @@ /* * Register definitions taken from the ADMtek ADM8211 manual. - * */ -#define ATW_RXSTAT_OWN __BIT(31) /* 1: NIC may fill descriptor */ +#define ATW_RXSTAT_OWN __BIT(31) + /* ... */ -#define ATW_RXSTAT_DA1 __BIT(17) /* DA bit 1, admin'd address */ -#define ATW_RXSTAT_DA0 __BIT(16) /* DA bit 0, group address */ -#define ATW_RXSTAT_RXDR_MASK __BITS(15,12) /* RX data rate */ -#define ATW_RXSTAT_FL_MASK __BITS(11,0) /* RX frame length, last - * descriptor only - */ -/* Extract the frame length from the Rx descriptor's - * status field. +#define ATW_RXSTAT_DA1 __BIT(17) +#define ATW_RXSTAT_DA0 __BIT(16) +#define ATW_RXSTAT_RXDR_MASK __BITS(15,12) +#define ATW_RXSTAT_FL_MASK __BITS(11,0) + +/* + * Extract the frame length from the Rx descriptor's status field. */ len = __SHIFTOUT(rxstat, ATW_RXSTAT_FL_MASK); .Ed