mmc_disk: implement B_TRIM_DEVICE

Change-Id: Ib08a1e196441f35550fe221b912332b4803a04b4
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3641
Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
Adrien Destugues
2021-01-23 12:20:59 +00:00
committed by Adrien Destugues
parent cef80a1fb7
commit 2028d6386c
4 changed files with 91 additions and 3 deletions
+5
View File
@@ -49,6 +49,11 @@ enum SD_COMMANDS {
SD_WRITE_SINGLE_BLOCK = 24,
SD_WRITE_MULTIPLE_BLOCKS = 25,
// Erase commands, class 5
SD_ERASE_WR_BLK_START = 32,
SD_ERASE_WR_BLK_END = 33,
SD_ERASE = 38,
// Application specific commands, class 8
SD_APP_CMD = 55,
@@ -6,7 +6,9 @@
#define _FS_TRIM_SUPPORT_H
#include <AutoDeleter.h>
#include <KernelExport.h>
#include <SupportDefs.h>
#include <kernel.h>
#include <syscall_restart.h>