I'm familiar with some different layouts of castles (motte and bailey, concentric,...) and the main parts or areas they have or need (Keep, moat, barbican, ward, cistern, great hall, etc.)
While browsing the web I found this picture of an old castle in York, England.
In an inner ward like that I wouldn't be surprised to find buildings such as:
- storage areas
- barracks for soldiers; rooms for servants or serfs
- bakery; brewery
And, in case these are not in the keep itself, kitchen, chapel, rooms for servants,...
In the picture of the castle in York I see plenty of buildings/structures in the ward, and given the size of the main keep (and the tower that can be seeing on the bottom left corner) I would guess that chapel and kitchen would be in the keep, where there would be some room for soldiers or servants too. I counted like 20 buildings of various sizes and I was surprised to see that many, and wondering what their functions would be.
I don't know if any of the buildings that could be found in the inner (or outer) ward or bailey of a castle could be for example a mill, smith or lodging for important people who can't be hosted inside the main keep.
My question is: in a castle with a ward that size, what kind of buildings can be found inside the ward?