Lines Matching defs:sdhci_host
375 struct sdhci_host { struct
377 const char *hw_name; /* Hardware bus name */
379 unsigned int quirks; /* Deviations from spec. */
442 unsigned int quirks2; /* More deviations from spec. */
489 int irq; /* Device IRQ */
490 void __iomem *ioaddr; /* Mapped address */
491 phys_addr_t mapbase; /* physical address base */
492 char *bounce_buffer; /* For packing SDMA reads/writes */
493 dma_addr_t bounce_addr;
494 unsigned int bounce_buffer_size;
496 const struct sdhci_ops *ops; /* Low level hw interface */
499 struct mmc_host *mmc; /* MMC structure */
500 struct mmc_host_ops mmc_host_ops; /* MMC host ops */
501 u64 dma_mask; /* custom DMA mask */
504 struct led_classdev led; /* LED control */
505 char led_name[32];
508 spinlock_t lock; /* Mutex */
510 int flags; /* Host attributes */
525 unsigned int version; /* SDHCI spec. version */
527 unsigned int max_clk; /* Max possible freq (MHz) */
528 unsigned int timeout_clk; /* Timeout freq (KHz) */
529 u8 max_timeout_count; /* Vendor specific max timeout count */
530 unsigned int clk_mul; /* Clock Muliplier value */
532 unsigned int clock; /* Current clock (MHz) */
533 u8 pwr; /* Current voltage */
534 u8 drv_type; /* Current UHS-I driver type */
535 bool reinit_uhs; /* Force UHS-related re-initialization */
537 bool runtime_suspended; /* Host is runtime suspended */
538 bool bus_on; /* Bus power prevents runtime suspend */
539 bool preset_enabled; /* Preset is enabled */
540 bool pending_reset; /* Cmd/data reset is pending */
541 bool irq_wake_enabled; /* IRQ wakeup is enabled */
542 bool v4_mode; /* Host Version 4 Enable */
543 bool use_external_dma; /* Host selects to use external DMA */
544 bool always_defer_done; /* Always defer to complete requests */
546 struct mmc_request *mrqs_done[SDHCI_MAX_MRQS]; /* Requests done */
547 struct mmc_command *cmd; /* Current command */
548 struct mmc_command *data_cmd; /* Current data command */
549 struct mmc_command *deferred_cmd; /* Deferred command */
550 struct mmc_data *data; /* Current data request */
551 unsigned int data_early:1; /* Data finished before cmd */
553 struct sg_mapping_iter sg_miter; /* SG state for PIO */
554 unsigned int blocks; /* remaining PIO blocks */
556 int sg_count; /* Mapped sg entries */
557 int max_adma; /* Max. length in ADMA descriptor */
559 void *adma_table; /* ADMA descriptor table */
560 void *align_buffer; /* Bounce buffer */
562 size_t adma_table_sz; /* ADMA descriptor table size */
563 size_t align_buffer_sz; /* Bounce buffer size */
565 dma_addr_t adma_addr; /* Mapped ADMA descr. table */
566 dma_addr_t align_addr; /* Mapped bounce buffer */
568 unsigned int desc_sz; /* ADMA current descriptor size */
569 unsigned int alloc_desc_sz; /* ADMA descr. max size host supports */
571 struct workqueue_struct *complete_wq; /* Request completion wq */
572 struct work_struct complete_work; /* Request completion work */
574 struct timer_list timer; /* Timer for timeouts */
575 struct timer_list data_timer; /* Timer for data timeouts */
578 struct dma_chan *rx_chan;
579 struct dma_chan *tx_chan;
582 u32 caps; /* CAPABILITY_0 */
583 u32 caps1; /* CAPABILITY_1 */
584 bool read_caps; /* Capability flags have been read */
586 bool sdhci_core_to_disable_vqmmc; /* sdhci core can disable vqmmc */
587 unsigned int ocr_avail_sdio; /* OCR bit masks */
588 unsigned int ocr_avail_sd;
589 unsigned int ocr_avail_mmc;
590 u32 ocr_mask; /* available voltages */
592 unsigned timing; /* Current timing */
594 u32 thread_isr;
597 u32 ier;
599 bool cqe_on; /* CQE is operating */
600 u32 cqe_ier; /* CQE interrupt mask */
601 u32 cqe_err_ier; /* CQE error interrupt mask */
603 wait_queue_head_t buf_ready_int; /* Waitqueue for Buffer Read Ready interrupt */
604 unsigned int tuning_done; /* Condition flag set when CMD19 succeeds */
629 u32 (*read_l)(struct sdhci_host *host, int reg); argument