u32 db_mode : 1;
enum MHI_BRSTMODE brstmode;
void (*process_db)(struct mhi_device_ctxt *mhi_dev_ctxt,
- void __iomem *io_addr,
- uintptr_t chan,
- u32 val);
+ void __iomem *io_addr, unsigned int chan,
+ dma_addr_t val);
};
struct mhi_ring {
int index);
int start_chan_sync(struct mhi_client_handle *client_handle);
void mhi_process_db_brstmode(struct mhi_device_ctxt *mhi_dev_ctxt,
- void __iomem *io_addr,
- uintptr_t chan,
- u32 val);
+ void __iomem *io_addr, unsigned int chan,
+ dma_addr_t val);
void mhi_process_db_brstmode_disable(struct mhi_device_ctxt *mhi_dev_ctxt,
- void __iomem *io_addr,
- uintptr_t chan,
- u32 val);
+ void __iomem *io_addr, unsigned int chan,
+ dma_addr_t val);
void mhi_process_db(struct mhi_device_ctxt *mhi_dev_ctxt, void __iomem *io_addr,
- uintptr_t io_offset, u32 val);
+ unsigned int chan, dma_addr_t val);
void mhi_reg_write_field(struct mhi_device_ctxt *mhi_dev_ctxt,
void __iomem *io_addr,
uintptr_t io_offset,
}
static void mhi_write_db(struct mhi_device_ctxt *mhi_dev_ctxt,
- void __iomem *io_addr_lower,
- uintptr_t chan, u64 val)
+ void __iomem *io_addr_lower,
+ unsigned int chan,
+ dma_addr_t val)
{
uintptr_t io_offset = chan * sizeof(u64);
void __iomem *io_addr_upper =
void mhi_process_db_brstmode(struct mhi_device_ctxt *mhi_dev_ctxt,
void __iomem *io_addr,
- uintptr_t chan,
- u32 val)
+ unsigned int chan,
+ dma_addr_t val)
{
struct mhi_ring *ring_ctxt =
&mhi_dev_ctxt->mhi_local_chan_ctxt[chan];
mhi_local_event_ctxt[chan];
mhi_log(mhi_dev_ctxt, MHI_MSG_VERBOSE,
- "db.set addr: %p io_offset 0x%lx val:0x%x\n",
+ "db.set addr: %p io_offset %u val:0x%llx\n",
io_addr, chan, val);
mhi_update_ctxt(mhi_dev_ctxt, io_addr, chan, val);
ring_ctxt->db_mode.db_mode = 0;
} else {
mhi_log(mhi_dev_ctxt, MHI_MSG_INFO,
- "Not ringing xfer db, chan %ld, brstmode %d db_mode %d\n",
+ "Not ringing xfer db, chan %u, brstmode %d db_mode %d\n",
chan, ring_ctxt->db_mode.brstmode,
ring_ctxt->db_mode.db_mode);
}
void mhi_process_db_brstmode_disable(struct mhi_device_ctxt *mhi_dev_ctxt,
void __iomem *io_addr,
- uintptr_t chan,
- u32 val)
+ unsigned int chan,
+ dma_addr_t val)
{
mhi_log(mhi_dev_ctxt, MHI_MSG_VERBOSE,
- "db.set addr: %p io_offset 0x%lx val:0x%x\n",
+ "db.set addr: %p io_offset %u val:0x%llx\n",
io_addr, chan, val);
mhi_update_ctxt(mhi_dev_ctxt, io_addr, chan, val);
mhi_write_db(mhi_dev_ctxt, io_addr, chan, val);
}
void mhi_process_db(struct mhi_device_ctxt *mhi_dev_ctxt,
- void __iomem *io_addr,
- uintptr_t chan, u32 val)
+ void __iomem *io_addr,
+ unsigned int chan,
+ dma_addr_t val)
{
mhi_log(mhi_dev_ctxt, MHI_MSG_VERBOSE,
- "db.set addr: %p io_offset 0x%lx val:0x%x\n",
+ "db.set addr: %p io_offset %u val:0x%llx\n",
io_addr, chan, val);
mhi_update_ctxt(mhi_dev_ctxt, io_addr, chan, val);
chan_ctxt->db_mode.db_mode = 0;
} else {
mhi_log(mhi_dev_ctxt, MHI_MSG_INFO,
- "Not ringing xfer db, chan %ld, brstmode %d db_mode %d\n",
+ "Not ringing xfer db, chan %u, brstmode %d db_mode %d\n",
chan, chan_ctxt->db_mode.brstmode,
chan_ctxt->db_mode.db_mode);
}