[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

stop function in net driver



hello:
      i read the netcard DEC21140 driver recently, i noticed
that dec21140_stop( ) is called in the dec21140_ioctrl( ) function. But
rtems doesn't tell what to do in the stop( ) function.
     Anyone can give some information ?

     here is the code for dec21140_stop ( )

static void
dec21140_stop (struct dec21140_softc *sc)
{
  volatile unsigned int *tbase;
  struct ifnet *ifp = &sc->arpcom.ac_if;

  ifp->if_flags &= ~IFF_RUNNING;

  /*
   * Stop the transmitter
   */
  tbase = sc->base;
  st_le32( (tbase+memCSR7), NO_IT);
  st_le32( (tbase+memCSR6), CSR6_INIT);

  /*  free((void*)sc->bufferBase); */
}


   Best wishes!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rtems.rtems.org/pipermail/rtems-users/attachments/20071205/70e160fa/attachment.html