Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
remoteproc_virtio.c File Reference
#include <linux/export.h>
#include <linux/remoteproc.h>
#include <linux/virtio.h>
#include <linux/virtio_config.h>
#include <linux/virtio_ids.h>
#include <linux/virtio_ring.h>
#include <linux/err.h>
#include <linux/kref.h>
#include <linux/slab.h>
#include "remoteproc_internal.h"

Go to the source code of this file.

Functions

irqreturn_t rproc_vq_interrupt (struct rproc *rproc, int notifyid)
 
 EXPORT_SYMBOL (rproc_vq_interrupt)
 
int rproc_add_virtio_dev (struct rproc_vdev *rvdev, int id)
 
void rproc_remove_virtio_dev (struct rproc_vdev *rvdev)
 

Function Documentation

EXPORT_SYMBOL ( rproc_vq_interrupt  )
int rproc_add_virtio_dev ( struct rproc_vdev rvdev,
int  id 
)

rproc_add_virtio_dev() - register an rproc-induced virtio device : the remote vdev

This function registers a virtio device. This vdev's partent is the rproc device.

Returns 0 on success or an appropriate error value otherwise.

Definition at line 264 of file remoteproc_virtio.c.

void rproc_remove_virtio_dev ( struct rproc_vdev rvdev)

rproc_remove_virtio_dev() - remove an rproc-induced virtio device : the remote vdev

This function unregisters an existing virtio device.

Definition at line 305 of file remoteproc_virtio.c.

irqreturn_t rproc_vq_interrupt ( struct rproc rproc,
int  notifyid 
)

rproc_vq_interrupt() - tell remoteproc that a virtqueue is interrupted : handle to the remote processor : index of the signalled virtqueue (unique per this )

This function should be called by the platform-specific rproc driver, when the remote processor signals that a specific virtqueue has pending messages available.

Returns IRQ_NONE if no message was found in the virtqueue, and otherwise returns IRQ_HANDLED.

Definition at line 56 of file remoteproc_virtio.c.