Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
yenta_socket.h File Reference
#include <asm/io.h>

Go to the source code of this file.

Data Structures

struct  cardbus_type
 
struct  yenta_socket
 

Macros

#define CB_SOCKET_EVENT   0x00
 
#define CB_CSTSEVENT   0x00000001 /* Card status event */
 
#define CB_CD1EVENT   0x00000002 /* Card detect 1 change event */
 
#define CB_CD2EVENT   0x00000004 /* Card detect 2 change event */
 
#define CB_PWREVENT   0x00000008 /* PWRCYCLE change event */
 
#define CB_SOCKET_MASK   0x04
 
#define CB_CSTSMASK   0x00000001 /* Card status mask */
 
#define CB_CDMASK   0x00000006 /* Card detect 1&2 mask */
 
#define CB_PWRMASK   0x00000008 /* PWRCYCLE change mask */
 
#define CB_SOCKET_STATE   0x08
 
#define CB_CARDSTS   0x00000001 /* CSTSCHG status */
 
#define CB_CDETECT1   0x00000002 /* Card detect status 1 */
 
#define CB_CDETECT2   0x00000004 /* Card detect status 2 */
 
#define CB_PWRCYCLE   0x00000008 /* Socket powered */
 
#define CB_16BITCARD   0x00000010 /* 16-bit card detected */
 
#define CB_CBCARD   0x00000020 /* CardBus card detected */
 
#define CB_IREQCINT   0x00000040 /* READY(xIRQ)/xCINT high */
 
#define CB_NOTACARD   0x00000080 /* Unrecognizable PC card detected */
 
#define CB_DATALOST   0x00000100 /* Potential data loss due to card removal */
 
#define CB_BADVCCREQ   0x00000200 /* Invalid Vcc request by host software */
 
#define CB_5VCARD   0x00000400 /* Card Vcc at 5.0 volts? */
 
#define CB_3VCARD   0x00000800 /* Card Vcc at 3.3 volts? */
 
#define CB_XVCARD   0x00001000 /* Card Vcc at X.X volts? */
 
#define CB_YVCARD   0x00002000 /* Card Vcc at Y.Y volts? */
 
#define CB_5VSOCKET   0x10000000 /* Socket Vcc at 5.0 volts? */
 
#define CB_3VSOCKET   0x20000000 /* Socket Vcc at 3.3 volts? */
 
#define CB_XVSOCKET   0x40000000 /* Socket Vcc at X.X volts? */
 
#define CB_YVSOCKET   0x80000000 /* Socket Vcc at Y.Y volts? */
 
#define CB_SOCKET_FORCE   0x0C
 
#define CB_FCARDSTS   0x00000001 /* Force CSTSCHG */
 
#define CB_FCDETECT1   0x00000002 /* Force CD1EVENT */
 
#define CB_FCDETECT2   0x00000004 /* Force CD2EVENT */
 
#define CB_FPWRCYCLE   0x00000008 /* Force PWREVENT */
 
#define CB_F16BITCARD   0x00000010 /* Force 16-bit PCMCIA card */
 
#define CB_FCBCARD   0x00000020 /* Force CardBus line */
 
#define CB_FNOTACARD   0x00000080 /* Force NOTACARD */
 
#define CB_FDATALOST   0x00000100 /* Force data lost */
 
#define CB_FBADVCCREQ   0x00000200 /* Force bad Vcc request */
 
#define CB_F5VCARD   0x00000400 /* Force 5.0 volt card */
 
#define CB_F3VCARD   0x00000800 /* Force 3.3 volt card */
 
#define CB_FXVCARD   0x00001000 /* Force X.X volt card */
 
#define CB_FYVCARD   0x00002000 /* Force Y.Y volt card */
 
#define CB_CVSTEST   0x00004000 /* Card VS test */
 
#define CB_SOCKET_CONTROL   0x10
 
#define CB_SC_VPP_MASK   0x00000007
 
#define CB_SC_VPP_OFF   0x00000000
 
#define CB_SC_VPP_12V   0x00000001
 
