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

Go to the source code of this file.

Macros

#define CMD_BUSY_TIMEOUT   (100) /* In iterations of ~1us */
 
#define CMD_INIT_TIMEOUT   (50000) /* in iterations of ~10us */
 
#define CMD_COMPL_TIMEOUT   (20000) /* in iterations of ~10us */
 
#define ALLOC_COMPL_TIMEOUT   (1000) /* in iterations of ~10us */
 
#define HERMES_AUX_ENABLE   0x8000 /* Enable auxiliary port access */
 
#define HERMES_AUX_DISABLE   0x4000 /* Disable to auxiliary port access */
 
#define HERMES_AUX_ENABLED   0xC000 /* Auxiliary port is open */
 
#define HERMES_AUX_DISABLED   0x0000 /* Auxiliary port is closed */
 
#define HERMES_AUX_PW0   0xFE01
 
#define HERMES_AUX_PW1   0xDC23
 
#define HERMES_AUX_PW2   0xBA45
 
#define HERMES_PROGRAM_DISABLE   (0x0000 | HERMES_CMD_DOWNLD)
 
#define HERMES_PROGRAM_ENABLE_VOLATILE   (0x0100 | HERMES_CMD_DOWNLD)
 
#define HERMES_PROGRAM_ENABLE_NON_VOLATILE   (0x0200 | HERMES_CMD_DOWNLD)
 
#define HERMES_PROGRAM_NON_VOLATILE   (0x0300 | HERMES_CMD_DOWNLD)
 
#define DMSG(stuff...)
 
#define DEBUG(lvl, stuff...)   do { } while (0)
 

Functions

void hermes_struct_init (struct hermes *hw, void __iomem *address, int reg_spacing)
 
 EXPORT_SYMBOL (hermes_struct_init)
 

Macro Definition Documentation

#define ALLOC_COMPL_TIMEOUT   (1000) /* in iterations of ~10us */

Definition at line 52 of file hermes.c.

#define CMD_BUSY_TIMEOUT   (100) /* In iterations of ~1us */

Definition at line 49 of file hermes.c.

#define CMD_COMPL_TIMEOUT   (20000) /* in iterations of ~10us */

Definition at line 51 of file hermes.c.

#define CMD_INIT_TIMEOUT   (50000) /* in iterations of ~10us */

Definition at line 50 of file hermes.c.

#define DEBUG (   lvl,
  stuff... 
)    do { } while (0)

Definition at line 89 of file hermes.c.

#define DMSG (   stuff...)
Value:
do {printk(KERN_DEBUG "hermes @ %p: " , hw->iobase); \
printk(stuff); } while (0)

Definition at line 78 of file hermes.c.

#define HERMES_AUX_DISABLE   0x4000 /* Disable to auxiliary port access */

Definition at line 60 of file hermes.c.

#define HERMES_AUX_DISABLED   0x0000 /* Auxiliary port is closed */

Definition at line 62 of file hermes.c.

#define HERMES_AUX_ENABLE   0x8000 /* Enable auxiliary port access */

Definition at line 59 of file hermes.c.

#define HERMES_AUX_ENABLED   0xC000 /* Auxiliary port is open */

Definition at line 61 of file hermes.c.

#define HERMES_AUX_PW0   0xFE01

Definition at line 64 of file hermes.c.

#define HERMES_AUX_PW1   0xDC23

Definition at line 65 of file hermes.c.

#define HERMES_AUX_PW2   0xBA45

Definition at line 66 of file hermes.c.

#define HERMES_PROGRAM_DISABLE   (0x0000 | HERMES_CMD_DOWNLD)

Definition at line 69 of file hermes.c.

#define HERMES_PROGRAM_ENABLE_NON_VOLATILE   (0x0200 | HERMES_CMD_DOWNLD)

Definition at line 71 of file hermes.c.

#define HERMES_PROGRAM_ENABLE_VOLATILE   (0x0100 | HERMES_CMD_DOWNLD)

Definition at line 70 of file hermes.c.

#define HERMES_PROGRAM_NON_VOLATILE   (0x0300 | HERMES_CMD_DOWNLD)

Definition at line 72 of file hermes.c.

Function Documentation

EXPORT_SYMBOL ( hermes_struct_init  )
void hermes_struct_init ( struct hermes hw,
void __iomem address,
int  reg_spacing 
)

Definition at line 188 of file hermes.c.