Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
rio_ops Struct Reference

#include <rio.h>

Data Fields

int(* lcread )(struct rio_mport *mport, int index, u32 offset, int len, u32 *data)
 
int(* lcwrite )(struct rio_mport *mport, int index, u32 offset, int len, u32 data)
 
int(* cread )(struct rio_mport *mport, int index, u16 destid, u8 hopcount, u32 offset, int len, u32 *data)
 
int(* cwrite )(struct rio_mport *mport, int index, u16 destid, u8 hopcount, u32 offset, int len, u32 data)
 
int(* dsend )(struct rio_mport *mport, int index, u16 destid, u16 data)
 
int(* pwenable )(struct rio_mport *mport, int enable)
 
int(* open_outb_mbox )(struct rio_mport *mport, void *dev_id, int mbox, int entries)
 
void(* close_outb_mbox )(struct rio_mport *mport, int mbox)
 
int(* open_inb_mbox )(struct rio_mport *mport, void *dev_id, int mbox, int entries)
 
void(* close_inb_mbox )(struct rio_mport *mport, int mbox)
 
int(* add_outb_message )(struct rio_mport *mport, struct rio_dev *rdev, int mbox, void *buffer, size_t len)
 
int(* add_inb_buffer )(struct rio_mport *mport, int mbox, void *buf)
 
void *(* get_inb_message )(struct rio_mport *mport, int mbox)
 
int(* map_inb )(struct rio_mport *mport, dma_addr_t lstart, u64 rstart, u32 size, u32 flags)
 
void(* unmap_inb )(struct rio_mport *mport, dma_addr_t lstart)
 

Detailed Description

struct rio_ops - Low-level RIO configuration space operations : Callback to perform local (master port) read of config space. : Callback to perform local (master port) write of config space. : Callback to perform network read of config space. : Callback to perform network write of config space. : Callback to send a doorbell message. : Callback to enable/disable port-write message handling. : Callback to initialize outbound mailbox. : Callback to shut down outbound mailbox. : Callback to initialize inbound mailbox. : Callback to shut down inbound mailbox. : Callback to add a message to an outbound mailbox queue. : Callback to add a buffer to an inbound mailbox queue. : Callback to get a message from an inbound mailbox queue. : Callback to map RapidIO address region into local memory space. : Callback to unmap RapidIO address region mapped with map_inb().

Definition at line 313 of file rio.h.

Field Documentation

int(* add_inb_buffer)(struct rio_mport *mport, int mbox, void *buf)

Definition at line 332 of file rio.h.

int(* add_outb_message)(struct rio_mport *mport, struct rio_dev *rdev, int mbox, void *buffer, size_t len)

Definition at line 330 of file rio.h.

void(* close_inb_mbox)(struct rio_mport *mport, int mbox)

Definition at line 329 of file rio.h.

void(* close_outb_mbox)(struct rio_mport *mport, int mbox)

Definition at line 326 of file rio.h.

int(* cread)(struct rio_mport *mport, int index, u16 destid, u8 hopcount, u32 offset, int len, u32 *data)

Definition at line 318 of file rio.h.

int(* cwrite)(struct rio_mport *mport, int index, u16 destid, u8 hopcount, u32 offset, int len, u32 data)

Definition at line 320 of file rio.h.

int(* dsend)(struct rio_mport *mport, int index, u16 destid, u16 data)

Definition at line 322 of file rio.h.

void*(* get_inb_message)(struct rio_mport *mport, int mbox)

Definition at line 333 of file rio.h.

int(* lcread)(struct rio_mport *mport, int index, u32 offset, int len, u32 *data)

Definition at line 314 of file rio.h.

int(* lcwrite)(struct rio_mport *mport, int index, u32 offset, int len, u32 data)

Definition at line 316 of file rio.h.

int(* map_inb)(struct rio_mport *mport, dma_addr_t lstart, u64 rstart, u32 size, u32 flags)

Definition at line 334 of file rio.h.

int(* open_inb_mbox)(struct rio_mport *mport, void *dev_id, int mbox, int entries)

Definition at line 327 of file rio.h.

int(* open_outb_mbox)(struct rio_mport *mport, void *dev_id, int mbox, int entries)

Definition at line 324 of file rio.h.

int(* pwenable)(struct rio_mport *mport, int enable)

Definition at line 323 of file rio.h.

void(* unmap_inb)(struct rio_mport *mport, dma_addr_t lstart)

Definition at line 336 of file rio.h.


The documentation for this struct was generated from the following file: