cvs commit: src/sys/pci if_dc.c if_dcreg.h

Marius Strobl marius at FreeBSD.org
Mon Nov 13 17:33:18 UTC 2006


marius      2006-11-13 17:24:24 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    sys/pci              if_dc.c if_dcreg.h 
  Log:
  MFC: sys/dev/dc/if_dc.c 1.185, 1.186 (partial); sys/dev/dc/if_dcreg.h 1.52
  
  - Consistently use if_printf() only in interface methods: if_start(),
    if_watchdog, etc., or in functions used only in these methods.
    In all other functions in the driver use device_printf().
  - Use __func__ instead of typing function name.
  - Wrap code optimized for architectures without alignment constraints
    in #ifdef __NO_STRICT_ALIGNMENT rather than #ifdef __i386__. This
    means that amd64 now also uses the optimized code.
    While at it, fix a nearby style(9) bug.
  - In dc_setcfg() suppress printing a warning when forcing the receiver
    and transceiver to idle state times out for chips where the status
    bits in question just never change (observed in detail with DM9102A)
    and therefore the warning would be highly likely false positive.
  - In dc_ifmedia_sts() add a missing DC_UNLOCK().
  
  Approved by:    re (kensmith)
  
  Revision    Changes    Path
  1.160.2.12  +28 -16    src/sys/pci/if_dc.c
  1.44.2.5    +1 -0      src/sys/pci/if_dcreg.h


More information about the cvs-src mailing list