/* Copyright © 2021 Michal Schulz https://github.com/michalsc This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include #include #include #include #include #include #include #include "emmc.h" LONG EMMC_AbortIO(struct IORequest *io asm("a1")) { struct EMMCBase *EMMCBase = (struct EMMCBase *)io->io_Device; struct ExecBase *SysBase = EMMCBase->emmc_SysBase; /* AbortIO is a *wish* call. Someone would like to abort current IORequest */ Forbid(); io->io_Error = IOERR_ABORTED; Permit(); return 0; }