/*
 *               Copyright (C) 2005, BroadOn Communications Corp.
 *
 *  These coded instructions, statements, and computer programs contain
 *  unpublished  proprietary information of BroadOn Communications Corp.,
 *  and  are protected by Federal copyright law. They may not be disclosed
 *  to  third  parties or copied or duplicated in any form, in whole or in
 *  part, without the prior written consent of BroadOn Communications Corp.
 *
 */

/* This file automatically generated -- Do not edit */

#include <swi.h>

#if defined(FAST_SEMIHOSTING)
#define _syscall0(t,name)               \
    .global IOSC_##name ;                 \
    .type   IOSC_##name,"function";       \
IOSC_##name: ;                            \
        .word 0xe6000010 | (SWI_##name<<5) ; \
        bx  lr;                         \
    .size   IOSC_##name,.-IOSC_##name;
#else
#define _syscall0(t,name)               \
    .global IOSC_##name ;                 \
    .type   IOSC_##name,"function";       \
IOSC_##name: ;                            \
        swi SWI_##name ;                \
        bx  lr;                         \
    .size   IOSC_##name,.-IOSC_##name;
#endif 

#define _syscall1 _syscall0
#define _syscall2 _syscall0
#define _syscall3 _syscall0
#define _syscall4 _syscall0
#define _syscall5 _syscall0
#define _syscall6 _syscall0
#define _syscall7 _syscall0
#define _syscall8 _syscall0
#define _syscall9 _syscall0
#define _syscall10 _syscall0
_syscall3(IOSError , CreateObject);
_syscall1(IOSError , DeleteObject);
_syscall7(IOSError , ImportSecretKey);
_syscall7(IOSError , ExportSecretKey);
_syscall3(IOSError , ImportPublicKey);
_syscall3(IOSError , ExportPublicKey);
_syscall3(IOSError , ComputeSharedKey );
_syscall2(IOSError , SetData);
_syscall2(IOSError , GetData);
_syscall2(IOSError , GetKeySize);
_syscall2(IOSError , GetSignatureSize);
_syscall7(IOSError , GenerateHashAsync);
_syscall5(IOSError , GenerateHash);
_syscall7(IOSError , EncryptAsync);
_syscall5(IOSError , Encrypt);
_syscall7(IOSError , DecryptAsync);
_syscall5(IOSError , Decrypt);
_syscall4(IOSError , VerifyPublicKeySign);
_syscall8(IOSError , GenerateBlockMAC);
_syscall10(IOSError , GenerateBlockMACAsync);
_syscall3(IOSError , ImportCertificate);
_syscall1(IOSError , GetDeviceCertificate);
_syscall2(IOSError , SetOwnership);
_syscall2(IOSError , GetOwnership);
_syscall7(IOSError , GeneratePublicKeySignWithRandoms );
_syscall4(IOSError , GenerateKeyWithRandoms );
_syscall6(IOSError , GenerateCertificateWithRandoms);
_syscall2(IOSError , GenerateRand);

