aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ipg.h
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2007-11-30 02:53:33 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:05:49 -0500
commit4602e665ff45e0af4cc64a6caf4c872f18d14148 (patch)
treeb01adf0a7a7c63def9065748cbf0bf98ae0e7dff /drivers/net/ipg.h
parent9305a775210030a09f2e373e72920573770a37de (diff)
ipg: remove boolean macros
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Cc: Francois Romieu <romieu@fr.zoreil.com> Cc: Sorbica Shieh <sorbica@icplus.com.tw> Cc: Jesse Huang <jesse@icplus.com.tw>
Diffstat (limited to 'drivers/net/ipg.h')
-rw-r--r--drivers/net/ipg.h18
1 files changed, 7 insertions, 11 deletions
diff --git a/drivers/net/ipg.h b/drivers/net/ipg.h
index 7bbb13146603..017727f7d7b0 100644
--- a/drivers/net/ipg.h
+++ b/drivers/net/ipg.h
@@ -478,38 +478,34 @@ enum ipg_regs {
478 * Tune 478 * Tune
479 */ 479 */
480 480
481/* Miscellaneous Constants. */
482#define TRUE 1
483#define FALSE 0
484
485/* Assign IPG_APPEND_FCS_ON_TX > 0 for auto FCS append on TX. */ 481/* Assign IPG_APPEND_FCS_ON_TX > 0 for auto FCS append on TX. */
486#define IPG_APPEND_FCS_ON_TX TRUE 482#define IPG_APPEND_FCS_ON_TX 1
487 483
488/* Assign IPG_APPEND_FCS_ON_TX > 0 for auto FCS strip on RX. */ 484/* Assign IPG_APPEND_FCS_ON_TX > 0 for auto FCS strip on RX. */
489#define IPG_STRIP_FCS_ON_RX TRUE 485#define IPG_STRIP_FCS_ON_RX 1
490 486
491/* Assign IPG_DROP_ON_RX_ETH_ERRORS > 0 to drop RX frames with 487/* Assign IPG_DROP_ON_RX_ETH_ERRORS > 0 to drop RX frames with
492 * Ethernet errors. 488 * Ethernet errors.
493 */ 489 */
494#define IPG_DROP_ON_RX_ETH_ERRORS TRUE 490#define IPG_DROP_ON_RX_ETH_ERRORS 1
495 491
496/* Assign IPG_INSERT_MANUAL_VLAN_TAG > 0 to insert VLAN tags manually 492/* Assign IPG_INSERT_MANUAL_VLAN_TAG > 0 to insert VLAN tags manually
497 * (via TFC). 493 * (via TFC).
498 */ 494 */
499#define IPG_INSERT_MANUAL_VLAN_TAG FALSE 495#define IPG_INSERT_MANUAL_VLAN_TAG 0
500 496
501/* Assign IPG_ADD_IPCHECKSUM_ON_TX > 0 for auto IP checksum on TX. */ 497/* Assign IPG_ADD_IPCHECKSUM_ON_TX > 0 for auto IP checksum on TX. */
502#define IPG_ADD_IPCHECKSUM_ON_TX FALSE 498#define IPG_ADD_IPCHECKSUM_ON_TX 0
503 499
504/* Assign IPG_ADD_TCPCHECKSUM_ON_TX > 0 for auto TCP checksum on TX. 500/* Assign IPG_ADD_TCPCHECKSUM_ON_TX > 0 for auto TCP checksum on TX.
505 * DO NOT USE FOR SILICON REVISIONS B3 AND EARLIER. 501 * DO NOT USE FOR SILICON REVISIONS B3 AND EARLIER.
506 */ 502 */
507#define IPG_ADD_TCPCHECKSUM_ON_TX FALSE 503#define IPG_ADD_TCPCHECKSUM_ON_TX 0
508 504
509/* Assign IPG_ADD_UDPCHECKSUM_ON_TX > 0 for auto UDP checksum on TX. 505/* Assign IPG_ADD_UDPCHECKSUM_ON_TX > 0 for auto UDP checksum on TX.
510 * DO NOT USE FOR SILICON REVISIONS B3 AND EARLIER. 506 * DO NOT USE FOR SILICON REVISIONS B3 AND EARLIER.
511 */ 507 */
512#define IPG_ADD_UDPCHECKSUM_ON_TX FALSE 508#define IPG_ADD_UDPCHECKSUM_ON_TX 0
513 509
514/* If inserting VLAN tags manually, assign the IPG_MANUAL_VLAN_xx 510/* If inserting VLAN tags manually, assign the IPG_MANUAL_VLAN_xx
515 * constants as desired. 511 * constants as desired.