Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures
core.h File Reference
#include <linux/mutex.h>
#include <linux/radix-tree.h>
#include <linux/pinctrl/pinconf.h>
#include <linux/pinctrl/machine.h>

Go to the source code of this file.

Data Structures

struct  pinctrl_dev
 
struct  pinctrl
 
struct  pinctrl_state
 
struct  pinctrl_setting_mux
 
struct  pinctrl_setting_configs
 
struct  pinctrl_setting
 
struct  pin_desc
 

: a name for the pin, e.g. the name of the pin/pad/finger on a

struct pin_desc - pin descriptor for each physical pin in the arch : corresponding pin control device

datasheet or such : if the name of this pin was dynamically allocated : If zero, the pin is not claimed, and should be NULL. If non-zero, this pin is claimed by . This field is an integer rather than a boolean, since pinctrl_get() might process multiple mapping table entries that refer to, and hence claim, the same group or pin, and each of these will increment the . : The name of device that called pinctrl_get(). : The most recent selected mux setting for this pin, if any. : If pinctrl_request_gpio() was called for this pin, this is the name of the GPIO that "owns" this pin.

struct mutex pinctrl_mutex
 
struct list_head pinctrldev_list
 
struct pinctrl_devget_pinctrl_dev_from_devname (const char *dev_name)
 
int pin_get_from_name (struct pinctrl_dev *pctldev, const char *name)
 
const charpin_get_name (struct pinctrl_dev *pctldev, const unsigned pin)
 
int pinctrl_get_group_selector (struct pinctrl_dev *pctldev, const char *pin_group)
 
int pinctrl_register_map (struct pinctrl_map const *maps, unsigned num_maps, bool dup, bool locked)
 
void pinctrl_unregister_map (struct pinctrl_map const *map)
 

Function Documentation

struct pinctrl_dev* get_pinctrl_dev_from_devname ( const char devname)
read

get_pinctrl_dev_from_devname() - look up pin controller device : the name of a device instance, as returned by dev_name()

Looks up a pin control device matching a certain device name or pure device pointer, the pure device pointer will take precedence.

Definition at line 99 of file core.c.

int pin_get_from_name ( struct pinctrl_dev pctldev,
const char name 
)

Definition at line 123 of file core.c.

const char* pin_get_name ( struct pinctrl_dev pctldev,
const unsigned  pin 
)

Definition at line 148 of file core.c.

int pinctrl_get_group_selector ( struct pinctrl_dev pctldev,
const char pin_group 
)

pinctrl_get_group_selector() - returns the group selector for a group : the pin controller handling the group : the pin group to look up

Definition at line 353 of file core.c.

int pinctrl_register_map ( struct pinctrl_map const maps,
unsigned  num_maps,
bool  dup,
bool  locked 
)

Definition at line 897 of file core.c.

void pinctrl_unregister_map ( struct pinctrl_map const map)

Definition at line 988 of file core.c.

Variable Documentation

struct mutex pinctrl_mutex
struct list_head pinctrldev_list