1 /*---------------------------------------------------------------------------* 2 Project: Dolphin OS 3 File: dvdeth.h 4 5 Copyright 2002 Nintendo. All rights reserved. 6 7 These coded instructions, statements, and computer programs contain 8 proprietary information of Nintendo of America Inc. and/or Nintendo 9 Company Ltd., and are protected by Federal copyright law. They may 10 not be disclosed to third parties or copied or duplicated in any form, 11 in whole or in part, without the prior written consent of Nintendo. 12 13 $Log: dvdeth.h,v $ 14 Revision 1.2 2006/02/04 11:56:44 hashida 15 (none) 16 17 Revision 1.1.1.1 2005/12/29 06:53:27 hiratsu 18 Initial import. 19 20 Revision 1.1.1.1 2005/05/12 02:41:06 yasuh-to 21 Ported from dolphin source tree. 22 23 24 7 2003/09/02 6:30p Ueno_kyu 25 26 27 5 2003/02/28 5:31p Ooshima 28 2nd release version 29 30 4 2003/01/09 1:17p Ooshima 31 Deleted all DVD function 32 33 1 2002/12/11 8:59a Ooshima 34 Initial version 35 36 $NoKeywords: $ 37 *---------------------------------------------------------------------------*/ 38 #ifdef DVDETH 39 #ifndef __DVDETH_H__ 40 #define __DVDETH_H__ 41 42 #include <revolution/types.h> 43 #include <revolution/dvd.h> 44 45 #ifdef __cplusplus 46 extern "C" { 47 #endif 48 49 BOOL DVDEthInit(const u8* addr, const u8* netmask, const u8* gateway); 50 void DVDEthShutdown(void); 51 52 BOOL DVDLowInit(const u8* pServerAddr, u16 ServerPort); 53 54 s32 DVDWritePrio ( DVDFileInfo* fileInfo, void* addr, s32 length, 55 s32 offset, s32 prio ); 56 57 BOOL DVDWriteAsyncPrio( DVDFileInfo* fileInfo, void* addr, s32 length, 58 s32 offset, 59 DVDCallback callback, s32 prio ); 60 61 #define DVDWrite(fileInfo, addr, length, offset) \ 62 DVDWritePrio((fileInfo), (addr), (length), (offset), 2) 63 64 #define DVDWriteAsync(fileInfo, addr, length, offset, callback) \ 65 DVDWriteAsyncPrio((fileInfo), (addr), (length), (offset), (callback), 2) 66 67 BOOL DVDRemove ( const char* fileName, DVDFileInfo* fileInfo ); 68 69 BOOL DVDCreate ( const char* fileName, DVDFileInfo* fileInfo ); 70 71 BOOL DVDFstInit(void* fstAddr, u32 fstLen); 72 73 BOOL DVDFstRefresh(void); 74 75 76 #ifdef __cplusplus 77 } 78 #endif 79 80 #endif // __DVDETH_H__ 81 #endif // DVDETH 82