Changeset 6843a9c in mainline for uspace/lib/c/include/device/hw_res.h


Ignore:
Timestamp:
2012-06-29T13:02:14Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
722912e
Parents:
ba72f2b (diff), 0bbd13e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

Trivial conflicts.

File:
1 edited

Legend:

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

    rba72f2b r6843a9c  
    4040#include <bool.h>
    4141
     42#define DMA_MODE_ON_DEMAND  0
     43#define DMA_MODE_WRITE      (1 << 2)
     44#define DMA_MODE_READ       (1 << 3)
     45#define DMA_MODE_AUTO       (1 << 4)
     46#define DMA_MODE_DOWN       (1 << 5)
     47#define DMA_MODE_SINGLE     (1 << 6)
     48#define DMA_MODE_BLOCK      (1 << 7)
     49
    4250/** HW resource provider interface */
    4351typedef enum {
     
    8088                        int irq;
    8189                } interrupt;
    82 
     90               
    8391                union {
    84                         int dma8;
    85                         int dma16;
     92                        unsigned int dma8;
     93                        unsigned int dma16;
    8694                } dma_channel;
    8795        } res;
     
    106114extern bool hw_res_enable_interrupt(async_sess_t *);
    107115
    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 
    116 extern int hw_res_dma_channel_setup(async_sess_t *,
    117     unsigned, uint32_t, uint16_t, uint8_t);
     116extern int hw_res_dma_channel_setup(async_sess_t *, unsigned int, uint32_t,
     117    uint16_t, uint8_t);
    118118
    119119#endif
Note: See TracChangeset for help on using the changeset viewer.