#define CB_SC_VPP_5V   0x00000002
 
#define CB_SC_VPP_3V   0x00000003
 
#define CB_SC_VPP_XV   0x00000004
 
#define CB_SC_VPP_YV   0x00000005
 
#define CB_SC_VCC_MASK   0x00000070
 
#define CB_SC_VCC_OFF   0x00000000
 
#define CB_SC_VCC_5V   0x00000020
 
#define CB_SC_VCC_3V   0x00000030
 
#define CB_SC_VCC_XV   0x00000040
 
#define CB_SC_VCC_YV   0x00000050
 
#define CB_SC_CCLK_STOP   0x00000080
 
#define CB_SOCKET_POWER   0x20
 
#define CB_SKTACCES   0x02000000 /* A PC card access has occurred (clear on read) */
 
#define CB_SKTMODE   0x01000000 /* Clock frequency has changed (clear on read) */
 
#define CB_CLKCTRLEN   0x00010000 /* Clock control enabled (RW) */
 
#define CB_CLKCTRL   0x00000001 /* Stop(0) or slow(1) CB clock (RW) */
 
#define CB_BRIDGE_BASE(m)   (0x1c + 8*(m))
 
#define CB_BRIDGE_LIMIT(m)   (0x20 + 8*(m))
 
#define CB_BRIDGE_CONTROL   0x3e
 
#define CB_BRIDGE_CPERREN   0x00000001
 
#define CB_BRIDGE_CSERREN   0x00000002
 
#define CB_BRIDGE_ISAEN   0x00000004
 
#define CB_BRIDGE_VGAEN   0x00000008
 
#define CB_BRIDGE_MABTMODE   0x00000020
 
#define CB_BRIDGE_CRST   0x00000040
 
#define CB_BRIDGE_INTR   0x00000080
 
#define CB_BRIDGE_PREFETCH0   0x00000100
 
#define CB_BRIDGE_PREFETCH1   0x00000200
 
#define CB_BRIDGE_POSTEN   0x00000400
 
#define CB_LEGACY_MODE_BASE   0x44
 
#define CB_MEM_PAGE(map)   (0x40 + (map))
 
#define YENTA_16BIT_POWER_EXCA   0x00000001
 
#define YENTA_16BIT_POWER_DF   0x00000002
 

Macro Definition Documentation

#define CB_16BITCARD   0x00000010 /* 16-bit card detected */

Definition at line 22 of file yenta_socket.h.

#define CB_3VCARD   0x00000800 /* Card Vcc at 3.3 volts? */

Definition at line 29 of file yenta_socket.h.

#define CB_3VSOCKET   0x20000000 /* Socket Vcc at 3.3 volts? */

Definition at line 33 of file yenta_socket.h.

#define CB_5VCARD   0x00000400 /* Card Vcc at 5.0 volts? */

Definition at line 28 of file yenta_socket.h.

#define CB_5VSOCKET   0x10000000 /* Socket Vcc at 5.0 volts? */

Definition at line 32 of file yenta_socket.h.

#define CB_BADVCCREQ   0x00000200 /* Invalid Vcc request by host software */

Definition at line 27 of file yenta_socket.h.

#define CB_BRIDGE_BASE (   m)    (0x1c + 8*(m))

Definition at line 78 of file yenta_socket.h.

#define CB_BRIDGE_CONTROL   0x3e

Definition at line 80 of file yenta_socket.h.

#define CB_BRIDGE_CPERREN   0x00000001

Definition at line 81 of file yenta_socket.h.

#define CB_BRIDGE_CRST   0x00000040

Definition at line 86 of file yenta_socket.h.

#define CB_BRIDGE_CSERREN   0x00000002

Definition at line 82 of file yenta_socket.h.

#define CB_BRIDGE_INTR   0x00000080

Definition at line 87 of file yenta_socket.h.

#define CB_BRIDGE_ISAEN   0x00000004

Definition at line 83 of file yenta_socket.h.

#define CB_BRIDGE_LIMIT (   m)    (0x20 + 8*(m))

