Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
hsmc.h File Reference

Go to the source code of this file.

Macros

#define HSMC_SETUP0   0x0000
 
#define HSMC_PULSE0   0x0004
 
#define HSMC_CYCLE0   0x0008
 
#define HSMC_MODE0   0x000c
 
#define HSMC_SETUP1   0x0010
 
#define HSMC_PULSE1   0x0014
 
#define HSMC_CYCLE1   0x0018
 
#define HSMC_MODE1   0x001c
 
#define HSMC_SETUP2   0x0020
 
#define HSMC_PULSE2   0x0024
 
#define HSMC_CYCLE2   0x0028
 
#define HSMC_MODE2   0x002c
 
#define HSMC_SETUP3   0x0030
 
#define HSMC_PULSE3   0x0034
 
#define HSMC_CYCLE3   0x0038
 
#define HSMC_MODE3   0x003c
 
#define HSMC_SETUP4   0x0040
 
#define HSMC_PULSE4   0x0044
 
#define HSMC_CYCLE4   0x0048
 
#define HSMC_MODE4   0x004c
 
#define HSMC_SETUP5   0x0050
 
#define HSMC_PULSE5   0x0054
 
#define HSMC_CYCLE5   0x0058
 
#define HSMC_MODE5   0x005c
 
#define HSMC_NWE_SETUP_OFFSET   0
 
#define HSMC_NWE_SETUP_SIZE   6
 
#define HSMC_NCS_WR_SETUP_OFFSET   8
 
#define HSMC_NCS_WR_SETUP_SIZE   6
 
#define HSMC_NRD_SETUP_OFFSET   16
 
#define HSMC_NRD_SETUP_SIZE   6
 
#define HSMC_NCS_RD_SETUP_OFFSET   24
 
#define HSMC_NCS_RD_SETUP_SIZE   6
 
#define HSMC_NWE_PULSE_OFFSET   0
 
#define HSMC_NWE_PULSE_SIZE   7
 
#define HSMC_NCS_WR_PULSE_OFFSET   8
 
#define HSMC_NCS_WR_PULSE_SIZE   7
 
#define HSMC_NRD_PULSE_OFFSET   16
 
#define HSMC_NRD_PULSE_SIZE   7
 
#define HSMC_NCS_RD_PULSE_OFFSET   24
 
#define HSMC_NCS_RD_PULSE_SIZE   7
 
#define HSMC_NWE_CYCLE_OFFSET   0
 
#define HSMC_NWE_CYCLE_SIZE   9
 
#define HSMC_NRD_CYCLE_OFFSET   16
 
#define HSMC_NRD_CYCLE_SIZE   9
 
#define HSMC_READ_MODE_OFFSET   0
 
#define HSMC_READ_MODE_SIZE   1
 
#define HSMC_WRITE_MODE_OFFSET   1
 
#define HSMC_WRITE_MODE_SIZE   1
 
#define HSMC_EXNW_MODE_OFFSET   4
 
#define HSMC_EXNW_MODE_SIZE   2
 
#define HSMC_BAT_OFFSET   8
 
#define HSMC_BAT_SIZE   1
 
#define HSMC_DBW_OFFSET   12
 
#define HSMC_DBW_SIZE   2
 
#define HSMC_TDF_CYCLES_OFFSET   16
 
#define HSMC_TDF_CYCLES_SIZE   4
 
#define HSMC_TDF_MODE_OFFSET   20
 
#define HSMC_TDF_MODE_SIZE   1
 
#define HSMC_PMEN_OFFSET   24
 
#define HSMC_PMEN_SIZE   1
 
#define HSMC_PS_OFFSET   28
 
#define HSMC_PS_SIZE   2
 
#define HSMC_READ_MODE_NCS_CONTROLLED   0
 
#define HSMC_READ_MODE_NRD_CONTROLLED   1
 
#define HSMC_WRITE_MODE_NCS_CONTROLLED   0
 
#define HSMC_WRITE_MODE_NWE_CONTROLLED   1
 
#define HSMC_EXNW_MODE_DISABLED   0
 
#define HSMC_EXNW_MODE_RESERVED   1
 
#define HSMC_EXNW_MODE_FROZEN   2
 
#define HSMC_EXNW_MODE_READY   3
 
#define HSMC_BAT_BYTE_SELECT   0
 
#define HSMC_BAT_BYTE_WRITE   1
 
#define HSMC_DBW_8_BITS   0
 
#define HSMC_DBW_16_BITS   1
 
#define HSMC_DBW_32_BITS   2
 
