Convert len_param_index into a constant. The patch contains a lot of
FIXMEs and very likely computes the wrong value. I have a few questions
about the whole thing but I'll add them as comments so it's easier to follow
the discussion.
This patch is part of the upstreaming effort from fir-dev.
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
I'm not entirely sure what we're supposed to compute here. My understanding is that we have a CFI_cdesc_t with an addendum right after it, and the addendum looks like DescriptorAddendum.
So the offset we're trying to compute needs to skip over the whole CFI_cdesc_t and then the derivedType_ member, and potentially other LEN parameters that come first in len_.
Is this correct?
Also, what's this TODO about?