Files
aaruremote/wii/wii.h

52 lines
1.5 KiB
C
Raw Normal View History

/*
2020-03-01 05:44:49 +00:00
* This file is part of the Aaru Remote Server.
2020-01-03 17:42:13 +00:00
* Copyright (c) 2019-2020 Natalia Portillo.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
2020-03-01 05:48:20 +00:00
#ifndef AARUREMOTE_WII_WII_H_
#define AARUREMOTE_WII_WII_H_
2020-03-01 05:46:10 +00:00
#include "../aaruremote.h"
2019-10-20 23:05:34 +01:00
2020-03-01 05:48:20 +00:00
#define AARUREMOTE_WII_DEVICE_FD_NAND 1
#define AARUREMOTE_WII_DEVICE_FD_DVD 2
#define AARUREMOTE_WII_DEVICE_FD_SD 3
#define AARUREMOTE_WII_DEVICE_FD_GCMM_A 4
#define AARUREMOTE_WII_DEVICE_FD_GCMM_B 5
2020-03-01 05:48:20 +00:00
#define AARUREMOTE_WII_IOCTL_SD_GET_DEVICE_STATUS 0x0B
#define AARUREMOTE_WII_SD_INSERTED 1
2020-03-01 05:48:20 +00:00
#define AARUREMOTE_WII_DEVICE_PATH_NAND "/dev/flash"
#define AARUREMOTE_WII_DEVICE_PATH_DVD "/dev/di"
#define AARUREMOTE_WII_DEVICE_PATH_SD "/dev/sdio/slot0"
#define AARUREMOTE_WII_DEVICE_PATH_GCMM_A "/dev/gcmm/slota"
#define AARUREMOTE_WII_DEVICE_PATH_GCMM_B "/dev/gcmm/slotb"
2019-10-26 16:11:19 +01:00
typedef struct
{
s32 ios_fd;
s32 dev_type;
} WiiDeviceContext;
2019-10-26 22:22:04 +01:00
typedef struct
{
s32 fd;
} WiiNetworkContext;
2019-10-20 23:05:34 +01:00
DeviceInfoList* WiiListDevices();
2020-03-01 05:48:20 +00:00
#endif // AARUREMOTE_WII_WII_H_