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

volatile void* scc_base [static]

This is type void* so that a) it cannot directly be dereferenced, and b) pointer arithmetic on it will function in a 'normal way' for the offsets in scc_defines.h

scc_base is the location in the iomap where the SCC's registers (and memory) start.

The referenced data is declared volatile so that the compiler will not make any assumptions about the value of registers in the SCC, and thus will always reload the register into CPU memory before using it (i.e. wherever it is referenced in the driver).

This value should only be referenced by the SCC_READ_REGISTER and SCC_WRITE_REGISTER macros and their ilk. All dereferences must be 32 bits wide.

Definition at line 108 of file scc2_driver.c.

Generated by  Doxygen 1.6.0   Back to index