Mark Lord wrote:..Robert Hancock wrote:
+/* ADMA Physical Region Descriptor - one SG segment */
+struct nv_adma_prd {
+ __le64 addr;
+ __le32 len;
+ u8 flags;
+ u8 packet_len;
..+struct nv_adma_cpb {
+ u8 resp_flags; //0
+ u8 reserved1; //1
+ u8 ctl_flags; //2
+ // len is length of taskfile in 64 bit words
+ u8 len; //3 + u8 tag; //4
+ u8 next_cpb_idx; //5Are those CPB / PRD structs endian-safe when using a big-endian CPU?
Cheers
They should be, I believe cpu_to_leXX is used whenever the multi-byte elements are being written.