Representations of the restricted Lie algebras of Cartan type