Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
pti.h File Reference

Go to the source code of this file.

Data Structures

struct  pti_masterchannel
 

Macros

#define PTI_LASTDWORD_DTS   0x30
 

Functions

void pti_writedata (struct pti_masterchannel *mc, u8 *buf, int count)
 
struct pti_masterchannelpti_request_masterchannel (u8 type, const char *thread_name)
 
void pti_release_masterchannel (struct pti_masterchannel *mc)
 

Macro Definition Documentation

#define PTI_LASTDWORD_DTS   0x30

Definition at line 29 of file pti.h.

Function Documentation

void pti_release_masterchannel ( struct pti_masterchannel mc)

pti_release_masterchannel()- Kernel API function used to release a master, channel ID address used to write to PTI HW.

: master, channel apeture ID address to be released. This will de-allocate the structure via kfree().

Definition at line 344 of file pti.c.

struct pti_masterchannel* pti_request_masterchannel ( u8  type,
const char thread_name 
)
read

pti_request_masterchannel()- Kernel API function used to allocate a master, channel ID address to write to PTI HW.

: 0- request Application master, channel aperture ID write address. 1- request OS master, channel aperture ID write address. 2- request Modem master, channel aperture ID write address. Other values, error. : The thread name associated with the master / channel or 'NULL' if using the 'current' global variable.

Returns: pti_masterchannel struct 0 for error

Definition at line 304 of file pti.c.

void pti_writedata ( struct pti_masterchannel mc,
u8 buf,
int  count 
)

pti_writedata()- Kernel API function used to write trace debugging data to PTI HW.

: Master, channel aperture ID address to write to. Null value will return with no write occurring. : Trace debuging data to write to the PTI HW. Null value will return with no write occurring. : Size of buf. Value of 0 or a negative number will return with no write occuring.

Definition at line 383 of file pti.c.