]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - include/linux/amba/pl08x.h
ARM: PL08x: use 'size_t' for lengths
[mv-sheeva.git] / include / linux / amba / pl08x.h
index 521a0f8974ac688b20c083e1e71c410b2f26252a..2c834ed5f41f5de2d790a932b74f2f26eb013dfe 100644 (file)
@@ -22,6 +22,9 @@
 #include <linux/dmaengine.h>
 #include <linux/interrupt.h>
 
+struct pl08x_lli;
+struct pl08x_driver_data;
+
 /**
  * struct pl08x_channel_data - data structure to pass info between
  * platform and PL08x driver regarding channel configuration
@@ -74,7 +77,7 @@ struct pl08x_bus_data {
        dma_addr_t addr;
        u8 maxwidth;
        u8 buswidth;
-       u32 fill_bytes;
+       size_t fill_bytes;
 };
 
 /**
@@ -110,7 +113,7 @@ struct pl08x_txd {
        enum dma_data_direction direction;
        struct pl08x_bus_data srcbus;
        struct pl08x_bus_data dstbus;
-       int len;
+       size_t len;
        dma_addr_t llis_bus;
        void *llis_va;
        struct pl08x_channel_data *cd;
@@ -174,13 +177,12 @@ struct pl08x_dma_chan {
        struct pl08x_channel_data *cd;
        dma_addr_t runtime_addr;
        enum dma_data_direction runtime_direction;
-       atomic_t last_issued;
        dma_cookie_t lc;
        struct list_head desc_list;
        struct pl08x_txd *at;
        unsigned long lockflags;
        spinlock_t lock;
-       void *host;
+       struct pl08x_driver_data *host;
        enum pl08x_dma_chan_state state;
        bool slave;
        struct pl08x_txd *waiting;