DragonFly commits List (threaded) for 2009-02
DragonFly BSD
DragonFly commits List (threaded) for 2009-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

DragonFly- master sys/dev/netif/sk if_sk.c if_skreg.h if_skvar.h

From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 17 Feb 2009 03:32:10 -0800 (PST)

commit 105b9b5d79f63e546621f9c94767e50cee99df12
Author: Sepherosa Ziehau <sephe@dragonflybsd.org>
Date:   Sat Jan 24 13:56:27 2009 +0800

    sk(4): Rework busdma(9) related bits
    - According to data sheet, sk(4) does support 64bits address space.
      However, the RX/TX descriptors' high 32bits must be same, i.e.
      descriptors' can't spread above and below 4Gbytes boundary.  Since
      sk(4)'s RX/TX descriptors are in contiguous memory, this means we
      only need to make sure that the contiguous memory does not cross
      4Gbytes boundary.
    - RX/TX descriptors' is 8bytes aligned not 64bytes aligned.
    - Split RX/TX descriptor rings.
    - Use bus_dmamem_coherent() to allocate RX/TX descriptor rings.
    - Don't sync coherent memory.

Summary of changes:
 sys/dev/netif/sk/if_sk.c    |  258 +++++++++++++++++++++++--------------------
 sys/dev/netif/sk/if_skreg.h |   12 ++-
 sys/dev/netif/sk/if_skvar.h |   25 +++--
 3 files changed, 160 insertions(+), 135 deletions(-)


DragonFly BSD source repository

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