Add ethermii code from NXM

This is needed for the ethernet Media <mumble mumble> interface.

Signed-off-by: Ronald G. Minnich <rminnich@google.com>