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

Go to the source code of this file.

Macros

#define CYCLE_DELAY   5
 
#define osp_MicroDelay(microsec)
 
#define CS_HIGH   0x0002 /* Chip select high */
 
#define CS_LOW   0x0000 /* Chip select low (active low) */
 
#define CLK_HIGH   0x0004 /* Clock high */
 
#define CLK_LOW   0x0000 /* Clock low */
 
#define SI_HIGH   0x0001 /* Serial input data high */
 
#define SI_LOW   0x0000 /* Serial input data low */
 
#define NICSTAR_REG_WRITE(bs, reg, val)
 
#define NICSTAR_REG_READ(bs, reg)   readl((base)+(reg))
 
#define NICSTAR_REG_GENERAL_PURPOSE   GP
 

Typedefs

typedef void __iomemvirt_addr_t
 

Macro Definition Documentation

#define CLK_HIGH   0x0004 /* Clock high */

Definition at line 36 of file nicstarmac.c.

#define CLK_LOW   0x0000 /* Clock low */

Definition at line 37 of file nicstarmac.c.

#define CS_HIGH   0x0002 /* Chip select high */

Definition at line 34 of file nicstarmac.c.

#define CS_LOW   0x0000 /* Chip select low (active low) */

Definition at line 35 of file nicstarmac.c.

#define CYCLE_DELAY   5

Definition at line 14 of file nicstarmac.c.

#define NICSTAR_REG_GENERAL_PURPOSE   GP

Definition at line 113 of file nicstarmac.c.

#define NICSTAR_REG_READ (   bs,
  reg 
)    readl((base)+(reg))

Definition at line 111 of file nicstarmac.c.

#define NICSTAR_REG_WRITE (   bs,
  reg,
  val 
)
Value:
while ( readl(bs + STAT) & 0x0200 ) ; \
writel((val),(base)+(reg))

Definition at line 108 of file nicstarmac.c.

#define osp_MicroDelay (   microsec)
Value:
{unsigned long useconds = (microsec); \
udelay((useconds));}

Definition at line 21 of file nicstarmac.c.

#define SI_HIGH   0x0001 /* Serial input data high */

Definition at line 38 of file nicstarmac.c.

#define SI_LOW   0x0000 /* Serial input data low */

Definition at line 39 of file nicstarmac.c.

Typedef Documentation

Definition at line 12 of file nicstarmac.c.