Basically any conductor prior to the service disconnect shall not share it's raceway.
230.7 Other Conductors in Raceway or Cable
Conductors other than service conductors shall not be installed in the same service raceway or service cable.
Service Conductors. The conductors from the service point to the service disconnecting means.
Service Point. The point of connection between the facilities of the serving utility and the premises wiring.
Separately Derived System. An electrical source, other than a service, having no direct connection(s) to circuit conductors of any other electrical source other than those established by grounding and bonding connections.
Examples of separately derived systems include generators, batteries, converter windings, transformers, and solar photovoltaic systems, provided they have no direct electrical connection to another source.