a bunch of ppu related io functions