Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
sdhci-pci.c File Reference
#include <linux/delay.h>
#include <linux/highmem.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/dma-mapping.h>
#include <linux/slab.h>
#include <linux/device.h>
#include <linux/mmc/host.h>
#include <linux/scatterlist.h>
#include <linux/io.h>
#include <linux/gpio.h>
#include <linux/pm_runtime.h>
#include <linux/mmc/sdhci-pci-data.h>
#include "sdhci.h"

Go to the source code of this file.

Data Structures

struct  sdhci_pci_fixes
 
struct  sdhci_pci_slot
 
struct  sdhci_pci_chip
 

Macros

#define PCI_DEVICE_ID_INTEL_PCH_SDIO0   0x8809
 
#define PCI_DEVICE_ID_INTEL_PCH_SDIO1   0x880a
 
#define PCI_SDHCI_IFPIO   0x00
 
#define PCI_SDHCI_IFDMA   0x01
 
#define PCI_SDHCI_IFVENDOR   0x02
 
#define PCI_SLOT_INFO   0x40 /* 8 bits */
 
#define PCI_SLOT_INFO_SLOTS(x)   ((x >> 4) & 7)
 
#define PCI_SLOT_INFO_FIRST_BAR_MASK   0x07
 
#define MAX_SLOTS   8
 
#define O2_SD_LOCK_WP   0xD3
 
#define O2_SD_MULTI_VCC3V   0xEE
 
#define O2_SD_CLKREQ   0xEC
 
#define O2_SD_CAPS   0xE0
 
#define O2_SD_ADMA1   0xE2
 
#define O2_SD_ADMA2   0xE7
 
#define O2_SD_INF_MOD   0xF1
 
#define SYSKT_CTRL   0x200
 
#define SYSKT_RDFIFO_STAT   0x204
 
#define SYSKT_WRFIFO_STAT   0x208
 
#define SYSKT_POWER_DATA   0x20c
 
#define SYSKT_POWER_330   0xef
 
#define SYSKT_POWER_300   0xf8
 
#define SYSKT_POWER_184   0xcc
 
#define SYSKT_POWER_CMD   0x20d
 
#define SYSKT_POWER_START   (1 << 7)
 
#define SYSKT_POWER_STATUS   0x20e
 
#define SYSKT_POWER_STATUS_OK   (1 << 0)
 
#define SYSKT_BOARD_REV   0x210
 
#define SYSKT_CHIP_REV   0x211
 
#define SYSKT_CONF_DATA   0x212
 
#define SYSKT_CONF_DATA_1V8   (1 << 2)
 
#define SYSKT_CONF_DATA_2V5   (1 << 1)
 
#define SYSKT_CONF_DATA_3V3   (1 << 0)
 
#define sdhci_pci_suspend   NULL
 
#define sdhci_pci_resume   NULL
 
#define sdhci_pci_runtime_suspend   NULL
 
#define sdhci_pci_runtime_resume   NULL
 
#define sdhci_pci_runtime_idle   NULL
 

Functions

 MODULE_DEVICE_TABLE (pci, pci_ids)
 
 module_pci_driver (sdhci_driver)
 
 MODULE_AUTHOR ("Pierre Ossman <[email protected]>")
 
 MODULE_DESCRIPTION ("Secure Digital Host Controller Interface PCI driver")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define MAX_SLOTS   8

Definition at line 49 of file sdhci-pci.c.

#define O2_SD_ADMA1   0xE2

Definition at line 311 of file sdhci-pci.c.

#define O2_SD_ADMA2   0xE7

Definition at line 312 of file sdhci-pci.c.

#define O2_SD_CAPS   0xE0

Definition at line 310 of file sdhci-pci.c.

#define O2_SD_CLKREQ   0xEC

Definition at line 309 of file sdhci-pci.c.

#define O2_SD_INF_MOD   0xF1

Definition at line 313 of file sdhci-pci.c.

#define O2_SD_LOCK_WP   0xD3

