Sarah
The Cos value is derived from the DSCP-Cos map for egress traffic not ingress traffic. This map is needed because the switch always uses an internal DSCP value for all packets.
Using a 3560 switch as an example, you decide which marking, DSCP or CoS, will be used to place the packets into the ingress queues.
So the switch derives the CoS value or the DSCP value from the incoming packet and then maps this to the relevant queue.
Jon