Ignore:
Timestamp:
Mar 29, 2015, 2:22:06 PM (9 years ago)
Author:
alain
Message:

Simplify the Command Table C structure: only one physical buffer per command.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/hba_driver.c

    r529 r540  
    3636// command list : up to 32 commands
    3737__attribute__((section(".kdata")))
    38 hba_cmd_desc_t  _hba_cmd_list[32] __attribute__((aligned(0x1000)));   
     38hba_cmd_desc_t  _hba_cmd_list[32] __attribute__((aligned(0x10)));   
    3939
    4040// command tables array : one command table per entry in command list
     
    124124
    125125    // set  buffer descriptor in command table
    126     cmd_table->entry[0].dba  = (unsigned int)(buf_paddr);
    127     cmd_table->entry[0].dbau = (unsigned int)(buf_paddr >> 32);
    128     cmd_table->entry[0].dbc  = count * 512;
     126    cmd_table->buffer.dba  = (unsigned int)(buf_paddr);
     127    cmd_table->buffer.dbau = (unsigned int)(buf_paddr >> 32);
     128    cmd_table->buffer.dbc  = count * 512;
    129129
    130130    // initialize command table header
Note: See TracChangeset for help on using the changeset viewer.