Blame view

drivers/pcmcia/m32r_cfc.h 1.86 KB
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
3
4
5
6
7
8
9
10
11
  /*
   * Copyright (C) 2001 by Hiroyuki Kondo
   */
  
  #if !defined(CONFIG_M32R_CFC_NUM)
  #define M32R_MAX_PCC	2
  #else
  #define M32R_MAX_PCC	CONFIG_M32R_CFC_NUM
  #endif
  
  /*
b595076a1   Uwe Kleine-König   tree-wide: fix co...
12
   * M32R PC Card Controller
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
   */
  #define M32R_PCC0_BASE        0x00ef7000
  #define M32R_PCC1_BASE        0x00ef7020
  
  /*
   * Register offsets
   */
  #define PCCR            0x00
  #define PCADR           0x04
  #define PCMOD           0x08
  #define PCIRC           0x0c
  #define PCCSIGCR        0x10
  #define PCATCR          0x14
  
  /*
   * PCCR
   */
  #define PCCR_PCEN       (1UL<<(31-31))
  
  /*
   * PCIRC
   */
  #define PCIRC_BWERR     (1UL<<(31-7))
  #define PCIRC_CDIN1     (1UL<<(31-14))
  #define PCIRC_CDIN2     (1UL<<(31-15))
  #define PCIRC_BEIEN     (1UL<<(31-23))
  #define PCIRC_CIIEN     (1UL<<(31-30))
  #define PCIRC_COIEN     (1UL<<(31-31))
  
  /*
   * PCCSIGCR
   */
  #define PCCSIGCR_SEN    (1UL<<(31-3))
  #define PCCSIGCR_VEN    (1UL<<(31-7))
  #define PCCSIGCR_CRST   (1UL<<(31-15))
  #define PCCSIGCR_COCR   (1UL<<(31-31))
  
  /*
   *
   */
  #define PCMOD_AS_ATTRIB	(1UL<<(31-19))
  #define PCMOD_AS_IO	(1UL<<(31-18))
  
  #define PCMOD_CBSZ	(1UL<<(31-23)) /* set for 8bit */
  
  #define PCMOD_DBEX	(1UL<<(31-31)) /* set for excahnge */
  
  /*
   * M32R PCC Map addr
   */
  
  #define M32R_PCC0_MAPBASE        0x14000000
  #define M32R_PCC1_MAPBASE        0x16000000
  
  #define M32R_PCC_MAPMAX		 0x02000000
  
  #define M32R_PCC_MAPSIZE	 0x00001000 /* XXX */
  #define M32R_PCC_MAPMASK     	(~(M32R_PCC_MAPMAX-1))
  
  #define CFC_IOPORT_BASE		0x1000
934bb7f88   Hirokazu Takata   [PATCH] m32r: Upd...
73
74
75
76
77
  #if defined(CONFIG_PLAT_MAPPI3)
  #define CFC_ATTR_MAPBASE	0x14014000
  #define CFC_IO_MAPBASE_BYTE	0xb4012000
  #define CFC_IO_MAPBASE_WORD	0xb4002000
  #elif !defined(CONFIG_PLAT_USRV)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
78
79
80
  #define CFC_ATTR_MAPBASE        0x0c014000
  #define CFC_IO_MAPBASE_BYTE     0xac012000
  #define CFC_IO_MAPBASE_WORD     0xac002000
934bb7f88   Hirokazu Takata   [PATCH] m32r: Upd...
81
  #else
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
82
83
84
85
  #define CFC_ATTR_MAPBASE	0x04014000
  #define CFC_IO_MAPBASE_BYTE	0xa4012000
  #define CFC_IO_MAPBASE_WORD	0xa4002000
  #endif	/* CONFIG_PLAT_USRV */