[dpdk-dev] [PATCH v1 3/5] drivers/raw: introduce skeleton rawdev driver
Thomas Monjalon
thomas at monjalon.net
Sun Jan 14 23:54:31 CET 2018
02/01/2018 13:57, Shreyansh Jain:
> +struct skeleton_firmware {
> + struct skeleton_firmware_version_info firmware_version;
> + /**< Device firmware information */
> + enum skeleton_firmware_state firmware_state;
> + /**< Device state */
> +};
> +
> +#define SKELETON_MAX_ATTRIBUTES 10
> +#define SKELETON_ATTRIBUTE_NAME_MAX 20
> +
> +struct skeleton_rawdev_attributes {
> + char *name;
> + /**< Name of the attribute */
> + uint64_t value;
> + /**< Value or reference of value of attribute */
> +};
> +
> +#define SKELETON_CAPA_FW_LOAD 0x0001
> +/**< Device supports firmware loading/unloading */
> +#define SKELETON_CAPA_FW_RESET 0x0002
> +/**< Device supports firmware reset */
> +#define SKELETON_CAPA_QUEUES 0x0004
> +/**< Device support queue based communication */
Comment about the style. The style is important :)
You are always writing comments after the item.
When comments are on a separate line, I think it is preferred to write
them *before* the item they describe.
More information about the dev
mailing list