net/enetc: replace register read/write macros with functions