Changeset b0e83e12 in rtems


Ignore:
Timestamp:
Apr 30, 2014, 8:13:07 AM (5 years ago)
Author:
Ralf Kirchner <ralf.kirchner@…>
Branches:
4.11, master
Children:
1461b648
Parents:
64bc102
git-author:
Ralf Kirchner <ralf.kirchner@…> (04/30/14 08:13:07)
git-committer:
Sebastian Huber <sebastian.huber@…> (04/30/14 12:53:17)
Message:

libchip: Add asserts to dwmac driver

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/network/dwmac.c

    r64bc102 rb0e83e12  
    20252025    self->csr_clock = DWCGNAC3504_CSR_250_300M;
    20262026  } else {
     2027    assert( gmii_clk_rate < DWCGNAC3504_CSR_F_300M );
    20272028    eno = EINVAL;
    20282029  }
     
    21122113    self->dma_threshold_control = DWMAC_DMA_THRESHOLD_CONTROL_DEFAULT;
    21132114
     2115    assert( driver_config->addr_gmac_regs != NULL );
    21142116    if ( driver_config->addr_gmac_regs != NULL ) {
    21152117      self->macgrp = driver_config->addr_gmac_regs;
    21162118
     2119      assert( driver_config->addr_dma_regs != NULL );
    21172120      if ( driver_config->addr_dma_regs != NULL ) {
    21182121        self->dmagrp = driver_config->addr_dma_regs;
Note: See TracChangeset for help on using the changeset viewer.