Definition at line 79 of file yenta_socket.h.

#define CB_BRIDGE_MABTMODE   0x00000020

Definition at line 85 of file yenta_socket.h.

#define CB_BRIDGE_POSTEN   0x00000400

Definition at line 90 of file yenta_socket.h.

#define CB_BRIDGE_PREFETCH0   0x00000100

Definition at line 88 of file yenta_socket.h.

#define CB_BRIDGE_PREFETCH1   0x00000200

Definition at line 89 of file yenta_socket.h.

#define CB_BRIDGE_VGAEN   0x00000008

Definition at line 84 of file yenta_socket.h.

#define CB_CARDSTS   0x00000001 /* CSTSCHG status */

Definition at line 18 of file yenta_socket.h.

#define CB_CBCARD   0x00000020 /* CardBus card detected */

Definition at line 23 of file yenta_socket.h.

#define CB_CD1EVENT   0x00000002 /* Card detect 1 change event */

Definition at line 8 of file yenta_socket.h.

#define CB_CD2EVENT   0x00000004 /* Card detect 2 change event */

Definition at line 9 of file yenta_socket.h.

#define CB_CDETECT1   0x00000002 /* Card detect status 1 */

Definition at line 19 of file yenta_socket.h.

#define CB_CDETECT2   0x00000004 /* Card detect status 2 */

Definition at line 20 of file yenta_socket.h.

#define CB_CDMASK   0x00000006 /* Card detect 1&2 mask */

Definition at line 14 of file yenta_socket.h.

#define CB_CLKCTRL   0x00000001 /* Stop(0) or slow(1) CB clock (RW) */

Definition at line 73 of file yenta_socket.h.

#define CB_CLKCTRLEN   0x00010000 /* Clock control enabled (RW) */

Definition at line 72 of file yenta_socket.h.

#define CB_CSTSEVENT   0x00000001 /* Card status event */

Definition at line 7 of file yenta_socket.h.

#define CB_CSTSMASK   0x00000001 /* Card status mask */

Definition at line 13 of file yenta_socket.h.

#define CB_CVSTEST   0x00004000 /* Card VS test */

Definition at line 51 of file yenta_socket.h.

#define CB_DATALOST   0x00000100 /* Potential data loss due to card removal */

Definition at line 26 of file yenta_socket.h.

#define CB_F16BITCARD   0x00000010 /* Force 16-bit PCMCIA card */

Definition at line 42 of file yenta_socket.h.

#define CB_F3VCARD   0x00000800 /* Force 3.3 volt card */

Definition at line 48 of file yenta_socket.h.

#define CB_F5VCARD   0x00000400 /* Force 5.0 volt card */

Definition at line 47 of file yenta_socket.h.

#define CB_FBADVCCREQ   0x00000200 /* Force bad Vcc request */

Definition at line 46 of file yenta_socket.h.

#define CB_FCARDSTS   0x00000001 /* Force CSTSCHG */

Definition at line 38 of file yenta_socket.h.

#define CB_FCBCARD   0x00000020 /* Force CardBus line */

Definition at line 43 of file yenta_socket.h.

#define CB_FCDETECT1   0x00000002 /* Force CD1EVENT */

Definition at line 39 of file yenta_socket.h.

#define CB_FCDETECT2   0x00000004 /* Force CD2EVENT */

Definition at line 40 of file yenta_socket.h.

#define CB_FDATALOST   0x00000100 /* Force data lost */

Definition at line 45 of file yenta_socket.h.

#define CB_FNOTACARD   0x00000080 /* Force NOTACARD */

Definition at line 44 of file yenta_socket.h.

#define CB_FPWRCYCLE   0x00000008 /* Force PWREVENT */

Definition at line 41 of file yenta_socket.h.

#define CB_FXVCARD   0x00001000 /* Force X.X volt card */

Definition at line 49 of file yenta_socket.h.

#define CB_FYVCARD   0x00002000 /* Force Y.Y volt card */

Definition at line 50 of file yenta_socket.h.

