diff options
author | Ben Hutchings <bhutchings@solarflare.com> | 2008-09-01 07:48:41 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2008-09-03 09:53:48 -0400 |
commit | c1e5fcc980b7b2185b29e4f9f0d8266806ada9eb (patch) | |
tree | e942c9d1280c694a71d4837563b2a6c9f1e91fb8 /drivers/net/sfc/falcon_hwdefs.h | |
parent | 01aad7b6ffcc07544e7bdf472fbde4e6eb36a610 (diff) |
sfc: Remove remnants of multi-port abstraction for MAC registers
Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'drivers/net/sfc/falcon_hwdefs.h')
-rw-r--r-- | drivers/net/sfc/falcon_hwdefs.h | 40 |
1 files changed, 15 insertions, 25 deletions
diff --git a/drivers/net/sfc/falcon_hwdefs.h b/drivers/net/sfc/falcon_hwdefs.h index 626735e73429..7c784f71f185 100644 --- a/drivers/net/sfc/falcon_hwdefs.h +++ b/drivers/net/sfc/falcon_hwdefs.h | |||
@@ -493,18 +493,8 @@ | |||
493 | #define MAC_MCAST_HASH_REG0_KER 0xca0 | 493 | #define MAC_MCAST_HASH_REG0_KER 0xca0 |
494 | #define MAC_MCAST_HASH_REG1_KER 0xcb0 | 494 | #define MAC_MCAST_HASH_REG1_KER 0xcb0 |
495 | 495 | ||
496 | /* GMAC registers */ | ||
497 | #define FALCON_GMAC_REGBANK 0xe00 | ||
498 | #define FALCON_GMAC_REGBANK_SIZE 0x200 | ||
499 | #define FALCON_GMAC_REG_SIZE 0x10 | ||
500 | |||
501 | /* XMAC registers */ | ||
502 | #define FALCON_XMAC_REGBANK 0x1200 | ||
503 | #define FALCON_XMAC_REGBANK_SIZE 0x200 | ||
504 | #define FALCON_XMAC_REG_SIZE 0x10 | ||
505 | |||
506 | /* XGMAC address register low */ | 496 | /* XGMAC address register low */ |
507 | #define XM_ADR_LO_REG_MAC 0x00 | 497 | #define XM_ADR_LO_REG 0x1200 |
508 | #define XM_ADR_3_LBN 24 | 498 | #define XM_ADR_3_LBN 24 |
509 | #define XM_ADR_3_WIDTH 8 | 499 | #define XM_ADR_3_WIDTH 8 |
510 | #define XM_ADR_2_LBN 16 | 500 | #define XM_ADR_2_LBN 16 |
@@ -515,14 +505,14 @@ | |||
515 | #define XM_ADR_0_WIDTH 8 | 505 | #define XM_ADR_0_WIDTH 8 |
516 | 506 | ||
517 | /* XGMAC address register high */ | 507 | /* XGMAC address register high */ |
518 | #define XM_ADR_HI_REG_MAC 0x01 | 508 | #define XM_ADR_HI_REG 0x1210 |
519 | #define XM_ADR_5_LBN 8 | 509 | #define XM_ADR_5_LBN 8 |
520 | #define XM_ADR_5_WIDTH 8 | 510 | #define XM_ADR_5_WIDTH 8 |
521 | #define XM_ADR_4_LBN 0 | 511 | #define XM_ADR_4_LBN 0 |
522 | #define XM_ADR_4_WIDTH 8 | 512 | #define XM_ADR_4_WIDTH 8 |
523 | 513 | ||
524 | /* XGMAC global configuration */ | 514 | /* XGMAC global configuration */ |
525 | #define XM_GLB_CFG_REG_MAC 0x02 | 515 | #define XM_GLB_CFG_REG 0x1220 |
526 | #define XM_RX_STAT_EN_LBN 11 | 516 | #define XM_RX_STAT_EN_LBN 11 |
527 | #define XM_RX_STAT_EN_WIDTH 1 | 517 | #define XM_RX_STAT_EN_WIDTH 1 |
528 | #define XM_TX_STAT_EN_LBN 10 | 518 | #define XM_TX_STAT_EN_LBN 10 |
@@ -535,7 +525,7 @@ | |||
535 | #define XM_CORE_RST_WIDTH 1 | 525 | #define XM_CORE_RST_WIDTH 1 |
536 | 526 | ||
537 | /* XGMAC transmit configuration */ | 527 | /* XGMAC transmit configuration */ |
538 | #define XM_TX_CFG_REG_MAC 0x03 | 528 | #define XM_TX_CFG_REG 0x1230 |
539 | #define XM_IPG_LBN 16 | 529 | #define XM_IPG_LBN 16 |
540 | #define XM_IPG_WIDTH 4 | 530 | #define XM_IPG_WIDTH 4 |
541 | #define XM_FCNTL_LBN 10 | 531 | #define XM_FCNTL_LBN 10 |
@@ -550,7 +540,7 @@ | |||
550 | #define XM_TXEN_WIDTH 1 | 540 | #define XM_TXEN_WIDTH 1 |
551 | 541 | ||
552 | /* XGMAC receive configuration */ | 542 | /* XGMAC receive configuration */ |
553 | #define XM_RX_CFG_REG_MAC 0x04 | 543 | #define XM_RX_CFG_REG 0x1240 |
554 | #define XM_PASS_CRC_ERR_LBN 25 | 544 | #define XM_PASS_CRC_ERR_LBN 25 |
555 | #define XM_PASS_CRC_ERR_WIDTH 1 | 545 | #define XM_PASS_CRC_ERR_WIDTH 1 |
556 | #define XM_ACPT_ALL_MCAST_LBN 11 | 546 | #define XM_ACPT_ALL_MCAST_LBN 11 |
@@ -563,7 +553,7 @@ | |||
563 | #define XM_RXEN_WIDTH 1 | 553 | #define XM_RXEN_WIDTH 1 |
564 | 554 | ||
565 | /* XGMAC management interrupt mask register */ | 555 | /* XGMAC management interrupt mask register */ |
566 | #define XM_MGT_INT_MSK_REG_MAC_B0 0x5 | 556 | #define XM_MGT_INT_MSK_REG_B0 0x1250 |
567 | #define XM_MSK_PRMBLE_ERR_LBN 2 | 557 | #define XM_MSK_PRMBLE_ERR_LBN 2 |
568 | #define XM_MSK_PRMBLE_ERR_WIDTH 1 | 558 | #define XM_MSK_PRMBLE_ERR_WIDTH 1 |
569 | #define XM_MSK_RMTFLT_LBN 1 | 559 | #define XM_MSK_RMTFLT_LBN 1 |
@@ -572,29 +562,29 @@ | |||
572 | #define XM_MSK_LCLFLT_WIDTH 1 | 562 | #define XM_MSK_LCLFLT_WIDTH 1 |
573 | 563 | ||
574 | /* XGMAC flow control register */ | 564 | /* XGMAC flow control register */ |
575 | #define XM_FC_REG_MAC 0x7 | 565 | #define XM_FC_REG 0x1270 |
576 | #define XM_PAUSE_TIME_LBN 16 | 566 | #define XM_PAUSE_TIME_LBN 16 |
577 | #define XM_PAUSE_TIME_WIDTH 16 | 567 | #define XM_PAUSE_TIME_WIDTH 16 |
578 | #define XM_DIS_FCNTL_LBN 0 | 568 | #define XM_DIS_FCNTL_LBN 0 |
579 | #define XM_DIS_FCNTL_WIDTH 1 | 569 | #define XM_DIS_FCNTL_WIDTH 1 |
580 | 570 | ||
581 | /* XGMAC pause time count register */ | 571 | /* XGMAC pause time count register */ |
582 | #define XM_PAUSE_TIME_REG_MAC 0x9 | 572 | #define XM_PAUSE_TIME_REG 0x1290 |
583 | 573 | ||
584 | /* XGMAC transmit parameter register */ | 574 | /* XGMAC transmit parameter register */ |
585 | #define XM_TX_PARAM_REG_MAC 0x0d | 575 | #define XM_TX_PARAM_REG 0x012d0 |
586 | #define XM_TX_JUMBO_MODE_LBN 31 | 576 | #define XM_TX_JUMBO_MODE_LBN 31 |
587 | #define XM_TX_JUMBO_MODE_WIDTH 1 | 577 | #define XM_TX_JUMBO_MODE_WIDTH 1 |
588 | #define XM_MAX_TX_FRM_SIZE_LBN 16 | 578 | #define XM_MAX_TX_FRM_SIZE_LBN 16 |
589 | #define XM_MAX_TX_FRM_SIZE_WIDTH 14 | 579 | #define XM_MAX_TX_FRM_SIZE_WIDTH 14 |
590 | 580 | ||
591 | /* XGMAC receive parameter register */ | 581 | /* XGMAC receive parameter register */ |
592 | #define XM_RX_PARAM_REG_MAC 0x0e | 582 | #define XM_RX_PARAM_REG 0x12e0 |
593 | #define XM_MAX_RX_FRM_SIZE_LBN 0 | 583 | #define XM_MAX_RX_FRM_SIZE_LBN 0 |
594 | #define XM_MAX_RX_FRM_SIZE_WIDTH 14 | 584 | #define XM_MAX_RX_FRM_SIZE_WIDTH 14 |
595 | 585 | ||
596 | /* XGMAC management interrupt status register */ | 586 | /* XGMAC management interrupt status register */ |
597 | #define XM_MGT_INT_REG_MAC_B0 0x0f | 587 | #define XM_MGT_INT_REG_B0 0x12f0 |
598 | #define XM_PRMBLE_ERR 2 | 588 | #define XM_PRMBLE_ERR 2 |
599 | #define XM_PRMBLE_WIDTH 1 | 589 | #define XM_PRMBLE_WIDTH 1 |
600 | #define XM_RMTFLT_LBN 1 | 590 | #define XM_RMTFLT_LBN 1 |
@@ -603,7 +593,7 @@ | |||
603 | #define XM_LCLFLT_WIDTH 1 | 593 | #define XM_LCLFLT_WIDTH 1 |
604 | 594 | ||
605 | /* XGXS/XAUI powerdown/reset register */ | 595 | /* XGXS/XAUI powerdown/reset register */ |
606 | #define XX_PWR_RST_REG_MAC 0x10 | 596 | #define XX_PWR_RST_REG 0x1300 |
607 | 597 | ||
608 | #define XX_PWRDND_EN_LBN 15 | 598 | #define XX_PWRDND_EN_LBN 15 |
609 | #define XX_PWRDND_EN_WIDTH 1 | 599 | #define XX_PWRDND_EN_WIDTH 1 |
@@ -633,7 +623,7 @@ | |||
633 | #define XX_RST_XX_EN_WIDTH 1 | 623 | #define XX_RST_XX_EN_WIDTH 1 |
634 | 624 | ||
635 | /* XGXS/XAUI powerdown/reset control register */ | 625 | /* XGXS/XAUI powerdown/reset control register */ |
636 | #define XX_SD_CTL_REG_MAC 0x11 | 626 | #define XX_SD_CTL_REG 0x1310 |
637 | #define XX_HIDRVD_LBN 15 | 627 | #define XX_HIDRVD_LBN 15 |
638 | #define XX_HIDRVD_WIDTH 1 | 628 | #define XX_HIDRVD_WIDTH 1 |
639 | #define XX_LODRVD_LBN 14 | 629 | #define XX_LODRVD_LBN 14 |
@@ -659,7 +649,7 @@ | |||
659 | #define XX_LPBKA_LBN 0 | 649 | #define XX_LPBKA_LBN 0 |
660 | #define XX_LPBKA_WIDTH 1 | 650 | #define XX_LPBKA_WIDTH 1 |
661 | 651 | ||
662 | #define XX_TXDRV_CTL_REG_MAC 0x12 | 652 | #define XX_TXDRV_CTL_REG 0x1320 |
663 | #define XX_DEQD_LBN 28 | 653 | #define XX_DEQD_LBN 28 |
664 | #define XX_DEQD_WIDTH 4 | 654 | #define XX_DEQD_WIDTH 4 |
665 | #define XX_DEQC_LBN 24 | 655 | #define XX_DEQC_LBN 24 |
@@ -678,7 +668,7 @@ | |||
678 | #define XX_DTXA_WIDTH 4 | 668 | #define XX_DTXA_WIDTH 4 |
679 | 669 | ||
680 | /* XAUI XGXS core status register */ | 670 | /* XAUI XGXS core status register */ |
681 | #define XX_CORE_STAT_REG_MAC 0x16 | 671 | #define XX_CORE_STAT_REG 0x1360 |
682 | #define XX_FORCE_SIG_LBN 24 | 672 | #define XX_FORCE_SIG_LBN 24 |
683 | #define XX_FORCE_SIG_WIDTH 8 | 673 | #define XX_FORCE_SIG_WIDTH 8 |
684 | #define XX_FORCE_SIG_DECODE_FORCED 0xff | 674 | #define XX_FORCE_SIG_DECODE_FORCED 0xff |