Lines Matching defs:sdhci_host
365 struct sdhci_host { struct
367 const char *hw_name; /* Hardware bus name */
369 unsigned int quirks; /* Deviations from spec. */
436 unsigned int quirks2; /* More deviations from spec. */
481 int irq; /* Device IRQ */
482 void __iomem *ioaddr; /* Mapped address */
483 phys_addr_t mapbase; /* physical address base */
484 char *bounce_buffer; /* For packing SDMA reads/writes */
485 dma_addr_t bounce_addr;
486 unsigned int bounce_buffer_size;
488 const struct sdhci_ops *ops; /* Low level hw interface */
491 struct mmc_host *mmc; /* MMC structure */
492 struct mmc_host_ops mmc_host_ops; /* MMC host ops */
493 u64 dma_mask; /* custom DMA mask */
496 struct led_classdev led; /* LED control */
497 char led_name[32];
500 spinlock_t lock; /* Mutex */
502 int flags; /* Host attributes */
517 unsigned int version; /* SDHCI spec. version */
519 unsigned int max_clk; /* Max possible freq (MHz) */
520 unsigned int timeout_clk; /* Timeout freq (KHz) */
521 u8 max_timeout_count; /* Vendor specific max timeout count */
522 unsigned int clk_mul; /* Clock Muliplier value */
524 unsigned int clock; /* Current clock (MHz) */
525 u8 pwr; /* Current voltage */
527 bool runtime_suspended; /* Host is runtime suspended */
528 bool bus_on; /* Bus power prevents runtime suspend */
529 bool preset_enabled; /* Preset is enabled */
530 bool pending_reset; /* Cmd/data reset is pending */
531 bool irq_wake_enabled; /* IRQ wakeup is enabled */
532 bool v4_mode; /* Host Version 4 Enable */
533 bool use_external_dma; /* Host selects to use external DMA */
534 bool always_defer_done; /* Always defer to complete requests */
536 struct mmc_request *mrqs_done[SDHCI_MAX_MRQS]; /* Requests done */
537 struct mmc_command *cmd; /* Current command */
538 struct mmc_command *data_cmd; /* Current data command */
539 struct mmc_command *deferred_cmd; /* Deferred command */
540 struct mmc_data *data; /* Current data request */
541 unsigned int data_early:1; /* Data finished before cmd */
543 struct sg_mapping_iter sg_miter; /* SG state for PIO */
544 unsigned int blocks; /* remaining PIO blocks */
546 int sg_count; /* Mapped sg entries */
547 int max_adma; /* Max. length in ADMA descriptor */
549 void *adma_table; /* ADMA descriptor table */
550 void *align_buffer; /* Bounce buffer */
552 size_t adma_table_sz; /* ADMA descriptor table size */
553 size_t align_buffer_sz; /* Bounce buffer size */
555 dma_addr_t adma_addr; /* Mapped ADMA descr. table */
556 dma_addr_t align_addr; /* Mapped bounce buffer */
558 unsigned int desc_sz; /* ADMA current descriptor size */
559 unsigned int alloc_desc_sz; /* ADMA descr. max size host supports */
561 struct workqueue_struct *complete_wq; /* Request completion wq */
562 struct work_struct complete_work; /* Request completion work */
564 struct timer_list timer; /* Timer for timeouts */
565 struct timer_list data_timer; /* Timer for data timeouts */
568 struct dma_chan *rx_chan;
569 struct dma_chan *tx_chan;
572 u32 caps; /* CAPABILITY_0 */
573 u32 caps1; /* CAPABILITY_1 */
574 bool read_caps; /* Capability flags have been read */
576 bool sdhci_core_to_disable_vqmmc; /* sdhci core can disable vqmmc */
577 unsigned int ocr_avail_sdio; /* OCR bit masks */
578 unsigned int ocr_avail_sd;
579 unsigned int ocr_avail_mmc;
580 u32 ocr_mask; /* available voltages */
582 unsigned timing; /* Current timing */
584 u32 thread_isr;
587 u32 ier;
589 bool cqe_on; /* CQE is operating */
590 u32 cqe_ier; /* CQE interrupt mask */
591 u32 cqe_err_ier; /* CQE error interrupt mask */
593 wait_queue_head_t buf_ready_int; /* Waitqueue for Buffer Read Ready interrupt */
594 unsigned int tuning_done; /* Condition flag set when CMD19 succeeds */
619 u32 (*read_l)(struct sdhci_host *host, int reg); argument