@@ -424,15 +424,15 @@ struct rt_sdhci_host
424424 char * bounce_buffer ; /* For packing SDMA reads/writes */
425425 rt_uint64_t bounce_addr ;
426426 unsigned int bounce_buffer_size ;
427- void * bounce_orig_buf ;
428- rt_bool_t bounce_active ;
427+ void * bounce_orig_buf ;
428+ rt_bool_t bounce_active ;
429429
430430 const struct rt_sdhci_ops * ops ; /* Low level hw interface */
431431
432432 /* Internal data */
433- struct rt_mmc_host * mmc ; /* MMC structure */
433+ struct rt_mmc_host * mmc ; /* MMC structure */
434434 struct rt_mmc_host_ops mmc_host_ops ; /* MMC host ops */
435- rt_uint64_t dma_mask ; /* custom DMA mask */
435+ rt_uint64_t dma_mask ; /* custom DMA mask */
436436
437437 rt_spinlock_t lock ;
438438 int flags ; /* Host attributes */
@@ -478,15 +478,15 @@ struct rt_sdhci_host
478478 unsigned int data_early : 1 ; /* Data finished before cmd */
479479
480480 unsigned int blocks ; /* remaining PIO blocks */
481- rt_size_t align_buffer_sz ; /* Bounce buffer size */
482- rt_uint64_t align_addr ; /* Mapped bounce buffer */
481+ rt_size_t align_buffer_sz ; /* Bounce buffer size */
482+ rt_uint64_t align_addr ; /* Mapped bounce buffer */
483483
484484 struct rt_workqueue * complete_wq ; /* Request completion wq */
485485 struct rt_work complete_work ; /* Request completion work */
486486
487487 struct rt_workqueue * irq_wq ;
488488 struct rt_work irq_work ;
489- struct rt_work poll_work ;
489+ struct rt_work poll_work ;
490490
491491 struct rt_timer timer ; /* Timer for timeouts */
492492 struct rt_timer data_timer ; /* Timer for data timeouts */
@@ -521,8 +521,8 @@ struct rt_sdhci_host
521521#define RT_SDHCI_TUNING_MODE_2 1
522522#define RT_SDHCI_TUNING_MODE_3 2
523523
524- int tuning_delay ;
525- int tuning_loop_count ;
524+ int tuning_delay ;
525+ int tuning_loop_count ;
526526 rt_uint32_t sdma_boundary ;
527527 rt_uint64_t data_timeout ;
528528
@@ -531,31 +531,31 @@ struct rt_sdhci_host
531531
532532struct rt_sdhci_ops
533533{
534- rt_uint32_t (* read_l )(struct rt_sdhci_host * host , int reg );
535- rt_uint16_t (* read_w )(struct rt_sdhci_host * host , int reg );
536- rt_uint8_t (* read_b )(struct rt_sdhci_host * host , int reg );
537- void (* write_l )(struct rt_sdhci_host * host , rt_uint32_t val , int reg );
538- void (* write_w )(struct rt_sdhci_host * host , rt_uint16_t val , int reg );
539- void (* write_b )(struct rt_sdhci_host * host , rt_uint8_t val , int reg );
540- void (* set_clock )(struct rt_sdhci_host * host , unsigned int clock );
541- void (* set_power )(struct rt_sdhci_host * host , unsigned char mode , unsigned short vdd );
542- rt_uint32_t (* irq )(struct rt_sdhci_host * host , rt_uint32_t intmask );
543- int (* set_dma_mask )(struct rt_sdhci_host * host );
544- int (* enable_dma )(struct rt_sdhci_host * host );
534+ rt_uint32_t (* read_l )(struct rt_sdhci_host * host , int reg );
535+ rt_uint16_t (* read_w )(struct rt_sdhci_host * host , int reg );
536+ rt_uint8_t (* read_b )(struct rt_sdhci_host * host , int reg );
537+ void (* write_l )(struct rt_sdhci_host * host , rt_uint32_t val , int reg );
538+ void (* write_w )(struct rt_sdhci_host * host , rt_uint16_t val , int reg );
539+ void (* write_b )(struct rt_sdhci_host * host , rt_uint8_t val , int reg );
540+ void (* set_clock )(struct rt_sdhci_host * host , unsigned int clock );
541+ void (* set_power )(struct rt_sdhci_host * host , unsigned char mode , unsigned short vdd );
542+ rt_uint32_t (* irq )(struct rt_sdhci_host * host , rt_uint32_t intmask );
543+ int (* set_dma_mask )(struct rt_sdhci_host * host );
544+ int (* enable_dma )(struct rt_sdhci_host * host );
545545 unsigned int (* get_max_clock )(struct rt_sdhci_host * host );
546546 unsigned int (* get_min_clock )(struct rt_sdhci_host * host );
547547 unsigned int (* get_timeout_clock )(struct rt_sdhci_host * host );
548548 unsigned int (* get_max_timeout_count )(struct rt_sdhci_host * host );
549- void (* set_timeout )(struct rt_sdhci_host * host , struct rt_mmcsd_cmd * cmd );
550- void (* set_bus_width )(struct rt_sdhci_host * host , int width );
549+ void (* set_timeout )(struct rt_sdhci_host * host , struct rt_mmcsd_cmd * cmd );
550+ void (* set_bus_width )(struct rt_sdhci_host * host , int width );
551551 unsigned int (* get_ro )(struct rt_sdhci_host * host );
552- void (* reset )(struct rt_sdhci_host * host , rt_uint8_t mask );
553- int (* platform_execute_tuning )(struct rt_sdhci_host * host , rt_uint32_t opcode );
554- void (* set_uhs_signaling )(struct rt_sdhci_host * host , unsigned int uhs );
555- void (* hw_reset )(struct rt_sdhci_host * host );
556- void (* card_event )(struct rt_sdhci_host * host );
557- void (* voltage_switch )(struct rt_sdhci_host * host );
558- void (* request_done )(struct rt_sdhci_host * host , struct rt_mmcsd_req * mrq );
552+ void (* reset )(struct rt_sdhci_host * host , rt_uint8_t mask );
553+ int (* platform_execute_tuning )(struct rt_sdhci_host * host , rt_uint32_t opcode );
554+ void (* set_uhs_signaling )(struct rt_sdhci_host * host , unsigned int uhs );
555+ void (* hw_reset )(struct rt_sdhci_host * host );
556+ void (* card_event )(struct rt_sdhci_host * host );
557+ void (* voltage_switch )(struct rt_sdhci_host * host );
558+ void (* request_done )(struct rt_sdhci_host * host , struct rt_mmcsd_req * mrq );
559559};
560560
561561rt_inline void rt_sdhci_writel (struct rt_sdhci_host * host , rt_uint32_t val , int reg )
0 commit comments