Ignore:
Timestamp:
Mar 10, 2015, 3:14:52 PM (9 years ago)
Author:
alain
Message:

Introducing in the stdio.c / stdio.h files the system calls
related to the hardware coprocessors configuration and use.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_libs/mwmr_channel.h

    r479 r521  
    3232///////////////////////////////////////////////////////////////////////////////////
    3333//  MWMR channel structure
    34 // The data buffer size is defined to obtain sizeof(mwmr_channel_t) = 4096 bytes.
    35 // The actual buffer size cannot be larger than 4072 bytes (1018 words).
    3634///////////////////////////////////////////////////////////////////////////////////
    3735
    3836typedef struct mwmr_channel_s
    3937{
    40     user_lock_t    lock;       // exclusive access lock
    41     unsigned int   ptr;        // index of the first valid data word
    42     unsigned int   ptw;        // index of the first empty slot
    43     unsigned int   sts;        // number of words available
    44     unsigned int   depth;      // max number of words in the channel
    45     unsigned int   width;      // number of words in an item     
    46     unsigned int*  data;       // circular buffer base address
     38    user_lock_t    lock;         // exclusive access lock
     39    unsigned int   sts;          // number of words available
     40    unsigned int   ptr;          // index of the first valid data word
     41    unsigned int   ptw;          // index of the first empty slot
     42    unsigned int   depth;        // max number of words in the channel
     43    unsigned int   width;        // number of words in an item     
     44    unsigned int*  data;         // circular buffer base address
     45    unsigned int   padding[10];  // for 64 bytes alignment
    4746} mwmr_channel_t;
    4847
Note: See TracChangeset for help on using the changeset viewer.