mips: Move MMI function declarations to a header.