#define HSMC_BIT(name)   (1 << HSMC_##name##_OFFSET)
 
#define HSMC_BF(name, value)
 
#define HSMC_BFEXT(name, value)
 
#define HSMC_BFINS(name, value, old)
 
#define hsmc_readl(port, reg)   __raw_readl((port)->regs + HSMC_##reg)
 
#define hsmc_writel(port, reg, value)   __raw_writel((value), (port)->regs + HSMC_##reg)
 

Macro Definition Documentation

#define HSMC_BAT_BYTE_SELECT   0

Definition at line 100 of file hsmc.h.

#define HSMC_BAT_BYTE_WRITE   1

Definition at line 101 of file hsmc.h.

#define HSMC_BAT_OFFSET   8

Definition at line 72 of file hsmc.h.

#define HSMC_BAT_SIZE   1

Definition at line 73 of file hsmc.h.

#define HSMC_BF (   name,
  value 
)
Value:
(((value) & ((1 << HSMC_##name##_SIZE) - 1)) \
<< HSMC_##name##_OFFSET)

Definition at line 111 of file hsmc.h.

#define HSMC_BFEXT (   name,
  value 
)
Value:
(((value) >> HSMC_##name##_OFFSET) \
& ((1 << HSMC_##name##_SIZE) - 1))

Definition at line 114 of file hsmc.h.

#define HSMC_BFINS (   name,
  value,
  old 
)
Value:
(((old) & ~(((1 << HSMC_##name##_SIZE) - 1) \
<< HSMC_##name##_OFFSET)) | HSMC_BF(name,value))

Definition at line 117 of file hsmc.h.

#define HSMC_BIT (   name)    (1 << HSMC_##name##_OFFSET)

Definition at line 109 of file hsmc.h.

#define HSMC_CYCLE0   0x0008

Definition at line 16 of file hsmc.h.

#define HSMC_CYCLE1   0x0018

Definition at line 20 of file hsmc.h.

#define HSMC_CYCLE2   0x0028

Definition at line 24 of file hsmc.h.

#define HSMC_CYCLE3   0x0038

Definition at line 28 of file hsmc.h.

#define HSMC_CYCLE4   0x0048

Definition at line 32 of file hsmc.h.

#define HSMC_CYCLE5   0x0058

Definition at line 36 of file hsmc.h.

#define HSMC_DBW_16_BITS   1

Definition at line 105 of file hsmc.h.

#define HSMC_DBW_32_BITS   2

Definition at line 106 of file hsmc.h.

#define HSMC_DBW_8_BITS   0

Definition at line 104 of file hsmc.h.

#define HSMC_DBW_OFFSET   12

Definition at line 74 of file hsmc.h.

#define HSMC_DBW_SIZE   2

Definition at line 75 of file hsmc.h.

#define HSMC_EXNW_MODE_DISABLED   0

Definition at line 94 of file hsmc.h.

#define HSMC_EXNW_MODE_FROZEN   2

Definition at line 96 of file hsmc.h.

#define HSMC_EXNW_MODE_OFFSET   4

Definition at line 70 of file hsmc.h.

#define HSMC_EXNW_MODE_READY   3

Definition at line 97 of file hsmc.h.

#define HSMC_EXNW_MODE_RESERVED   1

Definition at line 95 of file hsmc.h.

#define HSMC_EXNW_MODE_SIZE   2

Definition at line 71 of file hsmc.h.

#define HSMC_MODE0   0x000c

Definition at line 17 of file hsmc.h.

#define HSMC_MODE1   0x001c

Definition at line 21 of file hsmc.h.

#define HSMC_MODE2   0x002c

Definition at line 25 of file hsmc.h.

#define HSMC_MODE3   0x003c

Definition at line 29 of file hsmc.h.

#define HSMC_MODE4   0x004c

Definition at line 33 of file hsmc.h.

#define HSMC_MODE5   0x005c

Definition at line 37 of file hsmc.h.

#define HSMC_NCS_RD_PULSE_OFFSET   24

Definition at line 56 of file hsmc.h.

#define HSMC_NCS_RD_PULSE_SIZE   7

Definition at line 57 of file hsmc.h.

#define HSMC_NCS_RD_SETUP_OFFSET   24

Definition at line 46 of file hsmc.h.

#define HSMC_NCS_RD_SETUP_SIZE   6

Definition at line 47 of file hsmc.h.

#define HSMC_NCS_WR_PULSE_OFFSET   8

Definition at line 52 of file hsmc.h.

#define HSMC_NCS_WR_PULSE_SIZE   7

Definition at line 53 of file hsmc.h.

#define HSMC_NCS_WR_SETUP_OFFSET   8

Definition at line 42 of file hsmc.h.

#define HSMC_NCS_WR_SETUP_SIZE   6

Definition at line 43 of file hsmc.h.

#define HSMC_NRD_CYCLE_OFFSET   16

Definition at line 62 of file hsmc.h.

#define HSMC_NRD_CYCLE_SIZE   9

Definition at line 63 of file hsmc.h.

#define HSMC_NRD_PULSE_OFFSET   16

Definition at line 54 of file hsmc.h.

#define HSMC_NRD_PULSE_SIZE   7

Definition at line 55 of file hsmc.h.

#define HSMC_NRD_SETUP_OFFSET   16

Definition at line 44 of file hsmc.h.

#define HSMC_NRD_SETUP_SIZE   6

Definition at line 45 of file hsmc.h.

#define HSMC_NWE_CYCLE_OFFSET   0

Definition at line 60 of file hsmc.h.

#define HSMC_NWE_CYCLE_SIZE   9

Definition at line 61 of file hsmc.h.

#define HSMC_NWE_PULSE_OFFSET   0

Definition at line 50 of file hsmc.h.

#define HSMC_NWE_PULSE_SIZE   7

Definition at line 51 of file hsmc.h.

#define HSMC_NWE_SETUP_OFFSET   0

Definition at line 40 of file hsmc.h.

#define HSMC_NWE_SETUP_SIZE   6

Definition at line 41 of file hsmc.h.

#define HSMC_PMEN_OFFSET   24

Definition at line 80 of file hsmc.h.

#define HSMC_PMEN_SIZE   1

Definition at line 81 of file hsmc.h.

#define HSMC_PS_OFFSET   28

Definition at line 82 of file hsmc.h.

#define HSMC_PS_SIZE   2

Definition at line 83 of file hsmc.h.

#define HSMC_PULSE0   0x0004

Definition at line 15 of file hsmc.h.

#define HSMC_PULSE1   0x0014

Definition at line 19 of file hsmc.h.

#define HSMC_PULSE2   0x0024

Definition at line 23 of file hsmc.h.

#define HSMC_PULSE3   0x0034

Definition at line 27 of file hsmc.h.

#define HSMC_PULSE4   0x0044

Definition at line 31 of file hsmc.h.

#define HSMC_PULSE5   0x0054

Definition at line 35 of file hsmc.h.

#define HSMC_READ_MODE_NCS_CONTROLLED   0

Definition at line 86 of file hsmc.h.

#define HSMC_READ_MODE_NRD_CONTROLLED   1

Definition at line 87 of file hsmc.h.

#define HSMC_READ_MODE_OFFSET   0

Definition at line 66 of file hsmc.h.

#define HSMC_READ_MODE_SIZE   1

Definition at line 67 of file hsmc.h.

#define hsmc_readl (   port,
  reg 
)    __raw_readl((port)->regs + HSMC_##reg)

Definition at line 122 of file hsmc.h.

#define HSMC_SETUP0   0x0000

Definition at line 14 of file hsmc.h.

#define HSMC_SETUP1   0x0010

Definition at line 18 of file hsmc.h.

#define HSMC_SETUP2   0x0020

Definition at line 22 of file hsmc.h.

#define HSMC_SETUP3   0x0030

Definition at line 26 of file hsmc.h.

#define HSMC_SETUP4   0x0040

Definition at line 30 of file hsmc.h.

#define HSMC_SETUP5   0x0050

Definition at line 34 of file hsmc.h.

#define HSMC_TDF_CYCLES_OFFSET   16

Definition at line 76 of file hsmc.h.

#define HSMC_TDF_CYCLES_SIZE   4

Definition at line 77 of file hsmc.h.

#define HSMC_TDF_MODE_OFFSET   20

Definition at line 78 of file hsmc.h.

#define HSMC_TDF_MODE_SIZE   1

Definition at line 79 of file hsmc.h.

#define HSMC_WRITE_MODE_NCS_CONTROLLED   0

Definition at line 90 of file hsmc.h.

#define HSMC_WRITE_MODE_NWE_CONTROLLED   1

Definition at line 91 of file hsmc.h.

#define HSMC_WRITE_MODE_OFFSET   1

Definition at line 68 of file hsmc.h.

#define HSMC_WRITE_MODE_SIZE   1

Definition at line 69 of file hsmc.h.

#define hsmc_writel (   port,
  reg,
  value 
)    __raw_writel((value), (port)->regs + HSMC_##reg)

Definition at line 124 of file hsmc.h.