Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
at93c.c File Reference
#include <linux/kernel.h>
#include <linux/delay.h>
#include <asm/lasat/lasat.h>
#include <linux/module.h>
#include <linux/init.h>
#include "at93c.h"

Go to the source code of this file.

Macros

#define AT93C_ADDR_SHIFT   7
 
#define AT93C_ADDR_MAX   ((1 << AT93C_ADDR_SHIFT) - 1)
 
#define AT93C_RCMD   (0x6 << AT93C_ADDR_SHIFT)
 
#define AT93C_WCMD   (0x5 << AT93C_ADDR_SHIFT)
 
#define AT93C_WENCMD   0x260
 
#define AT93C_WDSCMD   0x200
 

Functions

u8 at93c_read (u8 addr)
 
void at93c_write (u8 addr, u8 data)
 

Variables

struct at93c_defsat93c
 

Macro Definition Documentation

#define AT93C_ADDR_MAX   ((1 << AT93C_ADDR_SHIFT) - 1)

Definition at line 16 of file at93c.c.

#define AT93C_ADDR_SHIFT   7

Definition at line 15 of file at93c.c.

#define AT93C_RCMD   (0x6 << AT93C_ADDR_SHIFT)

Definition at line 17 of file at93c.c.

#define AT93C_WCMD   (0x5 << AT93C_ADDR_SHIFT)

Definition at line 18 of file at93c.c.

#define AT93C_WDSCMD   0x200

Definition at line 20 of file at93c.c.

#define AT93C_WENCMD   0x260

Definition at line 19 of file at93c.c.

Function Documentation

u8 at93c_read ( u8  addr)

Definition at line 130 of file at93c.c.

void at93c_write ( u8  addr,
u8  data 
)

Definition at line 140 of file at93c.c.

Variable Documentation

Definition at line 22 of file at93c.c.