Changeset 9991c47 in mainline for uspace/lib/c/include/device/hw_res.h


Ignore:
Timestamp:
2011-11-13T22:18:58Z (12 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
8a5962f
Parents:
e6def65
Message:

libc, libdrv: Add support for DMA channel handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/device/hw_res.h

    re6def65 r9991c47  
    4343typedef enum {
    4444        HW_RES_GET_RESOURCE_LIST = 0,
    45         HW_RES_ENABLE_INTERRUPT
     45        HW_RES_ENABLE_INTERRUPT,
     46        HW_RES_DMA_CHANNEL_SETUP,
    4647} hw_res_method_t;
    4748
     
    105106extern bool hw_res_enable_interrupt(async_sess_t *);
    106107
     108#define DMA_MODE_WRITE (1 << 2)
     109#define DMA_MODE_READ (1 << 3)
     110#define DMA_MODE_AUTO (1 << 4)
     111#define DMA_MODE_DOWN (1 << 5)
     112#define DMA_MODE_SINGLE (1 << 6)
     113#define DMA_MODE_BLOCK (1 << 7)
     114#define DMA_MODE_ON_DEMAND (0)
     115
     116extern int hw_res_dma_channel_setup(async_sess_t *,
     117    unsigned, uint32_t, uint16_t, uint8_t);
     118
    107119#endif
    108120
Note: See TracChangeset for help on using the changeset viewer.