mmc-dev-attrs.txt 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. SD and MMC Block Device Attributes
  2. ==================================
  3. These attributes are defined for the block devices associated with the
  4. SD or MMC device.
  5. The following attributes are read/write.
  6. force_ro Enforce read-only access even if write protect switch is off.
  7. SD and MMC Device Attributes
  8. ============================
  9. All attributes are read-only.
  10. cid Card Identifaction Register
  11. csd Card Specific Data Register
  12. scr SD Card Configuration Register (SD only)
  13. date Manufacturing Date (from CID Register)
  14. fwrev Firmware/Product Revision (from CID Register) (SD and MMCv1 only)
  15. hwrev Hardware/Product Revision (from CID Register) (SD and MMCv1 only)
  16. manfid Manufacturer ID (from CID Register)
  17. name Product Name (from CID Register)
  18. oemid OEM/Application ID (from CID Register)
  19. serial Product Serial Number (from CID Register)
  20. erase_size Erase group size
  21. preferred_erase_size Preferred erase size
  22. Note on Erase Size and Preferred Erase Size:
  23. "erase_size" is the minimum size, in bytes, of an erase
  24. operation. For MMC, "erase_size" is the erase group size
  25. reported by the card. Note that "erase_size" does not apply
  26. to trim or secure trim operations where the minimum size is
  27. always one 512 byte sector. For SD, "erase_size" is 512
  28. if the card is block-addressed, 0 otherwise.
  29. SD/MMC cards can erase an arbitrarily large area up to and
  30. including the whole card. When erasing a large area it may
  31. be desirable to do it in smaller chunks for three reasons:
  32. 1. A single erase command will make all other I/O on
  33. the card wait. This is not a problem if the whole card
  34. is being erased, but erasing one partition will make
  35. I/O for another partition on the same card wait for the
  36. duration of the erase - which could be a several
  37. minutes.
  38. 2. To be able to inform the user of erase progress.
  39. 3. The erase timeout becomes too large to be very
  40. useful. Because the erase timeout contains a margin
  41. which is multiplied by the size of the erase area,
  42. the value can end up being several minutes for large
  43. areas.
  44. "erase_size" is not the most efficient unit to erase
  45. (especially for SD where it is just one sector),
  46. hence "preferred_erase_size" provides a good chunk
  47. size for erasing large areas.
  48. For MMC, "preferred_erase_size" is the high-capacity
  49. erase size if a card specifies one, otherwise it is
  50. based on the capacity of the card.
  51. For SD, "preferred_erase_size" is the allocation unit
  52. size specified by the card.
  53. "preferred_erase_size" is in bytes.