RetroArch
gcsd.h
Go to the documentation of this file.
1 /*
2 
3  gcsd.h
4 
5  Hardware routines for reading and writing to SD geckos connected
6  to the memory card ports.
7 
8  These functions are just wrappers around libsdcard's functions.
9 
10  Copyright (c) 2008 Sven "svpe" Peter <[email protected]>
11 
12  Redistribution and use in source and binary forms, with or without modification,
13  are permitted provided that the following conditions are met:
14 
15  1. Redistributions of source code must retain the above copyright notice,
16  this list of conditions and the following disclaimer.
17  2. Redistributions in binary form must reproduce the above copyright notice,
18  this list of conditions and the following disclaimer in the documentation and/or
19  other materials provided with the distribution.
20  3. The name of the author may not be used to endorse or promote products derived
21  from this software without specific prior written permission.
22 
23  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
24  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
25  AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE
26  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
27  DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
28  LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
29  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
30  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
31  EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
32 */
33 
34 #ifndef __GCSD_H__
35 #define __GCSD_H__
36 
37 #include <gccore.h>
38 #include <ogc/disc_io.h>
39 
40 #define DEVICE_TYPE_GC_SD (('G'<<24)|('C'<<16)|('S'<<8)|'D')
41 
42 extern const DISC_INTERFACE __io_gcsda;
43 extern const DISC_INTERFACE __io_gcsdb;
44 
45 #endif
Core header which includes all subsequent subsystem headers.
const DISC_INTERFACE __io_gcsda
Definition: gcsd.c:155
Definition: iosuhax_disc_interface.h:52
const DISC_INTERFACE __io_gcsdb
Definition: gcsd.c:165