Download firmware/hal/mmc.h from Snapkitty/phaser-ags: direct link, hf CLI and curl.
- Browser
- Download file 4.33 kB
-
https://huggingface.co/Snapkitty/phaser-ags/resolve/main/firmware/hal/mmc.h
- Command line
-
hf download hf://Snapkitty/phaser-ags/firmware/hal/mmc.h
-
curl -L -o mmc.h https://huggingface.co/Snapkitty/phaser-ags/resolve/main/firmware/hal/mmc.h
4.33 kB
| /* | |
| * OMAP3530 HSMMC (High-Speed MMC/SD) driver | |
| * OMAP3530 has 3 MMC controllers: MMC1 (eMMC/SD card), MMC2, MMC3 | |
| * Needed for: loading kernel from SD card, FAT filesystem boot | |
| */ | |
| /* MMC register offsets */ | |
| /* MMC_CON bits */ | |
| /* MMC_HCTL bits */ | |
| /* MMC_SYSCTL bits */ | |
| /* MMC_PSTATE bits */ | |
| /* MMC_STAT bits */ | |
| /* MMC_CMD bits */ | |
| /* MMC_BLK bits */ | |
| /* SD card commands */ | |
| /* SD APP commands (preceded by CMD55) */ | |
| /* Block size */ | |
| typedef struct { | |
| hw_reg32_t base; | |
| uint32_t clock_hz; /* Input clock */ | |
| uint32_t card_clock; /* Card clock frequency */ | |
| uint16_t rca; /* Relative card address */ | |
| uint8_t bus_width; /* 1, 4, or 8 */ | |
| int high_capacity; /* SDHC/eMMC */ | |
| } mmc_dev_t; | |
| int mmc_init(mmc_dev_t *dev, uint32_t base, uint32_t clock_hz); | |
| int mmc_send_cmd(mmc_dev_t *dev, uint32_t cmd, uint32_t arg, | |
| uint32_t rsp_type, uint32_t *rsp); | |
| int mmc_read_block(mmc_dev_t *dev, uint32_t block, uint8_t *buf); | |
| int mmc_read_blocks(mmc_dev_t *dev, uint32_t start, uint8_t *buf, uint32_t count); | |
| int mmc_detect_card(mmc_dev_t *dev); | |