Clause 37 in the IEEE 802.3-2008 Specification [Ref 2] describes the Auto-Negotiation function that allows a device to advertise the modes of operation that it supports to a device at the remote end of a link segment (link partner), and to detect corresponding operational modes that the link partner might be advertising.
Auto-Negotiation is controlled and monitored through the PCS Management registers.