2017-10-06 09:48:52 -04: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-29 01:10:11 -04:00
|
|
|
|
2017-10-14 06:57:45 -04:00
|
|
|
#ifndef _SD_H
|
|
|
|
#define _SD_H
|
2014-06-29 01:10:11 -04:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2017-10-14 06:57:45 -04: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-29 01:10:11 -04:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define WAIT 1024
|
|
|
|
|
|
|
|
#define DISK_IFACE_SPI 0
|
|
|
|
#define DISK_IFACE_SD 1
|
|
|
|
|
|
|
|
|
2017-10-27 15:36:28 -04:00
|
|
|
#endif /* _SD_H */
|