<?xml version='1.0' encoding='UTF-8' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.16">
  <compounddef id="dma_8c" kind="file" language="C++">
    <compoundname>dma.c</compoundname>
    <includes refid="dma_8h" local="no">sys/dma.h</includes>
    <includes refid="io_8h" local="no">sys/io.h</includes>
    <incdepgraph>
      <node id="10">
        <label>sys/io.h</label>
        <link refid="io_8h"/>
      </node>
      <node id="1">
        <label>C:/Dev/git/UbixOS/sys/sys/dma.c</label>
        <link refid="dma_8c"/>
        <childnode refid="2" relation="include">
        </childnode>
        <childnode refid="10" relation="include">
        </childnode>
      </node>
      <node id="5">
        <label>sys/select.h</label>
        <link refid="select_8h"/>
        <childnode refid="6" relation="include">
        </childnode>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="7" relation="include">
        </childnode>
        <childnode refid="8" relation="include">
        </childnode>
        <childnode refid="9" relation="include">
        </childnode>
      </node>
      <node id="9">
        <label>sys/_sigset.h</label>
        <link refid="__sigset_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="3">
        <label>sys/types.h</label>
        <link refid="include_2sys_2types_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
        <childnode refid="5" relation="include">
        </childnode>
      </node>
      <node id="6">
        <label>sys/cdefs.h</label>
        <link refid="cdefs_8h"/>
      </node>
      <node id="2">
        <label>sys/dma.h</label>
        <link refid="dma_8h"/>
        <childnode refid="3" relation="include">
        </childnode>
      </node>
      <node id="4">
        <label>sys/_types.h</label>
        <link refid="__types_8h"/>
      </node>
      <node id="7">
        <label>sys/_timespec.h</label>
        <link refid="__timespec_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
      <node id="8">
        <label>sys/_timeval.h</label>
        <link refid="__timeval_8h"/>
        <childnode refid="4" relation="include">
        </childnode>
      </node>
    </incdepgraph>
      <sectiondef kind="define">
      <memberdef kind="define" id="dma_8c_1ad03cbb59aaf2eea05907807a12936e7f" prot="public" static="no">
        <name>highByte</name>
        <param><defname>x</defname></param>
        <initializer>((x &amp; 0xFF00) &gt;&gt; 8)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/sys/dma.c" line="33" column="9" bodyfile="C:/Dev/git/UbixOS/sys/sys/dma.c" bodystart="33" bodyend="-1"/>
      </memberdef>
      <memberdef kind="define" id="dma_8c_1a19a055e908717e6f71f285bc5c84ea45" prot="public" static="no">
        <name>lowByte</name>
        <param><defname>x</defname></param>
        <initializer>(x &amp; 0x00FF)</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/sys/dma.c" line="32" column="9" bodyfile="C:/Dev/git/UbixOS/sys/sys/dma.c" bodystart="32" bodyend="-1"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="var">
      <memberdef kind="variable" id="dma_8c_1a86470f16b06e0b7c17961d074c124550" prot="public" static="yes" mutable="no">
        <type><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref></type>
        <definition>uInt8 addrPort[8]</definition>
        <argsstring>[8]</argsstring>
        <name>addrPort</name>
        <initializer>= { 0x00, 0x02, 0x04, 0x06, 0xC0, 0xC4, 0xC8, 0xCC }</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/sys/dma.c" line="38" column="14" bodyfile="C:/Dev/git/UbixOS/sys/sys/dma.c" bodystart="38" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="dma_8c_1a0958d78130405d2a49b1daace7f59db7" prot="public" static="yes" mutable="no">
        <type><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref></type>
        <definition>uInt8 clearReg[8]</definition>
        <argsstring>[8]</argsstring>
        <name>clearReg</name>
        <initializer>= { 0x0C, 0x0C, 0x0C, 0x0C, 0xD8, 0xD8, 0xD8, 0xD8 }</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/sys/dma.c" line="36" column="14" bodyfile="C:/Dev/git/UbixOS/sys/sys/dma.c" bodystart="36" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="dma_8c_1a7856fd2b7ad20b0d7e189c8c52bd420e" prot="public" static="yes" mutable="no">
        <type><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref></type>
        <definition>uInt8 countPort[8]</definition>
        <argsstring>[8]</argsstring>
        <name>countPort</name>
        <initializer>= { 0x01, 0x03, 0x05, 0x07, 0xC2, 0xC6, 0xCA, 0xCE }</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/sys/dma.c" line="40" column="14" bodyfile="C:/Dev/git/UbixOS/sys/sys/dma.c" bodystart="40" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="dma_8c_1a8c07d2b2e2c5790ec43ea5b534db08ae" prot="public" static="yes" mutable="no">
        <type><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref></type>
        <definition>uInt8 maskReg[8]</definition>
        <argsstring>[8]</argsstring>
        <name>maskReg</name>
        <initializer>= { 0x0A, 0x0A, 0x0A, 0x0A, 0xD4, 0xD4, 0xD4, 0xD4 }</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/sys/dma.c" line="35" column="14" bodyfile="C:/Dev/git/UbixOS/sys/sys/dma.c" bodystart="35" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="dma_8c_1a28967b638d408de9a6469f8501c2f60c" prot="public" static="yes" mutable="no">
        <type><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref></type>
        <definition>uInt8 modeReg[8]</definition>
        <argsstring>[8]</argsstring>
        <name>modeReg</name>
        <initializer>= { 0x0B, 0x0B, 0x0B, 0x0B, 0xD6, 0xD6, 0xD6, 0xD6 }</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/sys/dma.c" line="37" column="14" bodyfile="C:/Dev/git/UbixOS/sys/sys/dma.c" bodystart="37" bodyend="-1"/>
      </memberdef>
      <memberdef kind="variable" id="dma_8c_1a9aa538f8203541a3c3bfc668a75d3e5f" prot="public" static="yes" mutable="no">
        <type><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref></type>
        <definition>uInt8 pagePort[8]</definition>
        <argsstring>[8]</argsstring>
        <name>pagePort</name>
        <initializer>= { 0x87, 0x83, 0x81, 0x82, 0x8F, 0x8B, 0x89, 0x8A }</initializer>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/sys/dma.c" line="39" column="14" bodyfile="C:/Dev/git/UbixOS/sys/sys/dma.c" bodystart="39" bodyend="-1"/>
      </memberdef>
      </sectiondef>
      <sectiondef kind="func">
      <memberdef kind="function" id="dma_8c_1ae136d2bd6481a13de8e96f5a583c45eb" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void _dmaXfer</definition>
        <argsstring>(uInt8 dmaChannel, uInt8 page, uInt offset, uInt length, uInt8 mode)</argsstring>
        <name>_dmaXfer</name>
        <param>
          <type><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref></type>
          <declname>dmaChannel</declname>
        </param>
        <param>
          <type><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref></type>
          <declname>page</declname>
        </param>
        <param>
          <type><ref refid="include_2sys_2types_8h_1a87d141052bcd5ec8a80812a565c70369" kindref="member">uInt</ref></type>
          <declname>offset</declname>
        </param>
        <param>
          <type><ref refid="include_2sys_2types_8h_1a87d141052bcd5ec8a80812a565c70369" kindref="member">uInt</ref></type>
          <declname>length</declname>
        </param>
        <param>
          <type><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref></type>
          <declname>mode</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/sys/dma.c" line="57" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/dma.c" bodystart="57" bodyend="69"/>
        <references refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" compoundref="io_8c" startline="72" endline="78">outportByte</references>
        <referencedby refid="dma_8c_1a79162e5c636d27f92e4e2c7c87bb6e22" compoundref="dma_8c" startline="42" endline="55">dmaXfer</referencedby>
      </memberdef>
      <memberdef kind="function" id="dma_8c_1a79162e5c636d27f92e4e2c7c87bb6e22" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>void</type>
        <definition>void dmaXfer</definition>
        <argsstring>(uint8_t channel, uint32_t address, uInt length, uint8_t read)</argsstring>
        <name>dmaXfer</name>
        <param>
          <type><ref refid="include_2sys_2types_8h_1a2aff71146ab4942b2b38860c749c4074" kindref="member">uint8_t</ref></type>
          <declname>channel</declname>
        </param>
        <param>
          <type><ref refid="include_2sys_2types_8h_1a0238af00180b6d9278fa1c6aa790fdf4" kindref="member">uint32_t</ref></type>
          <declname>address</declname>
        </param>
        <param>
          <type><ref refid="include_2sys_2types_8h_1a87d141052bcd5ec8a80812a565c70369" kindref="member">uInt</ref></type>
          <declname>length</declname>
        </param>
        <param>
          <type><ref refid="include_2sys_2types_8h_1a2aff71146ab4942b2b38860c749c4074" kindref="member">uint8_t</ref></type>
          <declname>read</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="C:/Dev/git/UbixOS/sys/sys/dma.c" line="42" column="6" bodyfile="C:/Dev/git/UbixOS/sys/sys/dma.c" bodystart="42" bodyend="55"/>
        <references refid="dma_8c_1ae136d2bd6481a13de8e96f5a583c45eb" compoundref="dma_8c" startline="57" endline="69">_dmaXfer</references>
        <references refid="gen__calls_8h_1a5eff3a25d417fafce7c4f211db219ca2" compoundref="gen__calls_8c" startline="100" endline="119">read</references>
      </memberdef>
      </sectiondef>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<codeline lineno="1"><highlight class="comment">/*-</highlight></codeline>
<codeline lineno="2"><highlight class="comment"><sp/>*<sp/>Copyright<sp/>(c)<sp/>2002-2018<sp/>The<sp/>UbixOS<sp/>Project.</highlight></codeline>
<codeline lineno="3"><highlight class="comment"><sp/>*<sp/>All<sp/>rights<sp/>reserved.</highlight></codeline>
<codeline lineno="4"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="5"><highlight class="comment"><sp/>*<sp/>This<sp/>was<sp/>developed<sp/>by<sp/>Christopher<sp/>W.<sp/>Olsen<sp/>for<sp/>the<sp/>UbixOS<sp/>Project.</highlight></codeline>
<codeline lineno="6"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="7"><highlight class="comment"><sp/>*<sp/>Redistribution<sp/>and<sp/>use<sp/>in<sp/>source<sp/>and<sp/>binary<sp/>forms,<sp/>with<sp/>or<sp/>without<sp/>modification,<sp/>are<sp/>permitted</highlight></codeline>
<codeline lineno="8"><highlight class="comment"><sp/>*<sp/>provided<sp/>that<sp/>the<sp/>following<sp/>conditions<sp/>are<sp/>met:</highlight></codeline>
<codeline lineno="9"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="10"><highlight class="comment"><sp/>*<sp/>1)<sp/>Redistributions<sp/>of<sp/>source<sp/>code<sp/>must<sp/>retain<sp/>the<sp/>above<sp/>copyright<sp/>notice,<sp/>this<sp/>list<sp/>of</highlight></codeline>
<codeline lineno="11"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>conditions,<sp/>the<sp/>following<sp/>disclaimer<sp/>and<sp/>the<sp/>list<sp/>of<sp/>authors.</highlight></codeline>
<codeline lineno="12"><highlight class="comment"><sp/>*<sp/>2)<sp/>Redistributions<sp/>in<sp/>binary<sp/>form<sp/>must<sp/>reproduce<sp/>the<sp/>above<sp/>copyright<sp/>notice,<sp/>this<sp/>list<sp/>of</highlight></codeline>
<codeline lineno="13"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>conditions,<sp/>the<sp/>following<sp/>disclaimer<sp/>and<sp/>the<sp/>list<sp/>of<sp/>authors<sp/>in<sp/>the<sp/>documentation<sp/>and/or</highlight></codeline>
<codeline lineno="14"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>other<sp/>materials<sp/>provided<sp/>with<sp/>the<sp/>distribution.</highlight></codeline>
<codeline lineno="15"><highlight class="comment"><sp/>*<sp/>3)<sp/>Neither<sp/>the<sp/>name<sp/>of<sp/>the<sp/>UbixOS<sp/>Project<sp/>nor<sp/>the<sp/>names<sp/>of<sp/>its<sp/>contributors<sp/>may<sp/>be<sp/>used<sp/>to</highlight></codeline>
<codeline lineno="16"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>endorse<sp/>or<sp/>promote<sp/>products<sp/>derived<sp/>from<sp/>this<sp/>software<sp/>without<sp/>specific<sp/>prior<sp/>written</highlight></codeline>
<codeline lineno="17"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>permission.</highlight></codeline>
<codeline lineno="18"><highlight class="comment"><sp/>*</highlight></codeline>
<codeline lineno="19"><highlight class="comment"><sp/>*<sp/>THIS<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>BY<sp/>THE<sp/>AUTHOR<sp/>AND<sp/>CONTRIBUTORS<sp/>&quot;AS<sp/>IS&quot;<sp/>AND<sp/>ANY<sp/>EXPRESS<sp/>OR<sp/>IMPLIED</highlight></codeline>
<codeline lineno="20"><highlight class="comment"><sp/>*<sp/>WARRANTIES,<sp/>INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>THE<sp/>IMPLIED<sp/>WARRANTIES<sp/>OF<sp/>MERCHANTABILITY<sp/>AND<sp/>FITNESS</highlight></codeline>
<codeline lineno="21"><highlight class="comment"><sp/>*<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>ARE<sp/>DISCLAIMED.<sp/>IN<sp/>NO<sp/>EVENT<sp/>SHALL<sp/>THE<sp/>COPYRIGHT<sp/>OWNER<sp/>OR<sp/>CONTRIBUTORS</highlight></codeline>
<codeline lineno="22"><highlight class="comment"><sp/>*<sp/>BE<sp/>LIABLE<sp/>FOR<sp/>ANY<sp/>DIRECT,<sp/>INDIRECT,<sp/>INCIDENTAL,<sp/>SPECIAL,<sp/>EXEMPLARY,<sp/>OR<sp/>CONSEQUENTIAL<sp/>DAMAGES</highlight></codeline>
<codeline lineno="23"><highlight class="comment"><sp/>*<sp/>(INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>PROCUREMENT<sp/>OF<sp/>SUBSTITUTE<sp/>GOODS<sp/>OR<sp/>SERVICES;<sp/>LOSS<sp/>OF<sp/>USE,<sp/>DATA,</highlight></codeline>
<codeline lineno="24"><highlight class="comment"><sp/>*<sp/>OR<sp/>PROFITS;<sp/>OR<sp/>BUSINESS<sp/>INTERRUPTION)<sp/>HOWEVER<sp/>CAUSED<sp/>AND<sp/>ON<sp/>ANY<sp/>THEORY<sp/>OF<sp/>LIABILITY,<sp/>WHETHER<sp/>IN</highlight></codeline>
<codeline lineno="25"><highlight class="comment"><sp/>*<sp/>CONTRACT,<sp/>STRICT<sp/>LIABILITY,<sp/>OR<sp/>TORT<sp/>(INCLUDING<sp/>NEGLIGENCE<sp/>OR<sp/>OTHERWISE)<sp/>ARISING<sp/>IN<sp/>ANY<sp/>WAY<sp/>OUT</highlight></codeline>
<codeline lineno="26"><highlight class="comment"><sp/>*<sp/>OF<sp/>THE<sp/>USE<sp/>OF<sp/>THIS<sp/>SOFTWARE,<sp/>EVEN<sp/>IF<sp/>ADVISED<sp/>OF<sp/>THE<sp/>POSSIBILITY<sp/>OF<sp/>SUCH<sp/>DAMAGE.</highlight></codeline>
<codeline lineno="27"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="28"><highlight class="normal"></highlight></codeline>
<codeline lineno="29"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="dma_8h" kindref="compound">sys/dma.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="30"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="io_8h" kindref="compound">sys/io.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="31"><highlight class="normal"></highlight></codeline>
<codeline lineno="32" refid="dma_8c_1a19a055e908717e6f71f285bc5c84ea45" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>lowByte(x)<sp/><sp/>(x<sp/>&amp;<sp/>0x00FF)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="33" refid="dma_8c_1ad03cbb59aaf2eea05907807a12936e7f" refkind="member"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>highByte(x)<sp/>((x<sp/>&amp;<sp/>0xFF00)<sp/>&gt;&gt;<sp/>8)</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="34"><highlight class="normal"></highlight></codeline>
<codeline lineno="35"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/>maskReg[8]<sp/>=<sp/>{<sp/>0x0A,<sp/>0x0A,<sp/>0x0A,<sp/>0x0A,<sp/>0xD4,<sp/>0xD4,<sp/>0xD4,<sp/>0xD4<sp/>};</highlight></codeline>
<codeline lineno="36"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/>clearReg[8]<sp/>=<sp/>{<sp/>0x0C,<sp/>0x0C,<sp/>0x0C,<sp/>0x0C,<sp/>0xD8,<sp/>0xD8,<sp/>0xD8,<sp/>0xD8<sp/>};</highlight></codeline>
<codeline lineno="37"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/>modeReg[8]<sp/>=<sp/>{<sp/>0x0B,<sp/>0x0B,<sp/>0x0B,<sp/>0x0B,<sp/>0xD6,<sp/>0xD6,<sp/>0xD6,<sp/>0xD6<sp/>};</highlight></codeline>
<codeline lineno="38"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/>addrPort[8]<sp/>=<sp/>{<sp/>0x00,<sp/>0x02,<sp/>0x04,<sp/>0x06,<sp/>0xC0,<sp/>0xC4,<sp/>0xC8,<sp/>0xCC<sp/>};</highlight></codeline>
<codeline lineno="39"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/>pagePort[8]<sp/>=<sp/>{<sp/>0x87,<sp/>0x83,<sp/>0x81,<sp/>0x82,<sp/>0x8F,<sp/>0x8B,<sp/>0x89,<sp/>0x8A<sp/>};</highlight></codeline>
<codeline lineno="40"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/>countPort[8]<sp/>=<sp/>{<sp/>0x01,<sp/>0x03,<sp/>0x05,<sp/>0x07,<sp/>0xC2,<sp/>0xC6,<sp/>0xCA,<sp/>0xCE<sp/>};</highlight></codeline>
<codeline lineno="41"><highlight class="normal"></highlight></codeline>
<codeline lineno="42" refid="dma_8c_1a79162e5c636d27f92e4e2c7c87bb6e22" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="dma_8c_1a79162e5c636d27f92e4e2c7c87bb6e22" kindref="member">dmaXfer</ref>(<ref refid="include_2sys_2types_8h_1a2aff71146ab4942b2b38860c749c4074" kindref="member">uint8_t</ref><sp/>channel,<sp/><ref refid="include_2sys_2types_8h_1a0238af00180b6d9278fa1c6aa790fdf4" kindref="member">uint32_t</ref><sp/>address,<sp/><ref refid="include_2sys_2types_8h_1a87d141052bcd5ec8a80812a565c70369" kindref="member">uInt</ref><sp/>length,<sp/><ref refid="include_2sys_2types_8h_1a2aff71146ab4942b2b38860c749c4074" kindref="member">uint8_t</ref><sp/><ref refid="gen__calls_8h_1a5eff3a25d417fafce7c4f211db219ca2" kindref="member">read</ref>)<sp/>{</highlight></codeline>
<codeline lineno="43"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>page<sp/>=<sp/>0,<sp/>mode<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="44"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>offset<sp/>=<sp/>0;</highlight></codeline>
<codeline lineno="45"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="gen__calls_8h_1a5eff3a25d417fafce7c4f211db219ca2" kindref="member">read</ref>)<sp/>{</highlight></codeline>
<codeline lineno="46"><highlight class="normal"><sp/><sp/><sp/><sp/>mode<sp/>=<sp/>0x48<sp/>+<sp/>channel;</highlight></codeline>
<codeline lineno="47"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="48"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline>
<codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/>mode<sp/>=<sp/>0x44<sp/>+<sp/>channel;</highlight></codeline>
<codeline lineno="50"><highlight class="normal"><sp/><sp/>}</highlight></codeline>
<codeline lineno="51"><highlight class="normal"><sp/><sp/>page<sp/>=<sp/>address<sp/>&gt;&gt;<sp/>16;</highlight></codeline>
<codeline lineno="52"><highlight class="normal"><sp/><sp/>offset<sp/>=<sp/>address<sp/>&amp;<sp/>0xFFFF;</highlight></codeline>
<codeline lineno="53"><highlight class="normal"><sp/><sp/>length--;</highlight></codeline>
<codeline lineno="54"><highlight class="normal"><sp/><sp/><ref refid="dma_8c_1ae136d2bd6481a13de8e96f5a583c45eb" kindref="member">_dmaXfer</ref>(channel,<sp/>page,<sp/>offset,<sp/>length,<sp/>mode);</highlight></codeline>
<codeline lineno="55"><highlight class="normal">}</highlight></codeline>
<codeline lineno="56"><highlight class="normal"></highlight></codeline>
<codeline lineno="57" refid="dma_8c_1ae136d2bd6481a13de8e96f5a583c45eb" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="dma_8c_1ae136d2bd6481a13de8e96f5a583c45eb" kindref="member">_dmaXfer</ref>(<ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/>dmaChannel,<sp/><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/>page,<sp/><ref refid="include_2sys_2types_8h_1a87d141052bcd5ec8a80812a565c70369" kindref="member">uInt</ref><sp/>offset,<sp/><ref refid="include_2sys_2types_8h_1a87d141052bcd5ec8a80812a565c70369" kindref="member">uInt</ref><sp/>length,<sp/><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/>mode)<sp/>{</highlight></codeline>
<codeline lineno="58"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//asm(&quot;cli&quot;);</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="59"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(maskReg[dmaChannel],<sp/>0x04<sp/>|<sp/>dmaChannel);</highlight></codeline>
<codeline lineno="60"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(clearReg[dmaChannel],<sp/>0x00);</highlight></codeline>
<codeline lineno="61"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(modeReg[dmaChannel],<sp/>mode);</highlight></codeline>
<codeline lineno="62"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(addrPort[dmaChannel],<sp/><ref refid="dma_8c_1a19a055e908717e6f71f285bc5c84ea45" kindref="member">lowByte</ref>(offset));</highlight></codeline>
<codeline lineno="63"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(addrPort[dmaChannel],<sp/><ref refid="dma_8c_1ad03cbb59aaf2eea05907807a12936e7f" kindref="member">highByte</ref>(offset));</highlight></codeline>
<codeline lineno="64"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(pagePort[dmaChannel],<sp/>page);</highlight></codeline>
<codeline lineno="65"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(countPort[dmaChannel],<sp/><ref refid="dma_8c_1a19a055e908717e6f71f285bc5c84ea45" kindref="member">lowByte</ref>(length));</highlight></codeline>
<codeline lineno="66"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(countPort[dmaChannel],<sp/><ref refid="dma_8c_1ad03cbb59aaf2eea05907807a12936e7f" kindref="member">highByte</ref>(length));</highlight></codeline>
<codeline lineno="67"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(maskReg[dmaChannel],<sp/>dmaChannel);</highlight></codeline>
<codeline lineno="68"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//asm(&quot;sti&quot;);</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="69"><highlight class="normal">}</highlight></codeline>
    </programlisting>
    <location file="C:/Dev/git/UbixOS/sys/sys/dma.c"/>
  </compounddef>
</doxygen>
