#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.
#define ALLOC_COMPL_TIMEOUT (1000) /* in iterations of ~10us */ |
#define CMD_BUSY_TIMEOUT (100) /* In iterations of ~1us */ |
#define CMD_COMPL_TIMEOUT (20000) /* in iterations of ~10us */ |
#define CMD_INIT_TIMEOUT (50000) /* in iterations of ~10us */ |
#define DEBUG |
( |
|
lvl, |
|
|
|
stuff... |
|
) |
| do { } while (0) |
#define HERMES_AUX_DISABLE 0x4000 /* Disable to auxiliary port access */ |
#define HERMES_AUX_DISABLED 0x0000 /* Auxiliary port is closed */ |
#define HERMES_AUX_ENABLE 0x8000 /* Enable auxiliary port access */ |
#define HERMES_AUX_ENABLED 0xC000 /* Auxiliary port is open */ |
#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_NON_VOLATILE (0x0200 | HERMES_CMD_DOWNLD) |
#define HERMES_PROGRAM_ENABLE_VOLATILE (0x0100 | HERMES_CMD_DOWNLD) |
#define HERMES_PROGRAM_NON_VOLATILE (0x0300 | HERMES_CMD_DOWNLD) |