Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
omap_hdq.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/sched.h>
#include <linux/pm_runtime.h>
#include "../w1.h"
#include "../w1_int.h"

Go to the source code of this file.

Data Structures

struct  hdq_data
 

Macros

#define MOD_NAME   "OMAP_HDQ:"
 
#define OMAP_HDQ_REVISION   0x00
 
#define OMAP_HDQ_TX_DATA   0x04
 
#define OMAP_HDQ_RX_DATA   0x08
 
#define OMAP_HDQ_CTRL_STATUS   0x0c
 
#define OMAP_HDQ_CTRL_STATUS_INTERRUPTMASK   (1<<6)
 
#define OMAP_HDQ_CTRL_STATUS_CLOCKENABLE   (1<<5)
 
#define OMAP_HDQ_CTRL_STATUS_GO   (1<<4)
 
#define OMAP_HDQ_CTRL_STATUS_INITIALIZATION   (1<<2)
 
#define OMAP_HDQ_CTRL_STATUS_DIR   (1<<1)
 
#define OMAP_HDQ_CTRL_STATUS_MODE   (1<<0)
 
#define OMAP_HDQ_INT_STATUS   0x10
 
#define OMAP_HDQ_INT_STATUS_TXCOMPLETE   (1<<2)
 
#define OMAP_HDQ_INT_STATUS_RXCOMPLETE   (1<<1)
 
#define OMAP_HDQ_INT_STATUS_TIMEOUT   (1<<0)
 
#define OMAP_HDQ_SYSCONFIG   0x14
 
#define OMAP_HDQ_SYSCONFIG_SOFTRESET   (1<<1)
 
#define OMAP_HDQ_SYSCONFIG_AUTOIDLE   (1<<0)
 
#define OMAP_HDQ_SYSSTATUS   0x18
 
#define OMAP_HDQ_SYSSTATUS_RESETDONE   (1<<0)
 
#define OMAP_HDQ_FLAG_CLEAR   0
 
#define OMAP_HDQ_FLAG_SET   1
 
#define OMAP_HDQ_TIMEOUT   (HZ/5)
 
#define OMAP_HDQ_MAX_USER   4
 

Functions

 module_platform_driver (omap_hdq_driver)
 
 module_param (w1_id, int, S_IRUSR)
 
 MODULE_PARM_DESC (w1_id,"1-wire id for the slave detection")
 
 MODULE_AUTHOR ("Texas Instruments")
 
 MODULE_DESCRIPTION ("HDQ driver Library")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define MOD_NAME   "OMAP_HDQ:"

Definition at line 24 of file omap_hdq.c.

#define OMAP_HDQ_CTRL_STATUS   0x0c

Definition at line 29 of file omap_hdq.c.

#define OMAP_HDQ_CTRL_STATUS_CLOCKENABLE   (1<<5)

Definition at line 31 of file omap_hdq.c.

#define OMAP_HDQ_CTRL_STATUS_DIR   (1<<1)

Definition at line 34 of file omap_hdq.c.

#define OMAP_HDQ_CTRL_STATUS_GO   (1<<4)

Definition at line 32 of file omap_hdq.c.

#define OMAP_HDQ_CTRL_STATUS_INITIALIZATION   (1<<2)

Definition at line 33 of file omap_hdq.c.

#define OMAP_HDQ_CTRL_STATUS_INTERRUPTMASK   (1<<6)

Definition at line 30 of file omap_hdq.c.

#define OMAP_HDQ_CTRL_STATUS_MODE   (1<<0)

Definition at line 35 of file omap_hdq.c.

#define OMAP_HDQ_FLAG_CLEAR   0

Definition at line 46 of file omap_hdq.c.

#define OMAP_HDQ_FLAG_SET   1

Definition at line 47 of file omap_hdq.c.

#define OMAP_HDQ_INT_STATUS   0x10

Definition at line 36 of file omap_hdq.c.

#define OMAP_HDQ_INT_STATUS_RXCOMPLETE   (1<<1)

Definition at line 38 of file omap_hdq.c.

#define OMAP_HDQ_INT_STATUS_TIMEOUT   (1<<0)

Definition at line 39 of file omap_hdq.c.

#define OMAP_HDQ_INT_STATUS_TXCOMPLETE   (1<<2)

Definition at line 37 of file omap_hdq.c.

#define OMAP_HDQ_MAX_USER   4

Definition at line 50 of file omap_hdq.c.

#define OMAP_HDQ_REVISION   0x00

Definition at line 26 of file omap_hdq.c.

#define OMAP_HDQ_RX_DATA   0x08

Definition at line 28 of file omap_hdq.c.

#define OMAP_HDQ_SYSCONFIG   0x14

Definition at line 40 of file omap_hdq.c.

#define OMAP_HDQ_SYSCONFIG_AUTOIDLE   (1<<0)

Definition at line 42 of file omap_hdq.c.

#define OMAP_HDQ_SYSCONFIG_SOFTRESET   (1<<1)

Definition at line 41 of file omap_hdq.c.

#define OMAP_HDQ_SYSSTATUS   0x18

Definition at line 43 of file omap_hdq.c.

#define OMAP_HDQ_SYSSTATUS_RESETDONE   (1<<0)

Definition at line 44 of file omap_hdq.c.

#define OMAP_HDQ_TIMEOUT   (HZ/5)

Definition at line 48 of file omap_hdq.c.

#define OMAP_HDQ_TX_DATA   0x04

Definition at line 27 of file omap_hdq.c.

Function Documentation

MODULE_AUTHOR ( "Texas Instruments"  )
MODULE_DESCRIPTION ( "HDQ driver Library"  )
MODULE_LICENSE ( "GPL"  )
module_param ( w1_id  ,
int  ,
S_IRUSR   
)
MODULE_PARM_DESC ( w1_id  ,
"1-wire id for the slave detection"   
)
module_platform_driver ( omap_hdq_driver  )