MediaSelect
dev->if_port = (value & MediaSelect) ? 1 : 2;
dev->if_port = (GetByte(XIRCREG_ESR) & MediaSelect) ? 1 : 2;