Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

scc_config_t* scc_get_configuration ( void   ) 

Retrieve configuration information from the SCC.

This function always succeeds.

Returns:
A pointer to the configuration information. This is a pointer to static memory and must not be freed. The values never change, and the return value will never be null.

If there is no SCC, yet the driver exists, the value -1 will be in the scc_config_t fields for other than the driver versions.

Definition at line 746 of file scc2_driver.c.

References scc_availability, scc_init(), and SCC_STATUS_INITIAL.

{
      /*
       * If some other driver calls scc before the kernel does, make sure that
       * this driver's initialization is performed.
       */
      if (scc_availability == SCC_STATUS_INITIAL) {
            scc_init();
      }

    /**
     * If there is no SCC, yet the driver exists, the value -1 will be in
     * the #scc_config_t fields for other than the driver versions.
     */
      return &scc_configuration;
}                       /* scc_get_configuration */


Generated by  Doxygen 1.6.0   Back to index