Lines Matching refs:rio_mport

88 struct rio_mport;
126 int (*add_entry) (struct rio_mport *mport, u16 destid, u8 hopcount,
128 int (*get_entry) (struct rio_mport *mport, u16 destid, u8 hopcount,
130 int (*clr_table) (struct rio_mport *mport, u16 destid, u8 hopcount,
132 int (*set_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,
134 int (*get_domain) (struct rio_mport *mport, u16 destid, u8 hopcount,
215 #define to_rio_mport(n) container_of(n, struct rio_mport, dev)
225 void (*mcback) (struct rio_mport * mport, void *dev_id, int mbox, int slot);
238 void (*dinb) (struct rio_mport *mport, void *dev_id, u16 src, u16 dst, u16 info);
269 struct rio_mport { struct
302 static inline int rio_mport_is_running(struct rio_mport *mport) in rio_mport_is_running() argument
329 struct rio_mport *hport; /* primary port for accessing net */
404 int (*lcread) (struct rio_mport *mport, int index, u32 offset, int len,
406 int (*lcwrite) (struct rio_mport *mport, int index, u32 offset, int len,
408 int (*cread) (struct rio_mport *mport, int index, u16 destid,
410 int (*cwrite) (struct rio_mport *mport, int index, u16 destid,
412 int (*dsend) (struct rio_mport *mport, int index, u16 destid, u16 data);
413 int (*pwenable) (struct rio_mport *mport, int enable);
414 int (*open_outb_mbox)(struct rio_mport *mport, void *dev_id,
416 void (*close_outb_mbox)(struct rio_mport *mport, int mbox);
417 int (*open_inb_mbox)(struct rio_mport *mport, void *dev_id,
419 void (*close_inb_mbox)(struct rio_mport *mport, int mbox);
420 int (*add_outb_message)(struct rio_mport *mport, struct rio_dev *rdev,
422 int (*add_inb_buffer)(struct rio_mport *mport, int mbox, void *buf);
423 void *(*get_inb_message)(struct rio_mport *mport, int mbox);
424 int (*map_inb)(struct rio_mport *mport, dma_addr_t lstart,
426 void (*unmap_inb)(struct rio_mport *mport, dma_addr_t lstart);
427 int (*query_mport)(struct rio_mport *mport,
429 int (*map_outb)(struct rio_mport *mport, u16 destid, u64 rstart,
431 void (*unmap_outb)(struct rio_mport *mport, u16 destid, u64 rstart);
520 static inline struct rio_mport *dma_to_mport(struct dma_device *ddev) in dma_to_mport()
522 return container_of(ddev, struct rio_mport, dma); in dma_to_mport()
534 int (*enumerate)(struct rio_mport *mport, u32 flags);
535 int (*discover)(struct rio_mport *mport, u32 flags);
552 extern int rio_mport_initialize(struct rio_mport *);
553 extern int rio_register_mport(struct rio_mport *);
554 extern int rio_unregister_mport(struct rio_mport *);
555 extern int rio_open_inb_mbox(struct rio_mport *, void *, int, int);
556 extern void rio_close_inb_mbox(struct rio_mport *, int);
557 extern int rio_open_outb_mbox(struct rio_mport *, void *, int, int);
558 extern void rio_close_outb_mbox(struct rio_mport *, int);
559 extern int rio_query_mport(struct rio_mport *port,