Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
pc87413_wdt.c File Reference
#include <linux/module.h>
#include <linux/types.h>
#include <linux/miscdevice.h>
#include <linux/watchdog.h>
#include <linux/ioport.h>
#include <linux/delay.h>
#include <linux/notifier.h>
#include <linux/fs.h>
#include <linux/reboot.h>
#include <linux/init.h>
#include <linux/spinlock.h>
#include <linux/moduleparam.h>
#include <linux/io.h>
#include <linux/uaccess.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DEFAULT_TIMEOUT   1 /* 1 minute */
 
#define MAX_TIMEOUT   255
 
#define VERSION   "1.1"
 
#define MODNAME   "pc87413 WDT"
 
#define DPFX   MODNAME " - DEBUG: "
 
#define WDT_INDEX_IO_PORT   (io+0) /* I/O port base (index register) */
 
#define WDT_DATA_IO_PORT   (WDT_INDEX_IO_PORT+1)
 
#define SWC_LDN   0x04
 
#define SIOCFG2   0x22 /* Serial IO register */
 
#define WDCTL   0x10 /* Watchdog-Timer-Control-Register */
 
#define WDTO   0x11 /* Watchdog timeout register */
 
#define WDCFG   0x12 /* Watchdog config register */
 
#define IO_DEFAULT   0x2E /* Address used on Portwell Boards */
 

Macro Definition Documentation

#define DEFAULT_TIMEOUT   1 /* 1 minute */

Definition at line 41 of file pc87413_wdt.c.

#define DPFX   MODNAME " - DEBUG: "

Definition at line 46 of file pc87413_wdt.c.

#define IO_DEFAULT   0x2E /* Address used on Portwell Boards */

Definition at line 56 of file pc87413_wdt.c.

#define MAX_TIMEOUT   255

Definition at line 42 of file pc87413_wdt.c.

#define MODNAME   "pc87413 WDT"

Definition at line 45 of file pc87413_wdt.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 21 of file pc87413_wdt.c.

#define SIOCFG2   0x22 /* Serial IO register */

Definition at line 51 of file pc87413_wdt.c.

#define SWC_LDN   0x04

Definition at line 50 of file pc87413_wdt.c.

#define VERSION   "1.1"

Definition at line 44 of file pc87413_wdt.c.

#define WDCFG   0x12 /* Watchdog config register */

Definition at line 54 of file pc87413_wdt.c.

#define WDCTL   0x10 /* Watchdog-Timer-Control-Register */

Definition at line 52 of file pc87413_wdt.c.

#define WDT_DATA_IO_PORT   (WDT_INDEX_IO_PORT+1)

Definition at line 49 of file pc87413_wdt.c.

#define WDT_INDEX_IO_PORT   (io+0) /* I/O port base (index register) */

Definition at line 48 of file pc87413_wdt.c.

#define WDTO   0x11 /* Watchdog timeout register */

Definition at line 53 of file pc87413_wdt.c.