I'm not entirely certain those are stars - they could be oak leaf clusters, at which point he would be either a Major or a Lieutenant Colonel, not a 2-star General. Given his overall age in the photo, I'd go with Lieutenant Colonel.

http://www.civilwarhome.com/unionofficerrank.htm

Take a look at the above for comparison.