1
0
Fork 0
forked from len0rd/rockbox

implement single-driver storage layer with macros instead of inlines

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18975 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Frank Gevaerts 2008-11-02 01:14:46 +00:00
parent 0b34b77e13
commit 430343bca7
12 changed files with 211 additions and 265 deletions

View file

@ -78,9 +78,11 @@ struct partinfo* disk_init(IF_MV_NONVOID(int drive))
return NULL; /* out of space in table */
#else
struct partinfo* pinfo = part;
int drive;
(void)drive;
#endif
storage_read_sectors(IF_MV2(drive,) 0,1, &sector);
storage_read_sectors(drive, 0,1, &sector);
/* check that the boot sector is initialized */
if ( (sector[510] != 0x55) ||
(sector[511] != 0xaa)) {