3 #ifdef CONFIG_DATAFLASH_MMC_SELECT
4 extern void AT91F_SelectMMC(void);
5 extern void AT91F_SelectSPI(void);
6 extern int AT91F_GetMuxStatus(void);
8 extern void AT91F_SpiInit(void);
9 extern void AT91F_SpiEnable(int cs);
10 extern unsigned int AT91F_SpiWrite ( AT91PS_DataflashDesc pDesc );
11 extern AT91S_DataFlashStatus AT91F_DataFlashSendCommand(
12 AT91PS_DataFlash pDataFlash,
15 unsigned int DataflashAddress);
16 extern AT91S_DataFlashStatus AT91F_DataFlashGetStatus (
17 AT91PS_DataflashDesc pDesc);
18 extern AT91S_DataFlashStatus AT91F_DataFlashWaitReady (
19 AT91PS_DataflashDesc pDataFlashDesc,
20 unsigned int timeout);
21 extern AT91S_DataFlashStatus AT91F_DataFlashContinuousRead (
22 AT91PS_DataFlash pDataFlash,
24 unsigned char *dataBuffer,
26 extern AT91S_DataFlashStatus AT91F_DataFlashPagePgmBuf(
27 AT91PS_DataFlash pDataFlash,
30 unsigned int SizeToWrite);
31 extern AT91S_DataFlashStatus AT91F_MainMemoryToBufferTransfert(
32 AT91PS_DataFlash pDataFlash,
33 unsigned char BufferCommand,
35 extern AT91S_DataFlashStatus AT91F_DataFlashWriteBuffer (
36 AT91PS_DataFlash pDataFlash,
37 unsigned char BufferCommand,
38 unsigned char *dataBuffer,
39 unsigned int bufferAddress,
41 extern AT91S_DataFlashStatus AT91F_PageErase(
42 AT91PS_DataFlash pDataFlash,
44 extern AT91S_DataFlashStatus AT91F_BlockErase(
45 AT91PS_DataFlash pDataFlash,
47 extern AT91S_DataFlashStatus AT91F_WriteBufferToMain (
48 AT91PS_DataFlash pDataFlash,
49 unsigned char BufferCommand,
51 extern AT91S_DataFlashStatus AT91F_PartialPageWrite (
52 AT91PS_DataFlash pDataFlash,
56 extern AT91S_DataFlashStatus AT91F_DataFlashWrite(
57 AT91PS_DataFlash pDataFlash,
61 extern int AT91F_DataFlashRead(
62 AT91PS_DataFlash pDataFlash,
66 extern int AT91F_DataflashProbe(int cs, AT91PS_DataflashDesc pDesc);