/* 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 "sdcard.h" LONG SD_AbortIO(struct IORequest *io asm("a1")) { struct SDCardBase *SDCardBase = (struct SDCardBase *)io->io_Device; struct ExecBase *SysBase = SDCardBase->sd_SysBase; /* AbortIO is a *wish* call. Someone would like to abort current IORequest */ Forbid(); io->io_Error = IOERR_ABORTED; Permit(); return 0; }