common: Move mii_init() function out of common.h