Ignore:
Timestamp:
Jul 21, 2009, 8:38:04 AM (10 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, master
Children:
68799a2a
Parents:
115971c
Message:

Update for MPC55XX changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libcpu/powerpc/mpc55xx/include/edma.h

    r115971c rd374492  
    2323
    2424#include <stdbool.h>
     25#include <stdint.h>
    2526
    2627#include <rtems.h>
     28#include <rtems/chain.h>
    2729
    2830#ifdef __cplusplus
     
    3032#endif /* __cplusplus */
    3133
    32 #define MPC55XX_EDMA_TCD_DEFAULT { \
    33         .SADDR = 0, \
    34         .SMOD = 0, \
    35         .SSIZE = 0x2, \
    36         .SOFF = 4, \
    37         .DADDR = 0, \
    38         .DMOD = 0, \
    39         .DSIZE = 0x2, \
    40         .DOFF = 4, \
    41         .NBYTES = 0, \
    42         .SLAST = 0, \
    43         .CITER = 1, \
    44         .BITER = 1, \
    45         .MAJORLINKCH = 0, \
    46         .CITERE_LINK = 0, \
    47         .BITERE_LINK = 0, \
    48         .MAJORE_LINK = 0, \
    49         .E_SG = 0, \
    50         .DLAST_SGA = 0, \
    51         .D_REQ = 0, \
    52         .BWC = 0, \
    53         .INT_HALF = 0, \
    54         .INT_MAJ = 0, \
    55         .DONE = 0, \
    56         .ACTIVE = 0, \
    57         .START = 0, \
    58 }
    59 
    60 #define MPC55XX_EDMA_TCD_ALT_DEFAULT { \
    61         .SADDR = 0, \
    62         .SMOD = 0, \
    63         .SSIZE = 2, \
    64         .DMOD = 0, \
    65         .DSIZE = 2, \
    66         .SOFF = 4, \
    67         .NBYTES = 0, \
    68         .SLAST = 0, \
    69         .DADDR = 0, \
    70         .CITERE_LINK = 0, \
    71         .CITERLINKCH = 0, \
    72         .CITER = 0, \
    73         .DOFF = 4, \
    74         .DLAST_SGA = 0, \
    75         .BITERE_LINK = 0, \
    76         .BITERLINKCH = 0, \
    77         .BITER = 0, \
    78         .BWC = 0, \
    79         .MAJORLINKCH = 0, \
    80         .DONE = 0, \
    81         .ACTIVE = 0, \
    82         .MAJORE_LINK = 0, \
    83         .E_SG = 0, \
    84         .D_REQ = 0, \
    85         .INT_HALF = 0, \
    86         .INT_MAJ = 0, \
    87         .START = 0, \
    88 }
     34typedef struct mpc55xx_edma_channel_entry {
     35        rtems_chain_node node;
     36        unsigned channel;
     37        void (*done)( struct mpc55xx_edma_channel_entry *, uint32_t);
     38        rtems_id id;
     39} mpc55xx_edma_channel_entry;
    8940
    9041rtems_status_code mpc55xx_edma_init();
    9142
    92 rtems_status_code mpc55xx_edma_obtain_channel( int channel, uint32_t *error_status, rtems_id transfer_update);
     43rtems_status_code mpc55xx_edma_obtain_channel( mpc55xx_edma_channel_entry *e);
    9344
    94 rtems_status_code mpc55xx_edma_enable_hardware_requests( int channel, bool enable);
     45rtems_status_code mpc55xx_edma_release_channel( mpc55xx_edma_channel_entry *e);
    9546
    96 rtems_status_code mpc55xx_edma_enable_error_interrupts( int channel, bool enable);
     47void mpc55xx_edma_enable_hardware_requests( unsigned channel, bool enable);
     48
     49void mpc55xx_edma_enable_error_interrupts( unsigned channel, bool enable);
    9750
    9851#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.