uofw/group__MediaMan.html

252 lines
15 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>uOFW: Media_Manager</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">uOFW
</div>
<div id="projectbrief">Reverse engineered PSP kernel 6.60.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div class="header">
<div class="summary">
<a href="#groups">Modules</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#enum-members">Enumerations</a> </div>
<div class="headertitle">
<div class="title">Media_Manager<div class="ingroups"><a class="el" href="group__UMDDriveManagement.html">UMD Drive Management</a></div></div> </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
Modules</h2></td></tr>
<tr class="memitem:group__MediaManKernel"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__MediaManKernel.html">Media_Manager Kernel</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:group__MediaManUser"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__MediaManUser.html">Media_Manager User</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:ga8d8bf9dc715a36b399278f6feccdd365"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__MediaMan.html#ga8d8bf9dc715a36b399278f6feccdd365">SCE_UMD_ALIAS_NAME</a>&#160;&#160;&#160;&quot;disc0:&quot;</td></tr>
<tr class="separator:ga8d8bf9dc715a36b399278f6feccdd365"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac8b5e8de551f017af2aa5ff0d05805c0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__MediaMan.html#gac8b5e8de551f017af2aa5ff0d05805c0">SCE_UMD_LBA_DEVICE_NAME</a>&#160;&#160;&#160;&quot;umd1:&quot;</td></tr>
<tr class="separator:gac8b5e8de551f017af2aa5ff0d05805c0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:ga19875a1be69e2bd8283aab45799c2d2f"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__MediaMan.html#ga19875a1be69e2bd8283aab45799c2d2f">SceUmdDiscStates</a> { <br />
&#160;&#160;<a class="el" href="group__MediaMan.html#gga19875a1be69e2bd8283aab45799c2d2faeec6cdf71e6661741d22f4c876e333ad">SCE_UMD_INIT</a> = (0)
, <a class="el" href="group__MediaMan.html#gga19875a1be69e2bd8283aab45799c2d2fa0af90c516298f93bd28ca63a6cf4318c">SCE_UMD_MEDIA_OUT</a> = (1 &lt;&lt; 0)
, <a class="el" href="group__MediaMan.html#gga19875a1be69e2bd8283aab45799c2d2fa9c451d37b8845a8571e385a3a63199c6">SCE_UMD_MEDIA_IN</a> = (1 &lt;&lt; 1)
, <a class="el" href="group__MediaMan.html#gga19875a1be69e2bd8283aab45799c2d2fad98bd0918ca2f384e758a9d6d12882a1">SCE_UMD_MEDIA_CHG</a> = (1 &lt;&lt; 2)
, <br />
&#160;&#160;<a class="el" href="group__MediaMan.html#gga19875a1be69e2bd8283aab45799c2d2fa72b8942013c7198d759645610cfa4aad">SCE_UMD_NOT_READY</a> = (1 &lt;&lt; 3)
, <a class="el" href="group__MediaMan.html#gga19875a1be69e2bd8283aab45799c2d2fa28c877a3eb2f3afeef5a76786a30c3af">SCE_UMD_READY</a> = (1 &lt;&lt; 4)
, <a class="el" href="group__MediaMan.html#gga19875a1be69e2bd8283aab45799c2d2fa6839d721f15f8fe182f4d176cb5f89d1">SCE_UMD_READABLE</a> = (1 &lt;&lt; 5)
<br />
}</td></tr>
<tr class="separator:ga19875a1be69e2bd8283aab45799c2d2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga920cf1dcbfec8a0e27728528da31fd24"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__MediaMan.html#ga920cf1dcbfec8a0e27728528da31fd24">SceUmdDevicePowerModes</a> { <a class="el" href="group__MediaMan.html#gga920cf1dcbfec8a0e27728528da31fd24a1458dd1d84cb579c324f11b2fc73a35e">SCE_UMD_MODE_POWER_ON</a> = (1 &lt;&lt; 0)
, <a class="el" href="group__MediaMan.html#gga920cf1dcbfec8a0e27728528da31fd24aee17da75b77ae67979d3064b6350f24b">SCE_UMD_MODE_POWER_CUR</a> = (1 &lt;&lt; 1)
}</td></tr>
<tr class="separator:ga920cf1dcbfec8a0e27728528da31fd24"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga278b72961f3834dbaabf56f1524bb073"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__MediaMan.html#ga278b72961f3834dbaabf56f1524bb073">SceUmdMediaTypeFormats</a> { <br />
&#160;&#160;<a class="el" href="group__MediaMan.html#gga278b72961f3834dbaabf56f1524bb073a7741549ea37eea5a84589affdf375a6d">SCE_UMD_FMT_UNKNOWN</a> = 0x00000
, <a class="el" href="group__MediaMan.html#gga278b72961f3834dbaabf56f1524bb073aafda1cec069301211e4514dda11f08ba">SCE_UMD_FMT_GAME</a> = 0x00010
, <a class="el" href="group__MediaMan.html#gga278b72961f3834dbaabf56f1524bb073a5f7ab2fcdf59f75ef79de0bfefde8565">SCE_UMD_FMT_VIDEO</a> = 0x00020
, <a class="el" href="group__MediaMan.html#gga278b72961f3834dbaabf56f1524bb073aa1fcd5f627485666bdec45c71cf15642">SCE_UMD_FMT_AUDIO</a> = 0x00040
, <br />
&#160;&#160;<a class="el" href="group__MediaMan.html#gga278b72961f3834dbaabf56f1524bb073a2f9b043a9098417d4c2f764eee212375">SCE_UMD_FMT_CLEAN</a> = 0x00080
<br />
}</td></tr>
<tr class="separator:ga278b72961f3834dbaabf56f1524bb073"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Mediaman enables users to access the UMD drive. The drive can be accessed through files or sectors. <br />
To access the UMD drive via a file, the PSP provides the ISO-9660 file system. A file can be accessed <br />
by standard I/O functions as in sceIoOpen(), sceIoClose() and sceIoRead(). The general path format is the <br />
following: "device alias name" + "unit number" + ":" + "file path name". Here, the device alias name and <br />
the unit number are set by the <a class="el" href="group__MediaManKernel.html#gaac59c981fa8416e7b5cea5b5ba1ab5bd">sceUmdActivate()</a> function ("disc0:" being the standard). <br />
To open a file, consider this example: <br />
sceIoOpen("disc0:PSP_GAME/EXAMPLEDIR/examplefile.exp"); <br />
To access the UMD drive by sectors, the PSP provides a UMD block device driver. You can read the sectors <br />
by using standard I/O functions (i.e. sceIoOpen(), sceIoClose() and sceIoRead()). The general path format <br />
is the following: "block device name" + "unit number" + ':'. Note that the block device is set by the <br />
<a class="el" href="group__MediaManKernel.html#gaac59c981fa8416e7b5cea5b5ba1ab5bd">sceUmdActivate()</a> function to "umd0:". <br />
To open a phyisical device as a device file, consider this example: <br />
sceIoOpen("UMD0:...."); <br />
By default, opening a new physical device sets the first sector to read at sector_0. <br />
A sector contains 2048 bytes and reading is performed sector wise. That is, in sceIoRead() the read size <br />
has to be specified in the number of sectors you want to read. <br />
</p>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="ga8d8bf9dc715a36b399278f6feccdd365"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga8d8bf9dc715a36b399278f6feccdd365">&#9670;&nbsp;</a></span>SCE_UMD_ALIAS_NAME</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define SCE_UMD_ALIAS_NAME&#160;&#160;&#160;&quot;disc0:&quot;</td>
</tr>
</table>
</div><div class="memdoc">
<p>UMD file system alias name. </p>
</div>
</div>
<a id="gac8b5e8de551f017af2aa5ff0d05805c0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#gac8b5e8de551f017af2aa5ff0d05805c0">&#9670;&nbsp;</a></span>SCE_UMD_LBA_DEVICE_NAME</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define SCE_UMD_LBA_DEVICE_NAME&#160;&#160;&#160;&quot;umd1:&quot;</td>
</tr>
</table>
</div><div class="memdoc">
<p>LBA raw sector access. </p>
</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a id="ga19875a1be69e2bd8283aab45799c2d2f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga19875a1be69e2bd8283aab45799c2d2f">&#9670;&nbsp;</a></span>SceUmdDiscStates</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__MediaMan.html#ga19875a1be69e2bd8283aab45799c2d2f">SceUmdDiscStates</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>SCE UMD disc states. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga19875a1be69e2bd8283aab45799c2d2faeec6cdf71e6661741d22f4c876e333ad"></a>SCE_UMD_INIT&#160;</td><td class="fielddoc"><p>The UMD driver has been initiated. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga19875a1be69e2bd8283aab45799c2d2fa0af90c516298f93bd28ca63a6cf4318c"></a>SCE_UMD_MEDIA_OUT&#160;</td><td class="fielddoc"><p>A medium has been removed. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga19875a1be69e2bd8283aab45799c2d2fa9c451d37b8845a8571e385a3a63199c6"></a>SCE_UMD_MEDIA_IN&#160;</td><td class="fielddoc"><p>A medium has been inserted. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga19875a1be69e2bd8283aab45799c2d2fad98bd0918ca2f384e758a9d6d12882a1"></a>SCE_UMD_MEDIA_CHG&#160;</td><td class="fielddoc"><p>The inserted medium has changed. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga19875a1be69e2bd8283aab45799c2d2fa72b8942013c7198d759645610cfa4aad"></a>SCE_UMD_NOT_READY&#160;</td><td class="fielddoc"><p>The UMD device is not ready. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga19875a1be69e2bd8283aab45799c2d2fa28c877a3eb2f3afeef5a76786a30c3af"></a>SCE_UMD_READY&#160;</td><td class="fielddoc"><p>The UMD device is ready. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga19875a1be69e2bd8283aab45799c2d2fa6839d721f15f8fe182f4d176cb5f89d1"></a>SCE_UMD_READABLE&#160;</td><td class="fielddoc"><p>The inserted medium is readable. </p>
</td></tr>
</table>
</div>
</div>
<a id="ga920cf1dcbfec8a0e27728528da31fd24"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga920cf1dcbfec8a0e27728528da31fd24">&#9670;&nbsp;</a></span>SceUmdDevicePowerModes</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__MediaMan.html#ga920cf1dcbfec8a0e27728528da31fd24">SceUmdDevicePowerModes</a></td>
</tr>
</table>
</div><div class="memdoc">
<p>UMD drive power modes. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga920cf1dcbfec8a0e27728528da31fd24a1458dd1d84cb579c324f11b2fc73a35e"></a>SCE_UMD_MODE_POWER_ON&#160;</td><td class="fielddoc"><p>Set the UMD drive's power state to ON. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga920cf1dcbfec8a0e27728528da31fd24aee17da75b77ae67979d3064b6350f24b"></a>SCE_UMD_MODE_POWER_CUR&#160;</td><td class="fielddoc"><p>Set the UMD drive's power state to the cuurent power state. </p>
</td></tr>
</table>
</div>
</div>
<a id="ga278b72961f3834dbaabf56f1524bb073"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ga278b72961f3834dbaabf56f1524bb073">&#9670;&nbsp;</a></span>SceUmdMediaTypeFormats</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">enum <a class="el" href="group__MediaMan.html#ga278b72961f3834dbaabf56f1524bb073">SceUmdMediaTypeFormats</a></td>
</tr>
</table>
</div><div class="memdoc">
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><a id="gga278b72961f3834dbaabf56f1524bb073a7741549ea37eea5a84589affdf375a6d"></a>SCE_UMD_FMT_UNKNOWN&#160;</td><td class="fielddoc"><p>Unknown format. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga278b72961f3834dbaabf56f1524bb073aafda1cec069301211e4514dda11f08ba"></a>SCE_UMD_FMT_GAME&#160;</td><td class="fielddoc"><p>Game format. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga278b72961f3834dbaabf56f1524bb073a5f7ab2fcdf59f75ef79de0bfefde8565"></a>SCE_UMD_FMT_VIDEO&#160;</td><td class="fielddoc"><p>Video format. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga278b72961f3834dbaabf56f1524bb073aa1fcd5f627485666bdec45c71cf15642"></a>SCE_UMD_FMT_AUDIO&#160;</td><td class="fielddoc"><p>Audio format. </p>
</td></tr>
<tr><td class="fieldname"><a id="gga278b72961f3834dbaabf56f1524bb073a2f9b043a9098417d4c2f764eee212375"></a>SCE_UMD_FMT_CLEAN&#160;</td><td class="fielddoc"><p>Cleaning format. </p>
</td></tr>
</table>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Sat Sep 28 2024 18:01:49 for uOFW by&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1
</small></address>
</body>
</html>