Mg(2+)(in) + ADP + phosphate + H(+) => Mg(2+)(out) + ATP + H2O
mg(2+)(in) + adp + phosphate + h(+) => mg(2+)(out) + atp + h2o
Mg(2+)(in) + ADP + phosphate + H(+) => Mg(2+)(out) + ATP + H2O
mg(2+)(in) + adp + phosphate + h(+) => mg(2+)(out) + atp + h2o