I would have the barley cracked or milled. Barley is the one grain they can digest whole but not in large quantities. The other thing you can do with barley is to soak it and then place in moist trays until it sprouts to about 6" tall.
I have 70 pigs on the farm at the moment, we are a small commercial free range farm, and they are fed with malted barley (Brewery waste) and pig pellets, the pellets contain nutrients that the pigs cannot get naturally from our soil.
And best to soak the corn overnight too.