It is rotory, just dont know engine specs. I'm not a mazda guy so I dont know the code.