#define CB_IREQCINT   0x00000040 /* READY(xIRQ)/xCINT high */

Definition at line 24 of file yenta_socket.h.

#define CB_LEGACY_MODE_BASE   0x44

Definition at line 91 of file yenta_socket.h.

#define CB_MEM_PAGE (   map)    (0x40 + (map))

Definition at line 96 of file yenta_socket.h.

#define CB_NOTACARD   0x00000080 /* Unrecognizable PC card detected */

Definition at line 25 of file yenta_socket.h.

#define CB_PWRCYCLE   0x00000008 /* Socket powered */

Definition at line 21 of file yenta_socket.h.

#define CB_PWREVENT   0x00000008 /* PWRCYCLE change event */

Definition at line 10 of file yenta_socket.h.

#define CB_PWRMASK   0x00000008 /* PWRCYCLE change mask */

Definition at line 15 of file yenta_socket.h.

#define CB_SC_CCLK_STOP   0x00000080

Definition at line 67 of file yenta_socket.h.

#define CB_SC_VCC_3V   0x00000030

Definition at line 64 of file yenta_socket.h.

#define CB_SC_VCC_5V   0x00000020

Definition at line 63 of file yenta_socket.h.

#define CB_SC_VCC_MASK   0x00000070

Definition at line 61 of file yenta_socket.h.

#define CB_SC_VCC_OFF   0x00000000

Definition at line 62 of file yenta_socket.h.

#define CB_SC_VCC_XV   0x00000040

Definition at line 65 of file yenta_socket.h.

#define CB_SC_VCC_YV   0x00000050

Definition at line 66 of file yenta_socket.h.

#define CB_SC_VPP_12V   0x00000001

Definition at line 56 of file yenta_socket.h.

#define CB_SC_VPP_3V   0x00000003

Definition at line 58 of file yenta_socket.h.

#define CB_SC_VPP_5V   0x00000002

Definition at line 57 of file yenta_socket.h.

#define CB_SC_VPP_MASK   0x00000007

Definition at line 54 of file yenta_socket.h.

#define CB_SC_VPP_OFF   0x00000000

Definition at line 55 of file yenta_socket.h.

#define CB_SC_VPP_XV   0x00000004

Definition at line 59 of file yenta_socket.h.

#define CB_SC_VPP_YV   0x00000005

Definition at line 60 of file yenta_socket.h.

#define CB_SKTACCES   0x02000000 /* A PC card access has occurred (clear on read) */

Definition at line 70 of file yenta_socket.h.

#define CB_SKTMODE   0x01000000 /* Clock frequency has changed (clear on read) */

Definition at line 71 of file yenta_socket.h.

#define CB_SOCKET_CONTROL   0x10

Definition at line 53 of file yenta_socket.h.

#define CB_SOCKET_EVENT   0x00

Definition at line 6 of file yenta_socket.h.

#define CB_SOCKET_FORCE   0x0C

Definition at line 37 of file yenta_socket.h.

#define CB_SOCKET_MASK   0x04

Definition at line 12 of file yenta_socket.h.

#define CB_SOCKET_POWER   0x20

Definition at line 69 of file yenta_socket.h.

#define CB_SOCKET_STATE   0x08

Definition at line 17 of file yenta_socket.h.

#define CB_XVCARD   0x00001000 /* Card Vcc at X.X volts? */

Definition at line 30 of file yenta_socket.h.

#define CB_XVSOCKET   0x40000000 /* Socket Vcc at X.X volts? */

Definition at line 34 of file yenta_socket.h.

#define CB_YVCARD   0x00002000 /* Card Vcc at Y.Y volts? */

Definition at line 31 of file yenta_socket.h.

#define CB_YVSOCKET   0x80000000 /* Socket Vcc at Y.Y volts? */

Definition at line 35 of file yenta_socket.h.

#define YENTA_16BIT_POWER_DF   0x00000002

Definition at line 101 of file yenta_socket.h.

#define YENTA_16BIT_POWER_EXCA   0x00000001

Definition at line 100 of file yenta_socket.h.