2021-09-14 15:51:43 +00:00
|
|
|
/*
|
|
|
|
* fat12.c
|
|
|
|
*
|
|
|
|
* Created on: Aug 29, 2011
|
|
|
|
* Author: Tiberiu
|
|
|
|
*/
|
2021-09-14 15:52:47 +00:00
|
|
|
#if NEVER
|
2021-09-14 15:51:43 +00:00
|
|
|
#include <fileio.h>
|
|
|
|
#include <memory.h>
|
|
|
|
#include "fat.h"
|
|
|
|
|
|
|
|
uint32 Fat12Detect (DevReadRoutine r, uint32 blocksz)
|
|
|
|
{
|
|
|
|
if (!r) return 0;
|
|
|
|
|
|
|
|
// Allocate buffer and call read routine
|
|
|
|
void* buffer = kmalloc(blocksz);
|
|
|
|
if (!(*r)(0,buffer)) return 0;
|
|
|
|
|
|
|
|
// Result of detection
|
|
|
|
uint32 res = FatDetect(buffer);
|
|
|
|
|
|
|
|
// Cleanup
|
|
|
|
kfree(buffer);
|
|
|
|
return (res == 12);
|
|
|
|
}
|
2021-09-14 15:52:47 +00:00
|
|
|
#endif
|