4 #ifdef CONFIG_DATAFLASH_MMC_SELECT
5 extern void AT91F_SelectMMC(void);
6 extern void AT91F_SelectSPI(void);
7 extern int AT91F_GetMuxStatus(void);
9 extern void AT91F_SpiInit(void);
10 extern void AT91F_SpiEnable(int cs);
11 extern unsigned int AT91F_SpiWrite ( AT91PS_DataflashDesc pDesc );
12 extern AT91S_DataFlashStatus AT91F_DataFlashSendCommand(
13 AT91PS_DataFlash pDataFlash,
16 unsigned int DataflashAddress);
17 extern AT91S_DataFlashStatus AT91F_DataFlashGetStatus (
18 AT91PS_DataflashDesc pDesc);
19 extern AT91S_DataFlashStatus AT91F_DataFlashWaitReady (
20 AT91PS_DataflashDesc pDataFlashDesc,
21 unsigned int timeout);
22 extern AT91S_DataFlashStatus AT91F_DataFlashContinuousRead (
23 AT91PS_DataFlash pDataFlash,
25 unsigned char *dataBuffer,
27 extern AT91S_DataFlashStatus AT91F_DataFlashPagePgmBuf(
28 AT91PS_DataFlash pDataFlash,
31 unsigned int SizeToWrite);
32 extern AT91S_DataFlashStatus AT91F_MainMemoryToBufferTransfert(
33 AT91PS_DataFlash pDataFlash,
34 unsigned char BufferCommand,
36 extern AT91S_DataFlashStatus AT91F_DataFlashWriteBuffer (
37 AT91PS_DataFlash pDataFlash,
38 unsigned char BufferCommand,
39 unsigned char *dataBuffer,
40 unsigned int bufferAddress,
42 extern AT91S_DataFlashStatus AT91F_PageErase(
43 AT91PS_DataFlash pDataFlash,
45 extern AT91S_DataFlashStatus AT91F_BlockErase(
46 AT91PS_DataFlash pDataFlash,
48 extern AT91S_DataFlashStatus AT91F_WriteBufferToMain (
49 AT91PS_DataFlash pDataFlash,
50 unsigned char BufferCommand,
52 extern AT91S_DataFlashStatus AT91F_PartialPageWrite (
53 AT91PS_DataFlash pDataFlash,
57 extern AT91S_DataFlashStatus AT91F_DataFlashWrite(
58 AT91PS_DataFlash pDataFlash,
62 extern int AT91F_DataFlashRead(
63 AT91PS_DataFlash pDataFlash,
67 extern int AT91F_DataflashProbe(int cs, AT91PS_DataflashDesc pDesc);