That's either a Federal forage cap, or kepi. Can't really tell from the angle. What you're looking at is the bottom side of the brim, as it's pushed back and up on his forehead. He's wearing a standard Federal infantry frock, and probably an issue vest too. The frock is partly open to show the vest. Very much a style of the times.