Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
intel_gmbus.c File Reference
#include <linux/module.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>
#include <drm/drmP.h>
#include "psb_intel_drv.h"
#include <drm/gma_drm.h>
#include "psb_drv.h"
#include "psb_intel_reg.h"

Go to the source code of this file.

Data Structures

struct  intel_gpio
 

Macros

#define _wait_for(COND, MS, W)
 
#define wait_for(COND, MS)   _wait_for(COND, MS, 1)
 
#define wait_for_atomic(COND, MS)   _wait_for(COND, MS, 0)
 
#define I2C_RISEFALL_TIME   20
 

Functions

void gma_intel_i2c_reset (struct drm_device *dev)
 
int gma_intel_setup_gmbus (struct drm_device *dev)
 
void gma_intel_gmbus_set_speed (struct i2c_adapter *adapter, int speed)
 
void gma_intel_gmbus_force_bit (struct i2c_adapter *adapter, bool force_bit)
 
void gma_intel_teardown_gmbus (struct drm_device *dev)
 

Variables

struct intel_gpio __attribute__
 

Macro Definition Documentation

#define _wait_for (   COND,
  MS,
  W 
)
Value:
({ \
unsigned long timeout__ = jiffies + msecs_to_jiffies(MS); \
int ret__ = 0; \
while (! (COND)) { \
if (time_after(jiffies, timeout__)) { \
ret__ = -ETIMEDOUT; \
break; \
} \
if (W && !(in_atomic() || in_dbg_master())) msleep(W); \
} \
ret__; \
})

Definition at line 38 of file intel_gmbus.c.

#define I2C_RISEFALL_TIME   20

Definition at line 56 of file intel_gmbus.c.

#define wait_for (   COND,
  MS 
)    _wait_for(COND, MS, 1)

Definition at line 51 of file intel_gmbus.c.

#define wait_for_atomic (   COND,
  MS 
)    _wait_for(COND, MS, 0)

Definition at line 52 of file intel_gmbus.c.

Function Documentation

void gma_intel_gmbus_force_bit ( struct i2c_adapter adapter,
bool  force_bit 
)

Definition at line 454 of file intel_gmbus.c.

void gma_intel_gmbus_set_speed ( struct i2c_adapter adapter,
int  speed 
)

Definition at line 441 of file intel_gmbus.c.

void gma_intel_i2c_reset ( struct drm_device dev)

Definition at line 72 of file intel_gmbus.c.

int gma_intel_setup_gmbus ( struct drm_device dev)

intel_gmbus_setup - instantiate all Intel i2c GMBuses : DRM device

Definition at line 382 of file intel_gmbus.c.

void gma_intel_teardown_gmbus ( struct drm_device dev)

Definition at line 473 of file intel_gmbus.c.

Variable Documentation