[v1,1/5] raw/zxdh: introduce zxdh raw device driver
Stephen Hemminger
stephen at networkplumber.org
Mon Aug 5 17:45:56 CEST 2024
On Mon, 5 Aug 2024 21:34:53 +0800
Yong Zhang <zhang.yong25 at zte.com.cn> wrote:
> +struct zxdh_gdma_buff_desc {
> + uint SrcAddr_L;
> + uint DstAddr_L;
> + uint Xpara;
> + uint ZY_para;
> + uint ZY_SrcStep;
> + uint ZY_DstStep;
> + uint ExtAddr;
> + uint LLI_Addr_L;
> + uint LLI_Addr_H;
> + uint ChCont;
> + uint LLI_User;
> + uint ErrAddr;
> + uint Control;
> + uint SrcAddr_H;
> + uint DstAddr_H;
> + uint Reserved;
> +};
> +
Why is this driver using uint type?
It should be using datatypes with explicit size (like uint32_t) to
make sure it can be used on both 32 and 64 bit builds.
More information about the dev
mailing list