ubuntu 在 R40e 上 還有 Debian 在 Sempron 2600 上

2010年12月21日 星期二

linux - mmc host

struct mmc_host { struct device *parent; struct device class_dev; int index; const struct mmc_host_ops *ops; unsigned int f_min; unsigned int f_max; u32 ocr_avail; unsigned long caps; /* Host capabilities */ /* host specific block data */ unsigned int max_seg_size; /* see blk_queue_max_segment_size */ unsigned short max_hw_segs; /* see blk_queue_max_hw_segments */ unsigned short max_phys_segs; /* see blk_queue_max_phys_segments */ unsigned short unused; unsigned int max_req_size; /* maximum number of bytes in one req */ unsigned int max_blk_size; /* maximum size of one mmc block */ unsigned int max_blk_count; /* maximum number of blocks in one req */ /* private data */ spinlock_t lock; /* lock for claim and bus ops */ struct mmc_ios ios; /* current io bus settings */ u32 ocr; /* the current OCR setting */ /* group bitfields together to minimize padding */ unsigned int use_spi_crc:1; unsigned int claimed:1; /* host exclusively claimed */ unsigned int bus_dead:1; /* bus has been released */ #ifdef CONFIG_MMC_DEBUG unsigned int removed:1; /* host is being removed */ #endif struct mmc_card *card; /* device attached to this host */ wait_queue_head_t wq; struct delayed_work detect; const struct mmc_bus_ops *bus_ops; /* current bus driver */ unsigned int bus_refs; /* reference counter */ unsigned int sdio_irqs; struct task_struct *sdio_irq_thread; atomic_t sdio_irq_thread_abort; #ifdef CONFIG_LEDS_TRIGGERS struct led_trigger *led; /* activity led */ #endif struct dentry *debugfs_root; unsigned long private[0] ____cacheline_aligned; } print debug message 可以用 mmc_hostname(struct mmc_host *host) 印出 %s
ref
  1. http://www.esawdust.com/blog/serial/files/tag-sd.html
  2. http://elm-chan.org/docs/mmc/mmc_e.html
  3. http://www.imhan.com/tag/MMC/
  4. http://www.phpfans.net/article/htmls/201006/Mjg3NzM4.html
  5. http://blog.csdn.net/evilcode/archive/2010/12/16/6079772.aspx
  6. http://zh.wikipedia.org/zh-tw/Secure_Digital
  7. http://www.sdcard.org/developers/tech/sdcard/pls/Simplified_Physical_Layer_Spec.pdf
  8. http://www.hardwarebook.info/SDIO

沒有留言:

標籤

網誌存檔