2017-10-06 14:48:52 +01:00
|
|
|
//
|
|
|
|
// Copyright (c) 2017 The Altra64 project contributors
|
|
|
|
// Portions (c) 2011 KRIK
|
|
|
|
// See LICENSE file in the project root for full license information.
|
|
|
|
//
|
2014-06-28 22:10:11 -07:00
|
|
|
|
2017-10-14 11:57:45 +01:00
|
|
|
#ifndef _SD_H
|
|
|
|
#define _SD_H
|
2014-06-28 22:10:11 -07:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2017-10-14 11:57:45 +01:00
|
|
|
u8 sdGetInterface();
|
|
|
|
u8 sdInit();
|
|
|
|
u8 sdRead(u32 sector, u8 *buff, u16 count);
|
|
|
|
u8 sdWrite(u32 sector, const u8 *buff, u16 count);
|
|
|
|
|
|
|
|
void sdSetInterface(u32 interface);
|
2014-06-28 22:10:11 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define WAIT 1024
|
|
|
|
|
|
|
|
#define DISK_IFACE_SPI 0
|
|
|
|
#define DISK_IFACE_SD 1
|
|
|
|
|
|
|
|
|
2017-10-27 20:36:28 +01:00
|
|
|
#endif /* _SD_H */
|