RetroArch
iosuhax_disc_interface.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2016
3  * by Dimok
4  *
5  * This software is provided 'as-is', without any express or implied
6  * warranty. In no event will the authors be held liable for any
7  * damages arising from the use of this software.
8  *
9  * Permission is granted to anyone to use this software for any
10  * purpose, including commercial applications, and to alter it and
11  * redistribute it freely, subject to the following restrictions:
12  *
13  * 1. The origin of this software must not be misrepresented; you
14  * must not claim that you wrote the original software. If you use
15  * this software in a product, an acknowledgment in the product
16  * documentation would be appreciated but is not required.
17  *
18  * 2. Altered source versions must be plainly marked as such, and
19  * must not be misrepresented as being the original software.
20  *
21  * 3. This notice may not be removed or altered from any source
22  * distribution.
23  ***************************************************************************/
24 #ifndef _IOSUHAX_DISC_INTERFACE_H_
25 #define _IOSUHAX_DISC_INTERFACE_H_
26 
27 #include <stdint.h>
28 #include <stdbool.h>
29 
30 #ifdef __cplusplus
31 extern "C" {
32 #endif
33 
34 #define DEVICE_TYPE_WII_U_SD (('W'<<24)|('U'<<16)|('S'<<8)|'D')
35 #define DEVICE_TYPE_WII_U_USB (('W'<<24)|('U'<<16)|('S'<<8)|'B')
36 #define FEATURE_WII_U_SD 0x00001000
37 #define FEATURE_WII_U_USB 0x00002000
38 
39 #ifndef OGC_DISC_IO_INCLUDE
40 typedef uint32_t sec_t;
41 
42 #define FEATURE_MEDIUM_CANREAD 0x00000001
43 #define FEATURE_MEDIUM_CANWRITE 0x00000002
44 
45 typedef bool (* FN_MEDIUM_STARTUP)(void) ;
47 typedef bool (* FN_MEDIUM_READSECTORS)(uint32_t sector, uint32_t numSectors, void* buffer) ;
48 typedef bool (* FN_MEDIUM_WRITESECTORS)(uint32_t sector, uint32_t numSectors, const void* buffer) ;
51 
53  unsigned long ioType ;
54  unsigned long features ;
61 } ;
62 
64 #endif
65 
68 
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #endif
bool(* FN_MEDIUM_WRITESECTORS)(uint32_t sector, uint32_t numSectors, const void *buffer)
Definition: iosuhax_disc_interface.h:48
bool(* FN_MEDIUM_ISINSERTED)(void)
Definition: iosuhax_disc_interface.h:46
GLuint buffer
Definition: glext.h:6555
FN_MEDIUM_CLEARSTATUS clearStatus
Definition: iosuhax_disc_interface.h:59
bool(* FN_MEDIUM_SHUTDOWN)(void)
Definition: iosuhax_disc_interface.h:50
bool(* FN_MEDIUM_STARTUP)(void)
Definition: iosuhax_disc_interface.h:45
typedef void(__stdcall *PFN_DESTRUCTION_CALLBACK)(void *pData)
FN_MEDIUM_STARTUP startup
Definition: iosuhax_disc_interface.h:55
typedef bool(RETRO_CALLCONV *retro_replace_image_index_t)(unsigned index
const DISC_INTERFACE IOSUHAX_sdio_disc_interface
Definition: iosuhax_disc_interface.c:170
uint32_t sec_t
Definition: iosuhax_disc_interface.h:40
FN_MEDIUM_SHUTDOWN shutdown
Definition: iosuhax_disc_interface.h:60
FN_MEDIUM_READSECTORS readSectors
Definition: iosuhax_disc_interface.h:57
bool(* FN_MEDIUM_READSECTORS)(uint32_t sector, uint32_t numSectors, void *buffer)
Definition: iosuhax_disc_interface.h:47
unsigned long features
Definition: iosuhax_disc_interface.h:54
Definition: iosuhax_disc_interface.h:52
unsigned long ioType
Definition: iosuhax_disc_interface.h:53
FN_MEDIUM_ISINSERTED isInserted
Definition: iosuhax_disc_interface.h:56
const DISC_INTERFACE IOSUHAX_usb_disc_interface
Definition: iosuhax_disc_interface.c:252
bool(* FN_MEDIUM_CLEARSTATUS)(void)
Definition: iosuhax_disc_interface.h:49
unsigned int uint32_t
Definition: stdint.h:126
FN_MEDIUM_WRITESECTORS writeSectors
Definition: iosuhax_disc_interface.h:58