I'm currently working with OpenIPMI 2.0.18 and I'm experimenting with
adding a couple of new fru decoders for AMC record types.
I've successfully added a "Carrier P2P Connectivity" decoder using the
ipmi_mr_struct_layout_t method and can parse some fru data that I've
loaded in the lan_serv program with the ATCA emulator.
However I'm run into trouble with the "AMC P2P Connectivity Record".
The record basically has the following format.
version
oem guid count
oem guids
record type
channel desc count
channel descs
link descs
So I defined my layout/item/arrays as follows
version - item
oem guid count/oem guids - array with count
record type - item
channel desc count/channel descs - array with count
link descs - array without count
and a top level structure of
static ipmi_mr_struct_layout_t amc_p2p_conn = {
.name = "AMC Point-to-Point Connectivity Record", .length = 1,
.item_count = 1, .items = amc_p2p_conn_items,
.array_count = 3, .arrays = amc_p2p_conn_arys,
.cleanup = ipmi_mr_struct_cleanup
};
However I can't workout how to include the "record type" field. The only
way I could think of doing it was to have the record type as an array of
fixed size 1, but you can't do that.
All the examples I've seen have the records structured as:
1. items
2. arrays
but this particular record type wants to do:
1. items
2. arrays
3. items
4. arrays
Is it that this type of record cannot be described using the
ipmi_mr_struct_layout_t technique or am I missing something really simple?
Thanks for any help.
Chris
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://ad.doubleclick.net/clk;226879339;13503038;l?
http://clk.atdmt.com/CRS/go/247765532/direct/01/
_______________________________________________
Openipmi-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openipmi-developer