ethmac: use new EndpointDescription API

This commit is contained in:
Sebastien Bourdeauducq 2014-11-20 22:32:32 -08:00
parent 33530e0921
commit b7028848b2
1 changed files with 1 additions and 4 deletions

View File

@ -6,12 +6,9 @@ eth_preamble = 0xD555555555555555
buffer_depth = 2**log2_int(eth_mtu, need_pow2=False)
def eth_description(dw):
parameters = {
"packetized": True
}
layout = [
("d", dw),
("last_be", dw//8),
("error", dw//8)
]
return EndpointDescription(layout, parameters)
return EndpointDescription(layout, packetized=True)