mirror of
https://github.com/joel16/uofw.git
synced 2024-11-23 11:39:50 +00:00
288 lines
17 KiB
HTML
288 lines
17 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://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"/>
|
|
<title>uOFW: Media_Manager</title>
|
|
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<script type="text/javascript">
|
|
$(document).ready(function() { searchBox.OnSelectItem(0); });
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div! -->
|
|
|
|
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
|
|
|
|
<td 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>
|
|
|
|
<!-- Generated by Doxygen 1.7.6.1 -->
|
|
<script type="text/javascript">
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search');
|
|
</script>
|
|
<div id="navrow1" class="tabs">
|
|
<ul class="tablist">
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li><a href="modules.html"><span>Modules</span></a></li>
|
|
<li><a href="annotated.html"><span>Data Structures</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li>
|
|
<div id="MSearchBox" class="MSearchBoxInactive">
|
|
<span class="left">
|
|
<img id="MSearchSelect" src="search/mag_sel.png"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
alt=""/>
|
|
<input type="text" id="MSearchField" value="Search" accesskey="S"
|
|
onfocus="searchBox.OnSearchFieldFocus(true)"
|
|
onblur="searchBox.OnSearchFieldFocus(false)"
|
|
onkeyup="searchBox.OnSearchFieldChange(event)"/>
|
|
</span><span class="right">
|
|
<a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
|
|
</span>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="header">
|
|
<div class="summary">
|
|
<a href="#groups">Modules</a> |
|
|
<a href="#define-members">Defines</a> |
|
|
<a href="#enum-members">Enumerations</a> </div>
|
|
<div class="headertitle">
|
|
<div class="title">Media_Manager</div> </div>
|
|
<div class="ingroups"><a class="el" href="group__UMDDriveManagement.html">UMD Drive Management</a></div></div><!--header-->
|
|
<div class="contents">
|
|
<table class="memberdecls">
|
|
<tr><td colspan="2"><h2><a name="groups"></a>
|
|
Modules</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__MediaManKernel.html">Media_Manager Kernel</a></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="group__MediaManUser.html">Media_Manager User</a></td></tr>
|
|
<tr><td colspan="2"><h2><a name="define-members"></a>
|
|
Defines</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__MediaMan.html#ga8d8bf9dc715a36b399278f6feccdd365">SCE_UMD_ALIAS_NAME</a>   "disc0:"</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="group__MediaMan.html#gac8b5e8de551f017af2aa5ff0d05805c0">SCE_UMD_LBA_DEVICE_NAME</a>   "umd1:"</td></tr>
|
|
<tr><td colspan="2"><h2><a name="enum-members"></a>
|
|
Enumerations</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__MediaMan.html#ga19875a1be69e2bd8283aab45799c2d2f">SceUmdDiscStates</a> { <br/>
|
|
  <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 << 0),
|
|
<a class="el" href="group__MediaMan.html#gga19875a1be69e2bd8283aab45799c2d2fa9c451d37b8845a8571e385a3a63199c6">SCE_UMD_MEDIA_IN</a> = (1 << 1),
|
|
<a class="el" href="group__MediaMan.html#gga19875a1be69e2bd8283aab45799c2d2fad98bd0918ca2f384e758a9d6d12882a1">SCE_UMD_MEDIA_CHG</a> = (1 << 2),
|
|
<br/>
|
|
  <a class="el" href="group__MediaMan.html#gga19875a1be69e2bd8283aab45799c2d2fa72b8942013c7198d759645610cfa4aad">SCE_UMD_NOT_READY</a> = (1 << 3),
|
|
<a class="el" href="group__MediaMan.html#gga19875a1be69e2bd8283aab45799c2d2fa28c877a3eb2f3afeef5a76786a30c3af">SCE_UMD_READY</a> = (1 << 4),
|
|
<a class="el" href="group__MediaMan.html#gga19875a1be69e2bd8283aab45799c2d2fa6839d721f15f8fe182f4d176cb5f89d1">SCE_UMD_READABLE</a> = (1 << 5)
|
|
<br/>
|
|
}</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">enum  </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 << 0),
|
|
<a class="el" href="group__MediaMan.html#gga920cf1dcbfec8a0e27728528da31fd24aee17da75b77ae67979d3064b6350f24b">SCE_UMD_MODE_POWER_CUR</a> = (1 << 1)
|
|
}</td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">enum  </td><td class="memItemRight" valign="bottom"><a class="el" href="group__MediaMan.html#ga278b72961f3834dbaabf56f1524bb073">SceUmdMediaTypeFormats</a> { <br/>
|
|
  <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/>
