> +struct bnx2i_async_msg {
> +#if defined(__BIG_ENDIAN)
> +     u8 op_code;
> +     u8 reserved1;
> +     u16 reserved0;
> +#elif defined(__LITTLE_ENDIAN)
> +     u16 reserved0;
> +     u8 reserved1;
> +     u8 op_code;
> +#endif
> +     u32 reserved2;
> +     u32 exp_cmd_sn;
> +     u32 max_cmd_sn;
> +     u32 reserved3[2];

Please don't do the ifdef big endian mess.  Just read the whole
32bit word and do mask and shift operations to extract the actual value.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"open-iscsi" group.
To post to this group, send email to open-iscsi@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/open-iscsi
-~----------~----~----~----~------~----~------~--~---

Reply via email to