moga: Fix function signatures and constants to match real API.