1 /* 2 * This file is part of libaacs 3 * Copyright (C) 2009-2010 Obliter0n 4 * Copyright (C) 2010-2015 npzacs 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library. If not, see 18 * <http://www.gnu.org/licenses/>. 19 */ 20 21 #ifndef MMC_DEVICE_H_ 22 #define MMC_DEVICE_H_ 23 24 #include "util/attributes.h" 25 26 #include <stdint.h> 27 #include <stddef.h> 28 29 typedef struct mmcdev MMCDEV; 30 31 BD_PRIVATE MMCDEV *device_open(const char *path); 32 BD_PRIVATE void device_close(MMCDEV **mmc); 33 34 BD_PRIVATE int device_send_cmd(MMCDEV *dev, const uint8_t *cmd, uint8_t *buf, size_t tx, size_t rx); 35 36 #endif /* MMC_DEVICE_H_ */ 37