Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | ssp_state |
Functions | |
int | ssp_write_word (u16 data) |
int | ssp_read_word (u16 *data) |
int | ssp_flush (void) |
void | ssp_enable (void) |
void | ssp_disable (void) |
void | ssp_save_state (struct ssp_state *ssp) |
void | ssp_restore_state (struct ssp_state *ssp) |
int | ssp_init (void) |
void | ssp_exit (void) |
ssp_read_word - read a word from the SSP port
Wait for a data word in the SSP receive FIFO, and return the received data. Data is LSB justified.
Note: Currently, if data is not expected to be received, this function will wait for ever.
The caller is expected to perform the necessary locking.
Returns: %-ETIMEDOUT timeout occurred 16-bit data success
ssp_write_word - write a word to the SSP port : 16-bit, MSB justified data to write.
Wait for a free entry in the SSP transmit FIFO, and write a data word to the SSP port. Wait for the SSP port to start sending the data.
The caller is expected to perform the necessary locking.
Returns: %-ETIMEDOUT timeout occurred 0 success