Quoting r. Roland Dreier <[EMAIL PROTECTED]>:
> Subject: Re: [openib-general] [PATCH] mthca: report board id in sysfs
> 
>     Michael> Its really an ASCII string, so it looks the same
>     Michael> (byte-swapped) on all architectures.
> 
> I'm confused... if it's just a string, why don't we just use memcpy()
> to get it from the mailbox?
> 
>  - R.
> 

Because firmware puts it byte-swapped in the mailbox.
E.g. if you put in there "foo" in the mailbox you get "\0oof".

Board ID should be things like "MT_00A0000001", mailbox has
things like "0_TM00A00000\0\0\01".


-- 
MST
_______________________________________________
openib-general mailing list
[email protected]
http://openib.org/mailman/listinfo/openib-general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to