How is reducing power for autotrophic growth obtained in a

How is reducing power for autotrophic growth obtained in a purple bacterium? In a cyanobacterium?