]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - include/linux/mmc/dw_mmc.h
mmc: Support of PCI mode in the dw_mmc driver
[karo-tx-linux.git] / include / linux / mmc / dw_mmc.h
index aae5d1f1bb394af5a3d7bd1156bc11b67e556882..8f66e28f5a0f9a2b9f79c80a7c778eee7d4472ce 100644 (file)
@@ -76,7 +76,7 @@ struct mmc_data;
  * @num_slots: Number of slots available.
  * @verid: Denote Version ID.
  * @data_offset: Set the offset of DATA register according to VERID.
- * @pdev: Platform device associated with the MMC controller.
+ * @dev: Device associated with the MMC controller.
  * @pdata: Platform data associated with the MMC controller.
  * @slot: Slots sharing this MMC controller.
  * @fifo_depth: depth of FIFO.
@@ -87,6 +87,8 @@ struct mmc_data;
  * @push_data: Pointer to FIFO push function.
  * @pull_data: Pointer to FIFO pull function.
  * @quirks: Set of quirks that apply to specific versions of the IP.
+ * @irq_flags: The flags to be passed to request_irq.
+ * @irq: The irq value to be passed to request_irq.
  *
  * Locking
  * =======
@@ -153,7 +155,7 @@ struct dw_mci {
        u32                     fifoth_val;
        u16                     verid;
        u16                     data_offset;
-       struct platform_device  *pdev;
+       struct device           dev;
        struct dw_mci_board     *pdata;
        struct dw_mci_slot      *slot[MAX_MCI_SLOTS];
 
@@ -174,6 +176,8 @@ struct dw_mci {
        u32                     quirks;
 
        struct regulator        *vmmc;  /* Power regulator */
+       unsigned long           irq_flags; /* IRQ flags */
+       unsigned int            irq;
 };
 
 /* DMA ops for Internal/External DMAC interface */