ethmac: use new EndpointDescription API
This commit is contained in:
parent
33530e0921
commit
b7028848b2
|
@ -6,12 +6,9 @@ eth_preamble = 0xD555555555555555
|
||||||
buffer_depth = 2**log2_int(eth_mtu, need_pow2=False)
|
buffer_depth = 2**log2_int(eth_mtu, need_pow2=False)
|
||||||
|
|
||||||
def eth_description(dw):
|
def eth_description(dw):
|
||||||
parameters = {
|
|
||||||
"packetized": True
|
|
||||||
}
|
|
||||||
layout = [
|
layout = [
|
||||||
("d", dw),
|
("d", dw),
|
||||||
("last_be", dw//8),
|
("last_be", dw//8),
|
||||||
("error", dw//8)
|
("error", dw//8)
|
||||||
]
|
]
|
||||||
return EndpointDescription(layout, parameters)
|
return EndpointDescription(layout, packetized=True)
|
||||||
|
|
Loading…
Reference in New Issue