Commit 7107a09c authored by Hideaki Yoshifuji's avatar Hideaki Yoshifuji

[netdrvr] C99 initializers for arcnet

parent 5443b474
...@@ -45,11 +45,11 @@ static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, ...@@ -45,11 +45,11 @@ static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
struct ArcProto rawmode_proto = struct ArcProto rawmode_proto =
{ {
'r', .suffix = 'r',
XMTU, .mtu = XMTU,
rx, .rx = rx,
build_header, .build_header = build_header,
prepare_tx .prepare_tx = prepare_tx,
}; };
......
...@@ -73,11 +73,11 @@ struct ArcProto *arc_proto_map[256], *arc_proto_default, *arc_bcast_proto; ...@@ -73,11 +73,11 @@ struct ArcProto *arc_proto_map[256], *arc_proto_default, *arc_bcast_proto;
struct ArcProto arc_proto_null = struct ArcProto arc_proto_null =
{ {
'?', .suffix = '?',
XMTU, .mtu = XMTU,
null_rx, .rx = null_rx,
null_build_header, .build_header = null_build_header,
null_prepare_tx .prepare_tx = null_prepare_tx,
}; };
static spinlock_t arcnet_lock = SPIN_LOCK_UNLOCKED; static spinlock_t arcnet_lock = SPIN_LOCK_UNLOCKED;
......
...@@ -45,11 +45,11 @@ static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length, ...@@ -45,11 +45,11 @@ static int prepare_tx(struct net_device *dev, struct archdr *pkt, int length,
struct ArcProto rfc1051_proto = struct ArcProto rfc1051_proto =
{ {
's', .suffix = 's',
XMTU - RFC1051_HDR_SIZE, .mtu = XMTU - RFC1051_HDR_SIZE,
rx, .rx = rx,
build_header, .build_header = build_header,
prepare_tx .prepare_tx = prepare_tx,
}; };
......
...@@ -44,12 +44,12 @@ static int continue_tx(struct net_device *dev, int bufnum); ...@@ -44,12 +44,12 @@ static int continue_tx(struct net_device *dev, int bufnum);
struct ArcProto rfc1201_proto = struct ArcProto rfc1201_proto =
{ {
'a', .suffix = 'a',
1500, /* could be more, but some receivers can't handle it... */ .mtu = 1500, /* could be more, but some receivers can't handle it... */
rx, .rx = rx,
build_header, .build_header = build_header,
prepare_tx, .prepare_tx = prepare_tx,
continue_tx .continue_tx = continue_tx,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment