Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
msm_serial_hs.h File Reference
#include <linux/serial_core.h>

Go to the source code of this file.

Data Structures

struct  msm_serial_hs_platform_data
 

Functions

void msm_hs_request_clock_off (struct uart_port *uport)
 
void msm_hs_request_clock_on (struct uart_port *uport)
 

Function Documentation

void msm_hs_request_clock_off ( struct uart_port uport)

msm_hs_request_clock_off - request to (i.e. asynchronously) turn off uart clock once pending TX is flushed and Rx DMA command is terminated. : uart_port structure for the device instance.

This functions puts the device into a partially active low power mode. It waits to complete all pending tx transactions, flushes ongoing Rx DMA command and terminates UART side Rx transaction, puts UART HW in non DMA mode and then clocks off the device. A client calls this when no UART data is expected. msm_request_clock_on() must be called before any further UART can be sent or received.

Definition at line 1280 of file msm_serial_hs.c.

void msm_hs_request_clock_on ( struct uart_port uport)

msm_hs_request_clock_on - Switch the device from partially active low power mode to fully active (i.e. clock on) mode. : uart_port structure for the device.

This function switches on the input clock, puts UART HW into DMA mode and enqueues an Rx DMA command if the device was in partially active mode. It has no effect if called with the device in inactive state.

Definition at line 1332 of file msm_serial_hs.c.