Subversion Repositories freemyipod

Rev

Rev 782 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 782 Rev 784
Line 489... Line 489...
489
    *nread = in[1];
489
    *nread = in[1];
490
    
490
    
491
    return EMCORE_SUCCESS;
491
    return EMCORE_SUCCESS;
492
}
492
}
493
 
493
 
494
int emcore_file_write(const uint32_t handle, const uint32_t addr, const uint32_t size)
494
int emcore_file_write(uint32_t* nwrite, const uint32_t handle, const uint32_t addr, const uint32_t size)
495
{
495
{
496
    int res;
496
    int res;
497
    uint32_t out[4] = { 33, 0xdeadbeef, 0xdeadbeef, 0xdeadbeef }, in[4];
497
    uint32_t out[4] = { 33, 0xdeadbeef, 0xdeadbeef, 0xdeadbeef }, in[4];
498
    
498
    
499
    out[1] = handle;
499
    out[1] = handle;
Line 510... Line 510...
510
    if (in[1] > 0x80000000)
510
    if (in[1] > 0x80000000)
511
    {
511
    {
512
        return EMCORE_ERROR_IO;
512
        return EMCORE_ERROR_IO;
513
    }
513
    }
514
    
514
    
-
 
515
    *nwrite = in[1];
-
 
516
    
515
    return EMCORE_SUCCESS;
517
    return EMCORE_SUCCESS;
516
}
518
}
517
 
519
 
518
int emcore_file_seek(const uint32_t handle, const uint32_t offset, const uint32_t whence)
520
int emcore_file_seek(const uint32_t handle, const uint32_t offset, const uint32_t whence)
519
{
521
{