mirror of
https://git.freebsd.org/ports.git
synced 2025-05-14 08:11:50 -04:00
This loops back some local fixes and enhancements but also brings initial support for writing EXT_CSD values and GEN_CMD (CMD56) read support, both for vendor-specific bits. Also: - Use more up-to-date location for WWW and pkg-descr. - Take back port. Approved by: netchild
25 lines
641 B
C
25 lines
641 B
C
--- mmc.h.orig 2023-02-09 14:16:51 UTC
|
|
+++ mmc.h
|
|
@@ -17,8 +17,22 @@
|
|
* those modifications are Copyright (c) 2016 SanDisk Corp.
|
|
*/
|
|
|
|
+#if defined(__linux__)
|
|
#include <linux/major.h>
|
|
#include <linux/mmc/ioctl.h>
|
|
+#elif defined(__FreeBSD__)
|
|
+#include <dev/mmc/mmc_ioctl.h>
|
|
+#include <sys/endian.h>
|
|
+#include <sys/types.h>
|
|
+typedef int8_t __s8;
|
|
+typedef uint8_t __u8;
|
|
+typedef int16_t __s16;
|
|
+typedef uint16_t __u16;
|
|
+typedef int32_t __s32;
|
|
+typedef uint32_t __u32;
|
|
+typedef int64_t __s64;
|
|
+typedef uint64_t __u64;
|
|
+#endif
|
|
|
|
/* From kernel linux/mmc/mmc.h */
|
|
#define MMC_GO_IDLE_STATE 0 /* bc */
|