diff options
author | Marius Strobl <marius@FreeBSD.org> | 2018-03-04 19:08:00 +0000 |
---|---|---|
committer | Marius Strobl <marius@FreeBSD.org> | 2018-03-04 19:08:00 +0000 |
commit | 0bb589356474058fa6343a5dca283bd74d7d28a1 (patch) | |
tree | 5ab74869f0c5015c98868642934e567cc1f2d7dc /sysutils/mmc-utils/files/patch-mmc.h | |
parent | Fix plist for DOCS/DOXYGEN. (diff) |
Notes
Notes:
svn path=/head/; revision=463595
Diffstat (limited to 'sysutils/mmc-utils/files/patch-mmc.h')
-rw-r--r-- | sysutils/mmc-utils/files/patch-mmc.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/sysutils/mmc-utils/files/patch-mmc.h b/sysutils/mmc-utils/files/patch-mmc.h index 1017e7cc82c0..06e2590edf25 100644 --- a/sysutils/mmc-utils/files/patch-mmc.h +++ b/sysutils/mmc-utils/files/patch-mmc.h @@ -1,11 +1,10 @@ ---- mmc.h.orig 2017-01-25 19:03:34 UTC +--- mmc.h.orig 2018-02-26 22:10:51 UTC +++ mmc.h -@@ -17,8 +17,22 @@ +@@ -17,10 +17,26 @@ * those modifications are Copyright (c) 2016 SanDisk Corp. */ +#if defined(__linux__) - #include <asm-generic/int-ll64.h> #include <linux/mmc/ioctl.h> +#elif defined(__FreeBSD__) +#include <dev/mmc/mmc_ioctl.h> @@ -20,6 +19,11 @@ +typedef int64_t __s64; +typedef uint64_t __u64; +#endif - #include <stdio.h> - #define CHECK(expr, msg, err_stmt) { if (expr) { fprintf(stderr, msg); err_stmt; } } ++#if 0 + /* From kernel linux/major.h */ + #define MMC_BLOCK_MAJOR 179 ++#endif + + /* From kernel linux/mmc/mmc.h */ + #define MMC_SWITCH 6 /* ac [31:0] See below R1b */ |