Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

mc9s08dz60.c File Reference


Detailed Description

Driver for MC9sdz60.

Definition in file mc9s08dz60.c.

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
#include <linux/proc_fs.h>
#include <linux/i2c.h>
#include <linux/mfd/mc9s08dz60/core.h>
#include <mach/clock.h>
#include <linux/uaccess.h>
#include "mc9s08dz60.h"

Go to the source code of this file.

Defines

#define CLEAR_BIT_IN_BYTE(byte, pos)   (byte &= ~(0x01 << pos))
#define I2C1_BUS   0
#define MC9S08DZ60_I2C_ADDR   0xD2
#define SET_BIT_IN_BYTE(byte, pos)   (byte |= (0x01 << pos))

Functions

void mc9s08dz60_exit (void)
int mc9s08dz60_init (void)
static int mc9s08dz60_probe (struct i2c_client *client, const struct i2c_device_id *id)
int mc9s08dz60_read_reg (u8 reg, u8 *value)
static int mc9s08dz60_remove (struct i2c_client *client)
static ssize_t mc9s08dz60_show (struct device *dev, struct device_attribute *attr, char *buf)
static ssize_t mc9s08dz60_store (struct device *dev, struct device_attribute *attr, const char *buf, size_t count)
int mc9s08dz60_write_reg (u8 reg, u8 value)
 MODULE_DEVICE_TABLE (i2c, mc9s08dz60_id)

Variables

static struct device_attribute mc9s08dz60_dev_attr
static struct i2c_client * mc9s08dz60_i2c_client
static struct i2c_driver mc9s08dz60_i2c_driver
static struct i2c_device_id mc9s08dz60_id []


Generated by  Doxygen 1.6.0   Back to index