Definition at line 307 of file sdhci-pci.c.

#define O2_SD_MULTI_VCC3V   0xEE

Definition at line 308 of file sdhci-pci.c.

#define PCI_DEVICE_ID_INTEL_PCH_SDIO0   0x8809

Definition at line 34 of file sdhci-pci.c.

#define PCI_DEVICE_ID_INTEL_PCH_SDIO1   0x880a

Definition at line 35 of file sdhci-pci.c.

#define PCI_SDHCI_IFDMA   0x01

Definition at line 42 of file sdhci-pci.c.

#define PCI_SDHCI_IFPIO   0x00

Definition at line 41 of file sdhci-pci.c.

#define PCI_SDHCI_IFVENDOR   0x02

Definition at line 43 of file sdhci-pci.c.

#define PCI_SLOT_INFO   0x40 /* 8 bits */

Definition at line 45 of file sdhci-pci.c.

#define PCI_SLOT_INFO_FIRST_BAR_MASK   0x07

Definition at line 47 of file sdhci-pci.c.

#define PCI_SLOT_INFO_SLOTS (   x)    ((x >> 4) & 7)

Definition at line 46 of file sdhci-pci.c.

#define sdhci_pci_resume   NULL

Definition at line 1087 of file sdhci-pci.c.

#define sdhci_pci_runtime_idle   NULL

Definition at line 1168 of file sdhci-pci.c.

#define sdhci_pci_runtime_resume   NULL

Definition at line 1167 of file sdhci-pci.c.

#define sdhci_pci_runtime_suspend   NULL

Definition at line 1166 of file sdhci-pci.c.

#define sdhci_pci_suspend   NULL

Definition at line 1086 of file sdhci-pci.c.

#define SYSKT_BOARD_REV   0x210

Definition at line 589 of file sdhci-pci.c.

#define SYSKT_CHIP_REV   0x211

Definition at line 590 of file sdhci-pci.c.

#define SYSKT_CONF_DATA   0x212

Definition at line 591 of file sdhci-pci.c.

#define SYSKT_CONF_DATA_1V8   (1 << 2)

Definition at line 592 of file sdhci-pci.c.

#define SYSKT_CONF_DATA_2V5   (1 << 1)

Definition at line 593 of file sdhci-pci.c.

#define SYSKT_CONF_DATA_3V3   (1 << 0)

Definition at line 594 of file sdhci-pci.c.

#define SYSKT_CTRL   0x200

Definition at line 578 of file sdhci-pci.c.

#define SYSKT_POWER_184   0xcc

Definition at line 584 of file sdhci-pci.c.

#define SYSKT_POWER_300   0xf8

Definition at line 583 of file sdhci-pci.c.

#define SYSKT_POWER_330   0xef

Definition at line 582 of file sdhci-pci.c.

#define SYSKT_POWER_CMD   0x20d

Definition at line 585 of file sdhci-pci.c.

#define SYSKT_POWER_DATA   0x20c

Definition at line 581 of file sdhci-pci.c.

#define SYSKT_POWER_START   (1 << 7)

Definition at line 586 of file sdhci-pci.c.

#define SYSKT_POWER_STATUS   0x20e

Definition at line 587 of file sdhci-pci.c.

#define SYSKT_POWER_STATUS_OK   (1 << 0)

Definition at line 588 of file sdhci-pci.c.

#define SYSKT_RDFIFO_STAT   0x204

Definition at line 579 of file sdhci-pci.c.

#define SYSKT_WRFIFO_STAT   0x208

Definition at line 580 of file sdhci-pci.c.

Function Documentation

MODULE_AUTHOR ( "Pierre Ossman <[email protected]>"  )
MODULE_DESCRIPTION ( "Secure Digital Host Controller Interface PCI driver )
MODULE_DEVICE_TABLE ( pci  ,
pci_ids   
)
MODULE_LICENSE ( "GPL"  )
module_pci_driver ( sdhci_driver  )