[http://lxr.free-electrons.com/source/drivers/net/8139too.c#L498][1]
On above link
What I am not getting is
the structure
static const struct {
const char *name;
u32 version; /* from RTL8139C/RTL8139D docs */
u32 flags;
} rtl_chip_info[] = {
{ "RTL-8139",
HW_REVID(1, 0, 0, 0, 0, 0, 0),
HasHltClk,
},
gets expanded to
static const struct {
const char *name;
u32 version; /* from RTL8139C/RTL8139D docs */
u32 flags;
} rtl_chip_info[] = {
{ "RTL-8139",
[B](b30, b29, b28, b27, b26, b23, b22)
(b30<<30 | b29<<29 | b28<<28 | b27<<27 | b26<<26 | b23<<23 | b22<<22)
(1, 0, 0, 0, 0, 0, 0),[/B]
HasHltClk,
},
I do not understand above type (2nd) of structure declaration.
[1]: http://lxr.free-electrons.com/source/drivers/net/8139too.c#L498