1 /*---------------------------------------------------------------------------* 2 Project: NCD library 3 File: NCDMisc.h 4 5 Copyright 2006,2007 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: NCDMisc.h,v $ 14 Revision 1.4 2007/01/31 02:32:26 okubata_ryoma 15 NCDGetWirelessMacAddress->NETGetWirelessMacAddress 16 17 Revision 1.3 2006/10/16 10:46:39 seiki_masashi 18 NCDDisableNetworkInterface 19 20 Revision 1.2 2006/08/24 08:17:58 terui 21 Added definition of MAC address length. 22 23 Revision 1.1 2006/08/24 08:09:21 yasu 24 Split up functions for getting wireless MAC addresses in the console. 25 26 Revision 1.3 2006/08/11 08:34:28 yasu 27 The constant in nwc24cntl.h is returned to NCDConst.h 28 29 Revision 1.2 2006/08/11 01:07:20 yasu 30 Support for process/kd 31 32 Revision 1.1 2006/08/10 08:11:22 yasu 33 Created nwc24cntl.h 34 35 $NoKeywords: $ 36 *---------------------------------------------------------------------------*/ 37 #ifndef REVOLUTION_NCD_NCDMISC_H__ 38 #define REVOLUTION_NCD_NCDMISC_H__ 39 40 #ifdef RVL_OS 41 #include <revolution/types.h> 42 #include <revolution/ncd/NCDConst.h> 43 #endif 44 45 #ifdef __cplusplus 46 extern "C" { 47 #endif 48 49 #define NCD_MACADDRESS_LENGTH 6 50 51 #ifdef RVL_OS 52 /*---------------------------------------------------------------------------* 53 Name: NCDSetNwc24Permission 54 Description: Changes the NWC24 permission settings. 55 This does not get reflected in NAND. 56 Arguments: permission - The permission setting. (NCD_NWC24_PERMISSION_* result of OR operation) 57 Returns: s32 - Returns the result of processing. Returns a negative number if processing failed. 58 *---------------------------------------------------------------------------*/ 59 s32 NCDSetNwc24Permission( u8 permission ); 60 61 /*---------------------------------------------------------------------------* 62 Name: NCDiGetWirelessMacAddress 63 Description: Gets the MAC address of the wireless LAN module. 64 Arguments: pAddr - Specifies the buffer for reading out the MAC address. 65 Returns: s32 - Returns the result of processing. Returns a negative number if processing failed. 66 *---------------------------------------------------------------------------*/ 67 s32 NCDiGetWirelessMacAddress( u8* pAddr ); 68 69 /*---------------------------------------------------------------------------* 70 Name: NCDDisableNetworkInterface 71 Description: Disables the network interface. 72 Arguments: None 73 Returns: s32 - Returns the result of processing. Returns a negative number if processing failed. 74 *---------------------------------------------------------------------------*/ 75 s32 NCDDisableNetworkInterface( void ); 76 77 78 #endif 79 80 #ifdef __cplusplus 81 } 82 #endif 83 #endif /* REVOLUTION_NCD_H__ */ 84 85 /*---------------------------------------------------------------------------* 86 End of file 87 *---------------------------------------------------------------------------*/ 88