X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=doc%2Fguides%2Fprog_guide%2Frawdev.rst;h=488e0a7ef6c15c5c761cce94d7f901e22c063c3f;hb=bc778a17fa46f1ec69180c7f660585155eefc318;hp=54bffc5851e850784bbeeca2bebbeef708f13e21;hpb=a9bb0c44c775784f3d6cafd4d774301db633cb47;p=dpdk.git diff --git a/doc/guides/prog_guide/rawdev.rst b/doc/guides/prog_guide/rawdev.rst index 54bffc5851..488e0a7ef6 100644 --- a/doc/guides/prog_guide/rawdev.rst +++ b/doc/guides/prog_guide/rawdev.rst @@ -13,7 +13,7 @@ In terms of device flavor (type) support, DPDK currently has ethernet For a new type of device, for example an accelerator, there are not many options except: -1. create another lib/librte_MySpecialDev, driver/MySpecialDrv and use it +1. create another lib/MySpecialDev, driver/MySpecialDrv and use it through Bus/PMD model. 2. Or, create a vdev and implement necessary custom APIs which are directly exposed from driver layer. However this may still require changes in bus code @@ -32,7 +32,7 @@ Key factors guiding design of the Rawdevice library: 1. Following are some generic operations which can be treated as applicable to a large subset of device types. None of the operations are mandatory to - be implemented by a driver. Application should also be design for proper + be implemented by a driver. Application should also be designed for proper handling for unsupported APIs. * Device Start/Stop - In some cases, 'reset' might also be required which @@ -43,7 +43,7 @@ Key factors guiding design of the Rawdevice library: * Firmware Management - Firmware load/unload/status 2. Application API should be able to pass along arbitrary state information - to/fro device driver. This can be achieved by maintaining context + to/from device driver. This can be achieved by maintaining context information through opaque data or pointers. Figure below outlines the layout of the rawdevice library and device vis-a-vis @@ -100,7 +100,7 @@ From the command line using the --vdev EAL option --vdev 'rawdev_dev1' -Our using the rte_vdev_init API within the application code. +Or using the rte_vdev_init API within the application code. .. code-block:: c