[Patch v9 11/18] net/mana: implement the hardware layer operations

Ferruh Yigit ferruh.yigit at amd.com
Tue Oct 4 19:48:59 CEST 2022


On 9/24/2022 3:45 AM, longli at linuxonhyperv.com wrote:

> 
> From: Long Li <longli at microsoft.com>
> 
> The hardware layer of MANA understands the device queue and doorbell
> formats. Those functions are implemented for use by packet RX/TX code.
> 
> Signed-off-by: Long Li <longli at microsoft.com>

<...>

> +
> +#define DOORBELL_OFFSET_SQ      0x0
> +#define DOORBELL_OFFSET_RQ      0x400
> +#define DOORBELL_OFFSET_CQ      0x800
> +#define DOORBELL_OFFSET_EQ      0xFF8

Instead above can be enums if you prefer. This is only to reference 
previous comment on making PCI IDs enum.



More information about the dev mailing list