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

Go to the source code of this file.

Data Structures

struct  gio_device_id
 
struct  gio_device
 
struct  gio_driver
 

Macros

#define to_gio_device(d)   container_of(d, struct gio_device, dev)
 
#define to_gio_driver(drv)   container_of(drv, struct gio_driver, driver)
 
#define gio_get_drvdata(_dev)   drv_get_drvdata(&(_dev)->dev)
 
#define gio_set_drvdata(_dev, data)   drv_set_drvdata(&(_dev)->dev, (data))
 

Functions

struct gio_device_idgio_match_device (const struct gio_device_id *, const struct gio_device *)
 
struct gio_devicegio_dev_get (struct gio_device *)
 
void gio_dev_put (struct gio_device *)
 
int gio_device_register (struct gio_device *)
 
void gio_device_unregister (struct gio_device *)
 
void gio_release_dev (struct device *)
 
int gio_register_driver (struct gio_driver *)
 
void gio_unregister_driver (struct gio_driver *)
 
void gio_set_master (struct gio_device *)
 

Macro Definition Documentation

#define gio_get_drvdata (   _dev)    drv_get_drvdata(&(_dev)->dev)

Definition at line 53 of file gio_device.h.

#define gio_set_drvdata (   _dev,
  data 
)    drv_set_drvdata(&(_dev)->dev, (data))

Definition at line 54 of file gio_device.h.

#define to_gio_device (   d)    container_of(d, struct gio_device, dev)

Definition at line 19 of file gio_device.h.

#define to_gio_driver (   drv)    container_of(drv, struct gio_driver, driver)

Definition at line 34 of file gio_device.h.

Function Documentation

struct gio_device* gio_dev_get ( struct gio_device )
read

Definition at line 53 of file ip22-gio.c.

void gio_dev_put ( struct gio_device )

Definition at line 67 of file ip22-gio.c.

int gio_device_register ( struct gio_device )

Definition at line 90 of file ip22-gio.c.

void gio_device_unregister ( struct gio_device )

Definition at line 98 of file ip22-gio.c.

struct gio_device_id* gio_match_device ( const struct gio_device_id match,
const struct gio_device dev 
)
read

gio_match_device - Tell if an of_device structure has a matching gio_match structure : array of of device match structures to search in : the of device structure to match against

Used by a driver to check whether an of_device present in the system is in its list of supported devices.

Definition at line 40 of file ip22-gio.c.

int gio_register_driver ( struct gio_driver )

Definition at line 219 of file ip22-gio.c.

void gio_release_dev ( struct device dev)

gio_release_dev - free an gio device structure when all users of it are finished. : device that's been disconnected

Will be called only by the device core when all users of this gio device are done.

Definition at line 81 of file ip22-gio.c.

void gio_set_master ( struct gio_device )

Definition at line 239 of file ip22-gio.c.

void gio_unregister_driver ( struct gio_driver )

Definition at line 233 of file ip22-gio.c.