Generalization of the Kubo relation for confined motion and ergodicity breakdown.