Skip to content

Commit

Permalink
Merge pull request #672 from uyjulian/cdvd_modules_u
Browse files Browse the repository at this point in the history
Implementations of cdvdman, cdvdfsv, and cdvdstm
  • Loading branch information
rickgaiser authored Nov 27, 2024
2 parents 400d8fc + fba28f5 commit a7d5229
Show file tree
Hide file tree
Showing 20 changed files with 11,495 additions and 0 deletions.
16 changes: 16 additions & 0 deletions common/include/cdvd-ioctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@
#ifndef __CDVD_IOCTL_H__
#define __CDVD_IOCTL_H__

#include <libcdvd-common.h>

///////////////////////////////////////////////////////////////////////////////
// CDVDMAN.IRX

Expand Down Expand Up @@ -53,4 +55,18 @@
#define CDIOC_FSCACHEINIT 0x4395
#define CDIOC_FSCACHEDELETE 0x4397

///////////////////////////////////////////////////////////////////////////////
// CDVDSTM.IRX

typedef struct cdrom_stm_devctl_
{
u32 m_posszarg1;
u32 m_posszarg2;
void *m_buffer;
u32 m_cmdid;
sceCdRMode m_rmode;
u32 m_error;
} cdrom_stm_devctl_t;


#endif /* __CDVD_IOCTL_H__ */
90 changes: 90 additions & 0 deletions common/include/dev5_mmio_hwport.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
/*
# _____ ___ ____ ___ ____
# ____| | ____| | | |____|
# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
#-----------------------------------------------------------------------
# Copyright ps2dev - http://www.ps2dev.org
# Licenced under Academic Free License version 2.0
# Review ps2sdk README & LICENSE files for further details.
*/

/**
* @file
* Definitions for memory-mapped I/O for DEV5.
*/

#ifndef __DEV5_MMIO_HWPORT__
#define __DEV5_MMIO_HWPORT__

typedef struct dev5_mmio_hwport_ /* base -> 0xBF402000 */
{
vu8 m_dev5_reg_000;
vu8 m_dev5_reg_001;
vu8 m_dev5_reg_002;
vu8 m_dev5_reg_003;
vu8 m_dev5_reg_004;
vu8 m_dev5_reg_005;
vu8 m_dev5_reg_006;
vu8 m_dev5_reg_007;
vu8 m_dev5_reg_008;
vu8 m_dev5_reg_009;
vu8 m_dev5_reg_00A;
vu8 m_dev5_reg_00B;
vu8 m_dev5_reg_00C;
vu8 m_dev5_reg_00D;
vu8 m_dev5_reg_00E;
vu8 m_dev5_reg_00F;
vu8 m_dev5_reg_010;
vu8 m_dev5_reg_011;
vu8 m_dev5_reg_012;
vu8 m_dev5_reg_013;
vu8 m_dev5_reg_014;
vu8 m_dev5_reg_015;
vu8 m_dev5_reg_016;
vu8 m_dev5_reg_017;
vu8 m_dev5_reg_018;
vu8 m_dev5_reg_019;
vu8 m_dev5_reg_01A;
vu8 m_dev5_reg_01B;
vu8 m_dev5_reg_01C;
vu8 m_dev5_reg_01D;
vu8 m_dev5_reg_01E;
vu8 m_dev5_reg_01F;
vu8 m_dev5_reg_020;
vu8 m_dev5_reg_021;
vu8 m_dev5_reg_022;
vu8 m_dev5_reg_023;
vu8 m_dev5_reg_024;
vu8 m_dev5_reg_025;
vu8 m_dev5_reg_026;
vu8 m_dev5_reg_027;
vu8 m_dev5_reg_028;
vu8 m_dev5_reg_029;
vu8 m_dev5_reg_02A;
vu8 m_dev5_reg_02B;
vu8 m_dev5_reg_02C;
vu8 m_dev5_reg_02D;
vu8 m_dev5_reg_02E;
vu8 m_dev5_reg_02F;
vu8 m_dev5_reg_030;
vu8 m_dev5_reg_031;
vu8 m_dev5_reg_032;
vu8 m_dev5_reg_033;
vu8 m_dev5_reg_034;
vu8 m_dev5_reg_035;
vu8 m_dev5_reg_036;
vu8 m_dev5_reg_037;
vu8 m_dev5_reg_038;
vu8 m_dev5_reg_039;
vu8 m_dev5_reg_03A;
} dev5_mmio_hwport_t;

#if !defined(USE_DEV5_MMIO_HWPORT) && defined(_IOP)
// cppcheck-suppress-macro constVariablePointer
#define USE_DEV5_MMIO_HWPORT() dev5_mmio_hwport_t *const dev5_mmio_hwport = (dev5_mmio_hwport_t *)0xBF402000
#endif
#if !defined(USE_DEV5_MMIO_HWPORT)
#define USE_DEV5_MMIO_HWPORT()
#endif

#endif /* __DEV5_MMIO_HWPORT__ */
Loading

0 comments on commit a7d5229

Please sign in to comment.