|
|
  <a class="el" href="group__MediaMan.html#gga278b72961f3834dbaabf56f1524bb073a2f9b043a9098417d4c2f764eee212375">SCE_UMD_FMT_CLEAN</a> = 0x00080
|
|
<br/>
|
|
}</td></tr>
|
|
</table>
|
|
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
|
|
<p>Mediaman enables users to access the UMD drive. The drive can be accessed through files or sectors. <br/>
|
|
</p>
|
|
<p>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/>
|
|
</p>
|
|
<p>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/>
|
|
</p>
|
|
<p>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>
|
|
<hr/><h2>Define Documentation</h2>
|
|
<a class="anchor" id="ga8d8bf9dc715a36b399278f6feccdd365"></a><!-- doxytag: member="mediaman.h::SCE_UMD_ALIAS_NAME" ref="ga8d8bf9dc715a36b399278f6feccdd365" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define <a class="el" href="group__MediaMan.html#ga8d8bf9dc715a36b399278f6feccdd365">SCE_UMD_ALIAS_NAME</a>   "disc0:"</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
<p>UMD file system alias name. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="gac8b5e8de551f017af2aa5ff0d05805c0"></a><!-- doxytag: member="mediaman.h::SCE_UMD_LBA_DEVICE_NAME" ref="gac8b5e8de551f017af2aa5ff0d05805c0" args="" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">#define <a class="el" href="group__MediaMan.html#gac8b5e8de551f017af2aa5ff0d05805c0">SCE_UMD_LBA_DEVICE_NAME</a>   "umd1:"</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
<p>LBA raw sector access. </p>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/><h2>Enumeration Type Documentation</h2>
|
|
<a class="anchor" id="ga19875a1be69e2bd8283aab45799c2d2f"></a><!-- doxytag: member="mediaman.h::SceUmdDiscStates" ref="ga19875a1be69e2bd8283aab45799c2d2f" args="" -->
|
|
<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>
|
|
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"><em><a class="anchor" id="gga19875a1be69e2bd8283aab45799c2d2faeec6cdf71e6661741d22f4c876e333ad"></a><!-- doxytag: member="SCE_UMD_INIT" ref="gga19875a1be69e2bd8283aab45799c2d2faeec6cdf71e6661741d22f4c876e333ad" args="" -->SCE_UMD_INIT</em> </td><td>
|
|
<p>The UMD driver has been initiated. </p>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" id="gga19875a1be69e2bd8283aab45799c2d2fa0af90c516298f93bd28ca63a6cf4318c"></a><!-- doxytag: member="SCE_UMD_MEDIA_OUT" ref="gga19875a1be69e2bd8283aab45799c2d2fa0af90c516298f93bd28ca63a6cf4318c" args="" -->SCE_UMD_MEDIA_OUT</em> </td><td>
|
|
<p>A medium has been removed. </p>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" id="gga19875a1be69e2bd8283aab45799c2d2fa9c451d37b8845a8571e385a3a63199c6"></a><!-- doxytag: member="SCE_UMD_MEDIA_IN" ref="gga19875a1be69e2bd8283aab45799c2d2fa9c451d37b8845a8571e385a3a63199c6" args="" -->SCE_UMD_MEDIA_IN</em> </td><td>
|
|
<p>A medium has been inserted. </p>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" id="gga19875a1be69e2bd8283aab45799c2d2fad98bd0918ca2f384e758a9d6d12882a1"></a><!-- doxytag: member="SCE_UMD_MEDIA_CHG" ref="gga19875a1be69e2bd8283aab45799c2d2fad98bd0918ca2f384e758a9d6d12882a1" args="" -->SCE_UMD_MEDIA_CHG</em> </td><td>
|
|
<p>The inserted medium has changed. </p>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" id="gga19875a1be69e2bd8283aab45799c2d2fa72b8942013c7198d759645610cfa4aad"></a><!-- doxytag: member="SCE_UMD_NOT_READY" ref="gga19875a1be69e2bd8283aab45799c2d2fa72b8942013c7198d759645610cfa4aad" args="" -->SCE_UMD_NOT_READY</em> </td><td>
|
|
<p>The UMD device is not ready. </p>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" id="gga19875a1be69e2bd8283aab45799c2d2fa28c877a3eb2f3afeef5a76786a30c3af"></a><!-- doxytag: member="SCE_UMD_READY" ref="gga19875a1be69e2bd8283aab45799c2d2fa28c877a3eb2f3afeef5a76786a30c3af" args="" -->SCE_UMD_READY</em> </td><td>
|
|
<p>The UMD device is ready. </p>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" id="gga19875a1be69e2bd8283aab45799c2d2fa6839d721f15f8fe182f4d176cb5f89d1"></a><!-- doxytag: member="SCE_UMD_READABLE" ref="gga19875a1be69e2bd8283aab45799c2d2fa6839d721f15f8fe182f4d176cb5f89d1" args="" -->SCE_UMD_READABLE</em> </td><td>
|
|
<p>The inserted medium is readable. </p>
|
|
</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga920cf1dcbfec8a0e27728528da31fd24"></a><!-- doxytag: member="mediaman.h::SceUmdDevicePowerModes" ref="ga920cf1dcbfec8a0e27728528da31fd24" args="" -->
|
|
<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>
|
|
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"><em><a class="anchor" id="gga920cf1dcbfec8a0e27728528da31fd24a1458dd1d84cb579c324f11b2fc73a35e"></a><!-- doxytag: member="SCE_UMD_MODE_POWER_ON" ref="gga920cf1dcbfec8a0e27728528da31fd24a1458dd1d84cb579c324f11b2fc73a35e" args="" -->SCE_UMD_MODE_POWER_ON</em> </td><td>
|
|
<p>Set the UMD drive's power state to ON. </p>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" id="gga920cf1dcbfec8a0e27728528da31fd24aee17da75b77ae67979d3064b6350f24b"></a><!-- doxytag: member="SCE_UMD_MODE_POWER_CUR" ref="gga920cf1dcbfec8a0e27728528da31fd24aee17da75b77ae67979d3064b6350f24b" args="" -->SCE_UMD_MODE_POWER_CUR</em> </td><td>
|
|
<p>Set the UMD drive's power state to the cuurent power state. </p>
|
|
</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ga278b72961f3834dbaabf56f1524bb073"></a><!-- doxytag: member="mediaman.h::SceUmdMediaTypeFormats" ref="ga278b72961f3834dbaabf56f1524bb073" args="" -->
|
|
<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">
|
|
<dl><dt><b>Enumerator: </b></dt><dd><table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"><em><a class="anchor" id="gga278b72961f3834dbaabf56f1524bb073a7741549ea37eea5a84589affdf375a6d"></a><!-- doxytag: member="SCE_UMD_FMT_UNKNOWN" ref="gga278b72961f3834dbaabf56f1524bb073a7741549ea37eea5a84589affdf375a6d" args="" -->SCE_UMD_FMT_UNKNOWN</em> </td><td>
|
|
<p>Unknown format. </p>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" id="gga278b72961f3834dbaabf56f1524bb073aafda1cec069301211e4514dda11f08ba"></a><!-- doxytag: member="SCE_UMD_FMT_GAME" ref="gga278b72961f3834dbaabf56f1524bb073aafda1cec069301211e4514dda11f08ba" args="" -->SCE_UMD_FMT_GAME</em> </td><td>
|
|
<p>Game format. </p>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" id="gga278b72961f3834dbaabf56f1524bb073a5f7ab2fcdf59f75ef79de0bfefde8565"></a><!-- doxytag: member="SCE_UMD_FMT_VIDEO" ref="gga278b72961f3834dbaabf56f1524bb073a5f7ab2fcdf59f75ef79de0bfefde8565" args="" -->SCE_UMD_FMT_VIDEO</em> </td><td>
|
|
<p>Video format. </p>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" id="gga278b72961f3834dbaabf56f1524bb073aa1fcd5f627485666bdec45c71cf15642"></a><!-- doxytag: member="SCE_UMD_FMT_AUDIO" ref="gga278b72961f3834dbaabf56f1524bb073aa1fcd5f627485666bdec45c71cf15642" args="" -->SCE_UMD_FMT_AUDIO</em> </td><td>
|
|
<p>Audio format. </p>
|
|
</td></tr>
|
|
<tr><td valign="top"><em><a class="anchor" id="gga278b72961f3834dbaabf56f1524bb073a2f9b043a9098417d4c2f764eee212375"></a><!-- doxytag: member="SCE_UMD_FMT_CLEAN" ref="gga278b72961f3834dbaabf56f1524bb073a2f9b043a9098417d4c2f764eee212375" args="" -->SCE_UMD_FMT_CLEAN</em> </td><td>
|
|
<p>Cleaning format. </p>
|
|
</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
</div><!-- contents -->
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Variables</a></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>
|
|
|
|
|
|
|
|
<hr class="footer"/><address class="footer"><small>
|
|
Generated on Wed Aug 3 2016 00:15:35 for uOFW by  <a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/>
|
|
</a> 1.7.6.1
|
|
</small></address>
|
|
|
|
</body>
|
|
</html>
|