789 /*
790 * nxge_delay
791 *
792 * Delay <seconds> number of seconds.
793 *
794 * Arguments:
795 * nxge
796 * group The group to append to
797 * dc The DMA channel to append
798 *
799 * Notes:
800 * This is a developer-only function.
801 *
802 * Context:
803 * Any domain
804 */
805 void
806 nxge_delay(
807 int seconds)
808 {
809 delay(drv_usectohz(seconds * 1000000));
810 }
811
812 static dmc_reg_name_t rx_names[] = {
813 { "RXDMA_CFIG1", 0 },
814 { "RXDMA_CFIG2", 8 },
815 { "RBR_CFIG_A", 0x10 },
816 { "RBR_CFIG_B", 0x18 },
817 { "RBR_KICK", 0x20 },
818 { "RBR_STAT", 0x28 },
819 { "RBR_HDH", 0x30 },
820 { "RBR_HDL", 0x38 },
821 { "RCRCFIG_A", 0x40 },
822 { "RCRCFIG_B", 0x48 },
823 { "RCRSTAT_A", 0x50 },
824 { "RCRSTAT_B", 0x58 },
825 { "RCRSTAT_C", 0x60 },
826 { "RX_DMA_ENT_MSK", 0x68 },
827 { "RX_DMA_CTL_STAT", 0x70 },
828 { "RCR_FLSH", 0x78 },
829 { "RXMISC", 0x90 },
|
789 /*
790 * nxge_delay
791 *
792 * Delay <seconds> number of seconds.
793 *
794 * Arguments:
795 * nxge
796 * group The group to append to
797 * dc The DMA channel to append
798 *
799 * Notes:
800 * This is a developer-only function.
801 *
802 * Context:
803 * Any domain
804 */
805 void
806 nxge_delay(
807 int seconds)
808 {
809 delay(drv_sectohz(seconds));
810 }
811
812 static dmc_reg_name_t rx_names[] = {
813 { "RXDMA_CFIG1", 0 },
814 { "RXDMA_CFIG2", 8 },
815 { "RBR_CFIG_A", 0x10 },
816 { "RBR_CFIG_B", 0x18 },
817 { "RBR_KICK", 0x20 },
818 { "RBR_STAT", 0x28 },
819 { "RBR_HDH", 0x30 },
820 { "RBR_HDL", 0x38 },
821 { "RCRCFIG_A", 0x40 },
822 { "RCRCFIG_B", 0x48 },
823 { "RCRSTAT_A", 0x50 },
824 { "RCRSTAT_B", 0x58 },
825 { "RCRSTAT_C", 0x60 },
826 { "RX_DMA_ENT_MSK", 0x68 },
827 { "RX_DMA_CTL_STAT", 0x70 },
828 { "RCR_FLSH", 0x78 },
829 { "RXMISC", 0x90 },
|