| rte_rawdev_pmd.h(3) | Library Functions Manual | rte_rawdev_pmd.h(3) |
rte_rawdev_pmd.h
#include <string.h>
#include <dev_driver.h>
#include <rte_malloc.h>
#include <rte_log.h>
#include <rte_common.h>
#include 'rte_rawdev.h'
struct rte_rawdev_ops
typedef int(* rawdev_info_get_t) (struct rte_rawdev
*dev, rte_rawdev_obj_t dev_info, size_t dev_private_size)
typedef int(* rawdev_configure_t) (const struct rte_rawdev *dev,
rte_rawdev_obj_t config, size_t config_size)
typedef int(* rawdev_start_t) (struct rte_rawdev *dev)
typedef void(* rawdev_stop_t) (struct rte_rawdev *dev)
typedef int(* rawdev_close_t) (struct rte_rawdev *dev)
typedef int(* rawdev_reset_t) (struct rte_rawdev *dev)
typedef int(* rawdev_queue_conf_get_t) (struct rte_rawdev *dev,
uint16_t queue_id, rte_rawdev_obj_t queue_conf, size_t queue_conf_size)
typedef int(* rawdev_queue_setup_t) (struct rte_rawdev *dev,
uint16_t queue_id, rte_rawdev_obj_t queue_conf, size_t queue_conf_size)
typedef int(* rawdev_queue_release_t) (struct rte_rawdev *dev,
uint16_t queue_id)
typedef uint16_t(* rawdev_queue_count_t) (struct rte_rawdev
*dev)
typedef int(* rawdev_enqueue_bufs_t) (struct rte_rawdev *dev,
struct rte_rawdev_buf **buffers, unsigned int count, rte_rawdev_obj_t
context)
typedef int(* rawdev_dequeue_bufs_t) (struct rte_rawdev *dev,
struct rte_rawdev_buf **buffers, unsigned int count, rte_rawdev_obj_t
context)
typedef int(* rawdev_dump_t) (struct rte_rawdev *dev, FILE *f)
typedef int(* rawdev_get_attr_t) (struct rte_rawdev *dev, const
char *attr_name, uint64_t *attr_value)
typedef int(* rawdev_set_attr_t) (struct rte_rawdev *dev, const
char *attr_name, const uint64_t attr_value)
typedef int(* rawdev_xstats_get_t) (const struct rte_rawdev
*dev, const unsigned int ids[], uint64_t values[], unsigned int n)
typedef int(* rawdev_xstats_reset_t) (struct rte_rawdev *dev,
const uint32_t ids[], uint32_t nb_ids)
typedef int(* rawdev_xstats_get_names_t) (const struct
rte_rawdev *dev, struct rte_rawdev_xstats_name *xstats_names,
unsigned int size)
typedef uint64_t(* rawdev_xstats_get_by_name_t) (const struct
rte_rawdev *dev, const char *name, unsigned int *id)
typedef int(* rawdev_firmware_status_get_t) (struct rte_rawdev
*dev, rte_rawdev_obj_t status_info)
typedef int(* rawdev_firmware_version_get_t) (struct rte_rawdev
*dev, rte_rawdev_obj_t version_info)
typedef int(* rawdev_firmware_load_t) (struct rte_rawdev *dev,
rte_rawdev_obj_t firmware_buf)
typedef int(* rawdev_firmware_unload_t) (struct rte_rawdev *dev)
typedef int(* rawdev_selftest_t) (uint16_t dev_id)
static struct rte_rawdev * rte_rawdev_pmd_get_named_dev
(const char *name)
static struct rte_rawdev * rte_rawdev_pmd_get_dev (uint8_t dev_id)
static unsigned rte_rawdev_pmd_is_valid_dev (uint8_t dev_id)
struct rte_rawdev * rte_rawdev_pmd_allocate (const char *name, size_t
dev_private_size, int socket_id)
int rte_rawdev_pmd_release (struct rte_rawdev *rawdev)
struct rte_rawdev * rte_rawdev_pmd_init (const char *name, size_t
dev_private_size, int socket_id)
int rte_rawdev_pmd_uninit (const char *name)
RTE RAW PMD APIs
Note
Definition in file rte_rawdev_pmd.h.
Definitions of all functions exported by a driver through the generic structure of type rawdev_ops supplied in the rte_rawdev structure associated with a device. Get device information of a device.
Parameters
Returns
Definition at line 172 of file rte_rawdev_pmd.h.
Configure a device.
Parameters
Returns
Definition at line 189 of file rte_rawdev_pmd.h.
Start a configured device.
Parameters
Returns
Definition at line 202 of file rte_rawdev_pmd.h.
Stop a configured device.
Parameters
Definition at line 210 of file rte_rawdev_pmd.h.
Close a configured device.
Parameters
Returns
Definition at line 222 of file rte_rawdev_pmd.h.
Reset a configured device.
Parameters
Returns
Definition at line 233 of file rte_rawdev_pmd.h.
Retrieve the current raw queue configuration.
Parameters
Returns
Definition at line 250 of file rte_rawdev_pmd.h.
Setup an raw queue.
Parameters
Returns
Definition at line 270 of file rte_rawdev_pmd.h.
Release resources allocated by given raw queue.
Parameters
Definition at line 283 of file rte_rawdev_pmd.h.
Get the count of number of queues configured on this device.
Another way to fetch this information is to fetch the device configuration. But, that assumes that the device configuration managed by the driver has that kind of information.
This function helps in getting queue count supported, independently. It can help in cases where iterator needs to be implemented.
Parameters
Returns
Definition at line 301 of file rte_rawdev_pmd.h.
Enqueue an array of raw buffers to the device.
Buffer being used is opaque - it can be obtained from mempool or from any other source. Interpretation of buffer is responsibility of driver.
Parameters
Returns
Definition at line 325 of file rte_rawdev_pmd.h.
Dequeue an array of raw buffers from the device.
Parameters
Returns
Definition at line 350 of file rte_rawdev_pmd.h.
Dump internal information
Parameters
Returns
Definition at line 366 of file rte_rawdev_pmd.h.
Get an attribute value from implementation. Attribute is an opaque handle agreed upon between application and PMD.
Parameters
Returns
Definition at line 383 of file rte_rawdev_pmd.h.
Set an attribute value. Attribute is an opaque handle agreed upon between application and PMD.
Parameters
Returns
Definition at line 401 of file rte_rawdev_pmd.h.
Retrieve a set of statistics from device. Note: Being a raw device, the stats are specific to the device being implemented thus represented as xstats.
Parameters
Returns
Definition at line 421 of file rte_rawdev_pmd.h.
Resets the statistic values in xstats for the device.
Definition at line 427 of file rte_rawdev_pmd.h.
Get names of extended stats of an raw device
Parameters
Returns
Definition at line 446 of file rte_rawdev_pmd.h.
Get value of one stats and optionally return its id
Parameters
Returns
Definition at line 465 of file rte_rawdev_pmd.h.
Get firmware/device-stack status. Implementation to allocate buffer for returning information.
Parameters
Returns
Definition at line 481 of file rte_rawdev_pmd.h.
Get firmware version information
Parameters
Returns
Definition at line 495 of file rte_rawdev_pmd.h.
Load firmware from a buffer (DMA'able)
Parameters
Returns
See also
Definition at line 512 of file rte_rawdev_pmd.h.
Unload firmware
Parameters
Returns
Note: Application can use the firmware_status_get or firmware_version_get to get result of unload.
Definition at line 527 of file rte_rawdev_pmd.h.
Start rawdev selftest
Returns
Definition at line 535 of file rte_rawdev_pmd.h.
The pool of rte_rawdev structures. Get the rte_rawdev structure device pointer for the named device.
Parameters
Returns
Definition at line 87 of file rte_rawdev_pmd.h.
Get the rte_rawdev structure device pointer for given device ID.
Parameters
Returns
Definition at line 115 of file rte_rawdev_pmd.h.
Validate if the raw device index is a valid attached raw device.
Parameters
Returns
Definition at line 139 of file rte_rawdev_pmd.h.
Allocates a new rawdev slot for an raw device and returns the pointer to that slot for the driver to use.
Parameters
Returns
Release the specified rawdev device.
Parameters
Returns
Creates a new raw device and returns the pointer to that device.
Parameters
Returns
Destroy a raw device
Parameters
Returns
Generated automatically by Doxygen for DPDK from the source code.
| Version 24.11.3 | DPDK |