13 #ifndef LINUX_RIO_DRV_H
14 #define LINUX_RIO_DRV_H
16 #include <linux/types.h>
18 #include <linux/list.h>
19 #include <linux/errno.h>
20 #include <linux/string.h>
278 static inline void rio_init_dbell_res(
struct resource *res,
u16 start,
u16 end)
295 #define RIO_DEVICE(dev,ven) \
296 .did = (dev), .vid = (ven), \
297 .asm_did = RIO_ANY_ID, .asm_vid = RIO_ANY_ID
301 void (*)(
struct rio_mport *,
void *,
int,
int));
315 static inline int rio_add_outb_message(
struct rio_mport *mport,
319 return mport->
ops->add_outb_message(mport, rdev, mbox,
324 void (*)(
struct rio_mport *,
void *,
int,
int));
336 static inline int rio_add_inb_buffer(
struct rio_mport *mport,
int mbox,
339 return mport->
ops->add_inb_buffer(mport, mbox, buffer);
349 static inline void *rio_get_inb_message(
struct rio_mport *mport,
int mbox)
351 return mport->
ops->get_inb_message(mport, mbox);
385 #ifdef CONFIG_RAPIDIO_DMA_ENGINE
387 extern void rio_release_dma(
struct dma_chan *dchan);
390 struct rio_dma_data *
data,
401 static inline const char *rio_name(
struct rio_dev *rdev)
403 return dev_name(&rdev->
dev);
413 static inline void *rio_get_drvdata(
struct rio_dev *rdev)
426 static inline void rio_set_drvdata(
struct rio_dev *rdev,
void *
data)