Ignore:
Timestamp:
Jan 1, 2015, 8:23:48 PM (9 years ago)
Author:
alain
Message:

1) The NIC, IOC, DMA and HBA drivers have been adapted to support the new _v2p_translate() function prototype (returns void).
2) The _mmc_inval() and _mmc_sync() functions does not use anymore the hard lock in the MMC, but use a soft spin_lock.
3) The NIC driver does not use anymore the GIET_NIC_BUFSIZE, GIET_NIC_NBUFS, and GIET_NIC_TIMEOUT parameters (removed from giet_config.h file).
4) The NIC driver registers map has been modified to support 64 bytes buffer descriptors for chained buffers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/nic_driver.h

    r456 r481  
    7676};
    7777
    78 /////////////////////////////////////////////////////////////////////////////////////
     78//////////////////////////////////////////////////////////////////////////////////////////////
    7979//            Channel Addressable Registers
    80 // A container descriptor has the following form:
    81 // LOW WORD  : 32 LSB bits of the container physical base address     
    82 // HIGH WORD : 16 MSB bits of the container physical base address + status (bit 31) 
    83 /////////////////////////////////////////////////////////////////////////////////////
     80// A buffer descriptor occupies 64 bytes, but only 8 bytes (two 32 bits words) are useful:
     81// LOW WORD   contains the 32 LSB bits of the buffer paddr               
     82// HIGH WORD  contains the 16 MSB bits of the buffer paddr, plus status (bit 31)
     83//////////////////////////////////////////////////////////////////////////////////////////////
     84
    8485enum SoclibMultiNicChannelRegisters
    8586{
    8687    NIC_RX_DESC_LO_0          = 0,   // RX_0 descriptor low word         (Read/Write)
    8788    NIC_RX_DESC_HI_0          = 1,   // RX_0 descriptor high word        (Read/Write)
    88     NIC_RX_DESC_LO_1          = 2,   // RX_1 descriptor low word         (Read/Write)
    89     NIC_RX_DESC_HI_1          = 3,   // RX_1 descriptor high word        (Read/Write)
    90     NIC_TX_DESC_LO_0          = 4,   // TX_0 descriptor low word         (Read/Write)
    91     NIC_TX_DESC_HI_0          = 5,   // TX_0 descriptor high word        (Read/Write)
    92     NIC_TX_DESC_LO_1          = 6,   // TX_1 descriptor low word         (Read/Write)
    93     NIC_TX_DESC_HI_1          = 7,   // TX_1 descriptor high word        (Read/Write)
    94     NIC_MAC_4                 = 8,   // channel mac address 32 LSB bits  (Read Only)
    95     NIC_MAC_2                 = 9,   // channel mac address 16 LSB bits  (Read Only)
    96     NIC_RX_RUN                = 10,  // RX packets can be received       (write_only)
    97     NIC_TX_RUN                = 11,  // TX packets can be transmitted    (write_only)
     89    NIC_RX_DESC_LO_1          = 16,  // RX_1 descriptor low word         (Read/Write)
     90    NIC_RX_DESC_HI_1          = 17,  // RX_1 descriptor high word        (Read/Write)
     91    NIC_TX_DESC_LO_0          = 32,  // TX_0 descriptor low word         (Read/Write)
     92    NIC_TX_DESC_HI_0          = 33,  // TX_0 descriptor high word        (Read/Write)
     93    NIC_TX_DESC_LO_1          = 48,  // TX_1 descriptor low word         (Read/Write)
     94    NIC_TX_DESC_HI_1          = 49,  // TX_1 descriptor high word        (Read/Write)
     95    NIC_MAC_4                 = 64,  // channel mac address 32 LSB bits  (Read Only)
     96    NIC_MAC_2                 = 65,  // channel mac address 16 LSB bits  (Read Only)
     97    NIC_RX_RUN                = 66,  // RX packets can be received       (write_only)
     98    NIC_TX_RUN                = 67,  // TX packets can be transmitted    (write_only)
    9899};
    99100
Note: See TracChangeset for help on using the changeset viewer.