[openib-general] [PATCH] mthca: report board id in sysfs

Michael S. Tsirkin mst at mellanox.co.il
Mon Jun 27 12:34:42 PDT 2005


Quoting r. Roland Dreier <rolandd at cisco.com>:
> 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



More information about the general mailing list