Newer
Older
UbixOS / doc / xml / include_2sys_2device_8h.xml
<?xml version='1.0' encoding='iso-8859-1' standalone='no'?>
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.4.7">
  <compounddef id="include_2sys_2device_8h" kind="file">
    <compoundname>device.h</compoundname>
    <includes refid="include_2ubixos_2types_8h" local="no">ubixos/types.h</includes>
    <includedby refid="devfs_8c" local="no">src/sys/devfs/devfs.c</includedby>
    <includedby refid="buf_8h" local="no">src/sys/include/sys/buf.h</includedby>
    <includedby refid="include_2ubixfs_2ubixfs_8h" local="no">src/sys/include/ubixfs/ubixfs.h</includedby>
    <includedby refid="ffs_8h" local="no">src/sys/include/ufs/ffs.h</includedby>
    <includedby refid="ufs_8h" local="no">src/sys/include/ufs/ufs.h</includedby>
    <includedby refid="fdc_8c" local="no">src/sys/isa/fdc.c</includedby>
    <includedby refid="hd_8c" local="no">src/sys/pci/hd.c</includedby>
    <includedby refid="device_8c" local="no">src/sys/sys/device.c</includedby>
    <includedby refid="mount_8c" local="no">src/sys/vfs/mount.c</includedby>
    <incdepgraph>
      <node id="1429">
        <label>ubixos/types.h</label>
        <link refid="include_2ubixos_2types_8h"/>
        <childnode refid="1430" relation="include">
        </childnode>
      </node>
      <node id="1430">
        <label>sys/_types.h</label>
        <link refid="__types_8h"/>
      </node>
      <node id="1428">
        <label>src/sys/include/sys/device.h</label>
        <link refid="include/sys/device.h"/>
        <childnode refid="1429" relation="include">
        </childnode>
      </node>
    </incdepgraph>
    <invincdepgraph>
      <node id="1434">
        <label>src/sys/ufs/ffs.c</label>
        <link refid="ffs_8c"/>
      </node>
      <node id="1448">
        <label>src/sys/include/ufs/ufs.h</label>
        <link refid="ufs_8h"/>
        <childnode refid="1437" relation="include">
        </childnode>
        <childnode refid="1434" relation="include">
        </childnode>
        <childnode refid="1447" relation="include">
        </childnode>
      </node>
      <node id="1439">
        <label>src/sys/pci/hd.c</label>
        <link refid="hd_8c"/>
      </node>
      <node id="1446">
        <label>src/sys/include/ufs/ffs.h</label>
        <link refid="ffs_8h"/>
        <childnode refid="1434" relation="include">
        </childnode>
        <childnode refid="1447" relation="include">
        </childnode>
      </node>
      <node id="1443">
        <label>src/sys/ubixfs/directory.c</label>
        <link refid="directory_8c"/>
      </node>
      <node id="1447">
        <label>src/sys/ufs/ufs.c</label>
        <link refid="ufs_8c"/>
      </node>
      <node id="1441">
        <label>src/sys/ubixfs/block.c</label>
        <link refid="block_8c"/>
      </node>
      <node id="1442">
        <label>src/sys/ubixfs/dirCache.c</label>
        <link refid="dirCache_8c"/>
      </node>
      <node id="1445">
        <label>src/sys/ubixfs/ubixfs.c</label>
        <link refid="ubixfs_8c"/>
      </node>
      <node id="1438">
        <label>src/sys/init/main.c</label>
        <link refid="main_8c"/>
      </node>
      <node id="1435">
        <label>src/sys/include/ubixfs/ubixfs.h</label>
        <link refid="include_2ubixfs_2ubixfs_8h"/>
        <childnode refid="1436" relation="include">
        </childnode>
        <childnode refid="1437" relation="include">
        </childnode>
        <childnode refid="1440" relation="include">
        </childnode>
        <childnode refid="1441" relation="include">
        </childnode>
        <childnode refid="1442" relation="include">
        </childnode>
        <childnode refid="1443" relation="include">
        </childnode>
        <childnode refid="1444" relation="include">
        </childnode>
        <childnode refid="1445" relation="include">
        </childnode>
      </node>
      <node id="1450">
        <label>src/sys/sys/device.c</label>
        <link refid="device_8c"/>
      </node>
      <node id="1440">
        <label>src/sys/kernel/syscall.c</label>
        <link refid="syscall_8c"/>
      </node>
      <node id="1436">
        <label>src/sys/include/pci/hd.h</label>
        <link refid="hd_8h"/>
        <childnode refid="1437" relation="include">
        </childnode>
        <childnode refid="1439" relation="include">
        </childnode>
      </node>
      <node id="1444">
        <label>src/sys/ubixfs/thread.c</label>
        <link refid="thread_8c"/>
      </node>
      <node id="1437">
        <label>src/sys/include/ubixos/init.h</label>
        <link refid="ubixos_2init_8h"/>
        <childnode refid="1438" relation="include">
        </childnode>
      </node>
      <node id="1451">
        <label>src/sys/vfs/mount.c</label>
        <link refid="mount_8c"/>
      </node>
      <node id="1432">
        <label>src/sys/devfs/devfs.c</label>
        <link refid="devfs_8c"/>
      </node>
      <node id="1433">
        <label>src/sys/include/sys/buf.h</label>
        <link refid="buf_8h"/>
        <childnode refid="1434" relation="include">
        </childnode>
      </node>
      <node id="1449">
        <label>src/sys/isa/fdc.c</label>
        <link refid="fdc_8c"/>
      </node>
      <node id="1431">
        <label>src/sys/include/sys/device.h</label>
        <link refid="include/sys/device.h"/>
        <childnode refid="1432" relation="include">
        </childnode>
        <childnode refid="1433" relation="include">
        </childnode>
        <childnode refid="1435" relation="include">
        </childnode>
        <childnode refid="1446" relation="include">
        </childnode>
        <childnode refid="1448" relation="include">
        </childnode>
        <childnode refid="1449" relation="include">
        </childnode>
        <childnode refid="1439" relation="include">
        </childnode>
        <childnode refid="1450" relation="include">
        </childnode>
        <childnode refid="1451" relation="include">
        </childnode>
      </node>
    </invincdepgraph>
    <innerclass refid="structdevice__interface" prot="public">device_interface</innerclass>
    <innerclass refid="structdevice__node" prot="public">device_node</innerclass>
    <innerclass refid="structdevice__resource" prot="public">device_resource</innerclass>
      <sectiondef kind="func">
      <memberdef kind="function" id="include_2sys_2device_8h_1256b750ab99e3be9b83a9bfd37a22388" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int device_add</definition>
        <argsstring>(int, char, struct device_interface *)</argsstring>
        <name>device_add</name>
        <param>
          <type>int</type>
        </param>
        <param>
          <type>char</type>
        </param>
        <param>
          <type>struct <ref refid="structdevice__interface" kindref="compound">device_interface</ref> *</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/sys/device.h" line="64" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/sys/device.c" bodystart="51" bodyend="73"/>
        <references refid="device_8c_190d9a2a00434982169ff5710b19a4c1c" compoundref="device_8c" startline="37">devices</references>
        <references refid="device_8c_19c7fbb38f0fb266ba997f51da7cf8a50" compoundref="device_8c" startline="38">deviceSpinLock</references>
        <references refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" compoundref="include_2sys_2device_8h" startline="38">device_node::devInfo</references>
        <references refid="structdevice__interface_192620413c2580ea3cf01e121bb54c254">device_interface::init</references>
        <references refid="structdevice__interface_1561678212ee39a09ce43c1a3567c64e2" compoundref="include_2sys_2device_8h" startline="49">device_interface::initialized</references>
        <references refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" compoundref="kmalloc_8c" startline="247" endline="339">kmalloc</references>
        <references refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" compoundref="kprintf_8c" startline="38" endline="49">kprintf</references>
        <references refid="structdevice__node_13817327901b55e2ca15b2e4dfa20789f" compoundref="include_2sys_2device_8h" startline="41">device_node::minor</references>
        <references refid="structdevice__node_1747f88b0cd43b7b710d8fb86ea50fbaf" compoundref="include_2sys_2device_8h" startline="37">device_node::next</references>
        <references refid="def_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="def_8h" startline="41">NULL</references>
        <references refid="structdevice__node_17ec9182b21c0911760a148ac77a7e2a2" compoundref="include_2sys_2device_8h" startline="36">device_node::prev</references>
        <references refid="spinlock_8h_12cd9a4502680fb8e7f0fe6b029e558b1" compoundref="spinlock_8c" startline="56" endline="62">spinLock</references>
        <references refid="spinlock_8h_1dd996cbbb3b9826dd9c8cf02b66a4c65" compoundref="spinlock_8c" startline="37" endline="46">spinUnlock</references>
        <references refid="structdevice__node_1431c348cd0c27dceca9b3cd14ec6659d" compoundref="include_2sys_2device_8h" startline="40">device_node::type</references>
        <referencedby refid="fdc_8c_12fad92b12d9ff56bf300b7e53875c75d" compoundref="fdc_8c" startline="63" endline="77">fdc_init</referencedby>
        <referencedby refid="hd_8c_1a6ffe735243161c69ce0930999e02f88" compoundref="hd_8c" startline="39" endline="123">initHardDisk</referencedby>
      </memberdef>
      <memberdef kind="function" id="include_2sys_2device_8h_10002a4ec01ee11597c6751602f3e4c3d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type><ref refid="structdevice__node" kindref="compound">device_node</ref> *</type>
        <definition>struct device_node* device_find</definition>
        <argsstring>(int major, int minor)</argsstring>
        <name>device_find</name>
        <param>
          <type>int</type>
          <declname>major</declname>
        </param>
        <param>
          <type>int</type>
          <declname>minor</declname>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/sys/device.h" line="65" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/sys/device.c" bodystart="86" bodyend="100"/>
        <references refid="device_8c_190d9a2a00434982169ff5710b19a4c1c" compoundref="device_8c" startline="37">devices</references>
        <references refid="device_8c_19c7fbb38f0fb266ba997f51da7cf8a50" compoundref="device_8c" startline="38">deviceSpinLock</references>
        <references refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" compoundref="include_2sys_2device_8h" startline="38">device_node::devInfo</references>
        <references refid="structdevice__interface_17eb42b0bb3e06dbc9183531a5e59ddb8" compoundref="include_2sys_2device_8h" startline="51">device_interface::major</references>
        <references refid="structdevice__node_13817327901b55e2ca15b2e4dfa20789f" compoundref="include_2sys_2device_8h" startline="41">device_node::minor</references>
        <references refid="structdevice__node_1747f88b0cd43b7b710d8fb86ea50fbaf" compoundref="include_2sys_2device_8h" startline="37">device_node::next</references>
        <references refid="spinlock_8h_12cd9a4502680fb8e7f0fe6b029e558b1" compoundref="spinlock_8c" startline="56" endline="62">spinLock</references>
        <references refid="spinlock_8h_1dd996cbbb3b9826dd9c8cf02b66a4c65" compoundref="spinlock_8c" startline="37" endline="46">spinUnlock</references>
        <referencedby refid="devfs_8c_1acec49d86336bd84c9feb9dea354381c" compoundref="devfs_8c" startline="71" endline="107">devfs_open</referencedby>
        <referencedby refid="devfs_8c_1c6b73190c80703169760a556abafab22" compoundref="devfs_8c" startline="114" endline="151">devfs_read</referencedby>
        <referencedby refid="devfs_8c_1ee16012227e22291c72d6f74258bb8a9" compoundref="devfs_8c" startline="160" endline="175">devfs_write</referencedby>
        <referencedby refid="mount_8c_18379310fce9e1a500f602059516e25f0" compoundref="mount_8c" startline="47" endline="94">vfs_mount</referencedby>
      </memberdef>
      <memberdef kind="function" id="include_2sys_2device_8h_137fc0f624e03e0998fd2dd5922505ada" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
        <type>int</type>
        <definition>int device_remove</definition>
        <argsstring>(struct device_node *)</argsstring>
        <name>device_remove</name>
        <param>
          <type>struct <ref refid="structdevice__node" kindref="compound">device_node</ref> *</type>
        </param>
        <briefdescription>
        </briefdescription>
        <detaileddescription>
        </detaileddescription>
        <inbodydescription>
        </inbodydescription>
        <location file="/usr/home/reddawg/source/ubix2/src/sys/include/sys/device.h" line="66" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/sys/device.c" bodystart="110" bodyend="145"/>
        <references refid="device_8c_190d9a2a00434982169ff5710b19a4c1c" compoundref="device_8c" startline="37">devices</references>
        <references refid="device_8c_19c7fbb38f0fb266ba997f51da7cf8a50" compoundref="device_8c" startline="38">deviceSpinLock</references>
        <references refid="kmalloc_8h_1aa9ed6886459604cf73ccdbf6410e487" compoundref="kmalloc_8c" startline="351" endline="391">kfree</references>
        <references refid="structdevice__node_1747f88b0cd43b7b710d8fb86ea50fbaf" compoundref="include_2sys_2device_8h" startline="37">device_node::next</references>
        <references refid="def_8h_1070d2ce7b6bb7e5c05602aa8c308d0c4" compoundref="def_8h" startline="41">NULL</references>
        <references refid="spinlock_8h_12cd9a4502680fb8e7f0fe6b029e558b1" compoundref="spinlock_8c" startline="56" endline="62">spinLock</references>
        <references refid="spinlock_8h_1dd996cbbb3b9826dd9c8cf02b66a4c65" compoundref="spinlock_8c" startline="37" endline="46">spinUnlock</references>
      </memberdef>
      </sectiondef>
    <briefdescription>
    </briefdescription>
    <detaileddescription>
    </detaileddescription>
    <programlisting>
<codeline lineno="1"><highlight class="comment">/*****************************************************************************************</highlight></codeline>
<codeline lineno="2"><highlight class="comment"><sp/>Copyright<sp/>(c)<sp/>2002-2004<sp/>The<sp/>UbixOS<sp/>Project</highlight></codeline>
<codeline lineno="3"><highlight class="comment"><sp/>All<sp/>rights<sp/>reserved.</highlight></codeline>
<codeline lineno="4"><highlight class="comment"></highlight></codeline>
<codeline lineno="5"><highlight class="comment"><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</highlight></codeline>
<codeline lineno="6"><highlight class="comment"><sp/>permitted<sp/>provided<sp/>that<sp/>the<sp/>following<sp/>conditions<sp/>are<sp/>met:</highlight></codeline>
<codeline lineno="7"><highlight class="comment"></highlight></codeline>
<codeline lineno="8"><highlight class="comment"><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="9"><highlight class="comment"><sp/>conditions,<sp/>the<sp/>following<sp/>disclaimer<sp/>and<sp/>the<sp/>list<sp/>of<sp/>authors.<sp/><sp/>Redistributions<sp/>in<sp/>binary</highlight></codeline>
<codeline lineno="10"><highlight class="comment"><sp/>form<sp/>must<sp/>reproduce<sp/>the<sp/>above<sp/>copyright<sp/>notice,<sp/>this<sp/>list<sp/>of<sp/>conditions,<sp/>the<sp/>following</highlight></codeline>
<codeline lineno="11"><highlight class="comment"><sp/>disclaimer<sp/>and<sp/>the<sp/>list<sp/>of<sp/>authors<sp/>in<sp/>the<sp/>documentation<sp/>and/or<sp/>other<sp/>materials<sp/>provided</highlight></codeline>
<codeline lineno="12"><highlight class="comment"><sp/>with<sp/>the<sp/>distribution.<sp/>Neither<sp/>the<sp/>name<sp/>of<sp/>the<sp/>UbixOS<sp/>Project<sp/>nor<sp/>the<sp/>names<sp/>of<sp/>its</highlight></codeline>
<codeline lineno="13"><highlight class="comment"><sp/>contributors<sp/>may<sp/>be<sp/>used<sp/>to<sp/>endorse<sp/>or<sp/>promote<sp/>products<sp/>derived<sp/>from<sp/>this<sp/>software</highlight></codeline>
<codeline lineno="14"><highlight class="comment"><sp/>without<sp/>specific<sp/>prior<sp/>written<sp/>permission.</highlight></codeline>
<codeline lineno="15"><highlight class="comment"></highlight></codeline>
<codeline lineno="16"><highlight class="comment"><sp/>THIS<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>BY<sp/>THE<sp/>COPYRIGHT<sp/>HOLDERS<sp/>AND<sp/>CONTRIBUTORS<sp/>&quot;AS<sp/>IS&quot;<sp/>AND<sp/>ANY</highlight></codeline>
<codeline lineno="17"><highlight class="comment"><sp/>EXPRESS<sp/>OR<sp/>IMPLIED<sp/>WARRANTIES,<sp/>INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>THE<sp/>IMPLIED<sp/>WARRANTIES<sp/>OF</highlight></codeline>
<codeline lineno="18"><highlight class="comment"><sp/>MERCHANTABILITY<sp/>AND<sp/>FITNESS<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>ARE<sp/>DISCLAIMED.<sp/>IN<sp/>NO<sp/>EVENT<sp/>SHALL</highlight></codeline>
<codeline lineno="19"><highlight class="comment"><sp/>THE<sp/>COPYRIGHT<sp/>OWNER<sp/>OR<sp/>CONTRIBUTORS<sp/>BE<sp/>LIABLE<sp/>FOR<sp/>ANY<sp/>DIRECT,<sp/>INDIRECT,<sp/>INCIDENTAL,</highlight></codeline>
<codeline lineno="20"><highlight class="comment"><sp/>SPECIAL,<sp/>EXEMPLARY,<sp/>OR<sp/>CONSEQUENTIAL<sp/>DAMAGES<sp/>(INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>PROCUREMENT</highlight></codeline>
<codeline lineno="21"><highlight class="comment"><sp/>OF<sp/>SUBSTITUTE<sp/>GOODS<sp/>OR<sp/>SERVICES;<sp/>LOSS<sp/>OF<sp/>USE,<sp/>DATA,<sp/>OR<sp/>PROFITS;<sp/>OR<sp/>BUSINESS<sp/>INTERRUPTION)</highlight></codeline>
<codeline lineno="22"><highlight class="comment"><sp/>HOWEVER<sp/>CAUSED<sp/>AND<sp/>ON<sp/>ANY<sp/>THEORY<sp/>OF<sp/>LIABILITY,<sp/>WHETHER<sp/>IN<sp/>CONTRACT,<sp/>STRICT<sp/>LIABILITY,<sp/>OR</highlight></codeline>
<codeline lineno="23"><highlight class="comment"><sp/>TORT<sp/>(INCLUDING<sp/>NEGLIGENCE<sp/>OR<sp/>OTHERWISE)<sp/>ARISING<sp/>IN<sp/>ANY<sp/>WAY<sp/>OUT<sp/>OF<sp/>THE<sp/>USE<sp/>OF<sp/>THIS</highlight></codeline>
<codeline lineno="24"><highlight class="comment"><sp/>SOFTWARE,<sp/>EVEN<sp/>IF<sp/>ADVISED<sp/>OF<sp/>THE<sp/>POSSIBILITY<sp/>OF<sp/>SUCH<sp/>DAMAGE.</highlight></codeline>
<codeline lineno="25"><highlight class="comment"></highlight></codeline>
<codeline lineno="26"><highlight class="comment"><sp/>$Id: include_2sys_2device_8h.xml 88 2016-01-12 00:11:29Z reddawg $</highlight></codeline>
<codeline lineno="27"><highlight class="comment"></highlight></codeline>
<codeline lineno="28"><highlight class="comment">*****************************************************************************************/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="29"><highlight class="normal"></highlight></codeline>
<codeline lineno="30"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>_DEVICE_H</highlight></codeline>
<codeline lineno="31"><highlight class="preprocessor"></highlight><highlight class="preprocessor">#define<sp/>_DEVICE_H</highlight></codeline>
<codeline lineno="32"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="33"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>&lt;<ref refid="include_2ubixos_2types_8h" kindref="compound">ubixos/types.h</ref>&gt;</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="34"><highlight class="normal"></highlight></codeline>
<codeline lineno="35" refid="structdevice__node" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdevice__node" kindref="compound">device_node</ref><sp/>{</highlight></codeline>
<codeline lineno="36" refid="structdevice__node_17ec9182b21c0911760a148ac77a7e2a2" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdevice__node" kindref="compound">device_node</ref><sp/><sp/><sp/><sp/><sp/><sp/>*<ref refid="structdevice__node_17ec9182b21c0911760a148ac77a7e2a2" kindref="member">prev</ref>;</highlight></codeline>
<codeline lineno="37" refid="structdevice__node_1747f88b0cd43b7b710d8fb86ea50fbaf" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdevice__node" kindref="compound">device_node</ref><sp/><sp/><sp/><sp/><sp/><sp/>*<ref refid="structdevice__node_1747f88b0cd43b7b710d8fb86ea50fbaf" kindref="member">next</ref>;</highlight></codeline>
<codeline lineno="38" refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdevice__interface" kindref="compound">device_interface</ref><sp/>*<ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>;</highlight></codeline>
<codeline lineno="39" refid="structdevice__node_1d445e096509dce85b184a2a3d4f9a52f" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdevice__resource" kindref="compound">device_resource</ref><sp/><sp/>*<ref refid="structdevice__node_1d445e096509dce85b184a2a3d4f9a52f" kindref="member">devRec</ref>;</highlight></codeline>
<codeline lineno="40" refid="structdevice__node_1431c348cd0c27dceca9b3cd14ec6659d" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="structdevice__node_1431c348cd0c27dceca9b3cd14ec6659d" kindref="member">type</ref>;</highlight></codeline>
<codeline lineno="41" refid="structdevice__node_13817327901b55e2ca15b2e4dfa20789f" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="structdevice__node_13817327901b55e2ca15b2e4dfa20789f" kindref="member">minor</ref>;</highlight></codeline>
<codeline lineno="42"><highlight class="normal"><sp/><sp/>};</highlight></codeline>
<codeline lineno="43"><highlight class="normal"><sp/><sp/></highlight></codeline>
<codeline lineno="44" refid="structdevice__resource" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdevice__resource" kindref="compound">device_resource</ref><sp/>{</highlight></codeline>
<codeline lineno="45" refid="structdevice__resource_1d34267e377cf5ebe9720ac005ada0d2b" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="include_2ubixos_2types_8h_1a4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/><ref refid="structdevice__resource_1d34267e377cf5ebe9720ac005ada0d2b" kindref="member">irq</ref>;</highlight></codeline>
<codeline lineno="46"><highlight class="normal"><sp/><sp/>};</highlight></codeline>
<codeline lineno="47"><highlight class="normal"></highlight></codeline>
<codeline lineno="48" refid="structdevice__interface" refkind="compound"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdevice__interface" kindref="compound">device_interface</ref><sp/>{</highlight></codeline>
<codeline lineno="49" refid="structdevice__interface_1561678212ee39a09ce43c1a3567c64e2" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="include_2ubixos_2types_8h_1a4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/><sp/><ref refid="structdevice__interface_1561678212ee39a09ce43c1a3567c64e2" kindref="member">initialized</ref>;</highlight></codeline>
<codeline lineno="50" refid="structdevice__interface_182fda947114f5c8d53fb7acbd7eb0e21" refkind="member"><highlight class="normal"><sp/><sp/><ref refid="include_2ubixos_2types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/><ref refid="structdevice__interface_182fda947114f5c8d53fb7acbd7eb0e21" kindref="member">size</ref>;</highlight></codeline>
<codeline lineno="51" refid="structdevice__interface_17eb42b0bb3e06dbc9183531a5e59ddb8" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="structdevice__interface_17eb42b0bb3e06dbc9183531a5e59ddb8" kindref="member">major</ref>;</highlight></codeline>
<codeline lineno="52" refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" refkind="member"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><sp/>*<ref refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" kindref="member">info</ref>;</highlight></codeline>
<codeline lineno="53"><highlight class="normal"><sp/><sp/>void<sp/>(*<ref refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb" kindref="member">read</ref>)(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*,</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*,<ref refid="include_2ubixos_2types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref>,<ref refid="include_2ubixos_2types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref>);</highlight></codeline>
<codeline lineno="54"><highlight class="normal"><sp/><sp/>void<sp/>(*<ref refid="structdevice__interface_1f46913eec9f191290c82db23380bc5df" kindref="member">write</ref>)(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*,</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*,<ref refid="include_2ubixos_2types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref>,<ref refid="include_2ubixos_2types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref>);</highlight></codeline>
<codeline lineno="55"><highlight class="normal"><sp/><sp/>void<sp/>(*<ref refid="structdevice__interface_1cbfb9de4fadc968479e1536fcef4a2d6" kindref="member">reset</ref>)(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*);</highlight></codeline>
<codeline lineno="56"><highlight class="normal"><sp/><sp/>int<sp/><sp/>(*<ref refid="structdevice__interface_192620413c2580ea3cf01e121bb54c254" kindref="member">init</ref>)(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*);</highlight></codeline>
<codeline lineno="57"><highlight class="normal"><sp/><sp/>void<sp/>(*<ref refid="structdevice__interface_1a1c4703d14f4a7f53a8dd6d6dda9e641" kindref="member">ioctl</ref>)(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*);</highlight></codeline>
<codeline lineno="58"><highlight class="normal"><sp/><sp/>void<sp/>(*<ref refid="structdevice__interface_1734dddd62b4d34efc7f8faaa4f009304" kindref="member">stop</ref>)(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*);</highlight></codeline>
<codeline lineno="59"><highlight class="normal"><sp/><sp/>void<sp/>(*<ref refid="structdevice__interface_16376721f0db48a8cc534b41c28e9a060" kindref="member">start</ref>)(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*);</highlight></codeline>
<codeline lineno="60"><highlight class="normal"><sp/><sp/>void<sp/>(*<ref refid="structdevice__interface_12c8e52e7fd5b4766863525af3ecb14ed" kindref="member">standby</ref>)(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*);</highlight></codeline>
<codeline lineno="61"><highlight class="normal"><sp/><sp/>};</highlight></codeline>
<codeline lineno="62"><highlight class="normal"></highlight></codeline>
<codeline lineno="63"><highlight class="normal"></highlight></codeline>
<codeline lineno="64"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="include_2sys_2device_8h_1256b750ab99e3be9b83a9bfd37a22388" kindref="member">device_add</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal">,</highlight><highlight class="keywordtype">char</highlight><highlight class="normal">,</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdevice__interface" kindref="compound">device_interface</ref><sp/>*);</highlight></codeline>
<codeline lineno="65"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdevice__node" kindref="compound">device_node</ref><sp/>*<ref refid="include_2sys_2device_8h_10002a4ec01ee11597c6751602f3e4c3d" kindref="member">device_find</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>major,</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="structdevice__node_13817327901b55e2ca15b2e4dfa20789f" kindref="member">minor</ref>);</highlight></codeline>
<codeline lineno="66"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="include_2sys_2device_8h_137fc0f624e03e0998fd2dd5922505ada" kindref="member">device_remove</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdevice__node" kindref="compound">device_node</ref><sp/>*);</highlight></codeline>
<codeline lineno="67"><highlight class="normal"></highlight><highlight class="preprocessor">#endif</highlight></codeline>
<codeline lineno="68"><highlight class="preprocessor"></highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="69"><highlight class="normal"></highlight><highlight class="comment">/***</highlight></codeline>
<codeline lineno="70"><highlight class="comment"><sp/>$Log: include_2sys_2device_8h.xml,v $
<codeline lineno="70"><highlight class="comment"><sp/>Revision 1.4  2006/12/12 14:09:13  reddawg
<codeline lineno="70"><highlight class="comment"><sp/>Changes
<codeline lineno="70"><highlight class="comment"><sp/></highlight></codeline>
<codeline lineno="71"><highlight class="comment"><sp/>Revision<sp/>1.1.1.1<sp/><sp/>2006/06/01<sp/>12:46:15<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="72"><highlight class="comment"><sp/>ubix2</highlight></codeline>
<codeline lineno="73"><highlight class="comment"></highlight></codeline>
<codeline lineno="74"><highlight class="comment"><sp/>Revision<sp/>1.2<sp/><sp/>2005/10/12<sp/>00:13:37<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="75"><highlight class="comment"><sp/>Removed</highlight></codeline>
<codeline lineno="76"><highlight class="comment"></highlight></codeline>
<codeline lineno="77"><highlight class="comment"><sp/>Revision<sp/>1.1.1.1<sp/><sp/>2005/09/26<sp/>17:23:51<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="78"><highlight class="comment"><sp/>no<sp/>message</highlight></codeline>
<codeline lineno="79"><highlight class="comment"></highlight></codeline>
<codeline lineno="80"><highlight class="comment"><sp/>Revision<sp/>1.14<sp/><sp/>2004/08/15<sp/>00:33:02<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="81"><highlight class="comment"><sp/>Wow<sp/>the<sp/>ide<sp/>driver<sp/>works<sp/>again</highlight></codeline>
<codeline lineno="82"><highlight class="comment"></highlight></codeline>
<codeline lineno="83"><highlight class="comment"><sp/>Revision<sp/>1.13<sp/><sp/>2004/08/14<sp/>21:56:44<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="84"><highlight class="comment"><sp/>Added<sp/>initialized<sp/>byte<sp/>to<sp/>the<sp/>device<sp/>system<sp/>to<sp/>make<sp/>it<sp/>easy<sp/>to<sp/>add<sp/>child<sp/>devices<sp/>which<sp/>use<sp/>parent<sp/>hardware.</highlight></codeline>
<codeline lineno="85"><highlight class="comment"></highlight></codeline>
<codeline lineno="86"><highlight class="comment"><sp/>Revision<sp/>1.12<sp/><sp/>2004/07/21<sp/>10:02:09<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="87"><highlight class="comment"><sp/>devfs:<sp/>renamed<sp/>functions</highlight></codeline>
<codeline lineno="88"><highlight class="comment"><sp/>device<sp/>system:<sp/>renamed<sp/>functions</highlight></codeline>
<codeline lineno="89"><highlight class="comment"><sp/>fdc:<sp/>fixed<sp/>a<sp/>few<sp/>potential<sp/>bugs<sp/>and<sp/>cleaned<sp/>up<sp/>some<sp/>unused<sp/>variables</highlight></codeline>
<codeline lineno="90"><highlight class="comment"><sp/>strol:<sp/>fixed<sp/>definition</highlight></codeline>
<codeline lineno="91"><highlight class="comment"><sp/>endtask:<sp/>made<sp/>it<sp/>print<sp/>out<sp/>freepage<sp/>debug<sp/>info</highlight></codeline>
<codeline lineno="92"><highlight class="comment"><sp/>kmalloc:<sp/>fixed<sp/>a<sp/>huge<sp/>memory<sp/>leak<sp/>we<sp/>had<sp/>some<sp/>unhandled<sp/>descriptor<sp/>insertion<sp/>so<sp/>some<sp/>descriptors<sp/>were<sp/>lost</highlight></codeline>
<codeline lineno="93"><highlight class="comment"><sp/>ld:<sp/>fixed<sp/>a<sp/>pointer<sp/>conversion</highlight></codeline>
<codeline lineno="94"><highlight class="comment"><sp/>file:<sp/>cleaned<sp/>up<sp/>a<sp/>few<sp/>unused<sp/>variables</highlight></codeline>
<codeline lineno="95"><highlight class="comment"><sp/>sched:<sp/>broke<sp/>task<sp/>deletion</highlight></codeline>
<codeline lineno="96"><highlight class="comment"><sp/>kprintf:<sp/>fixed<sp/>ogPrintf<sp/>definition</highlight></codeline>
<codeline lineno="97"><highlight class="comment"></highlight></codeline>
<codeline lineno="98"><highlight class="comment"><sp/>Revision<sp/>1.11<sp/><sp/>2004/05/22<sp/>02:40:04<sp/><sp/>ionix</highlight></codeline>
<codeline lineno="99"><highlight class="comment"></highlight></codeline>
<codeline lineno="100"><highlight class="comment"></highlight></codeline>
<codeline lineno="101"><highlight class="comment"><sp/>fixed<sp/>typo<sp/>in<sp/>device.h<sp/>and<sp/>initialized<sp/>previous<sp/>in<sp/>device.c<sp/>:)</highlight></codeline>
<codeline lineno="102"><highlight class="comment"></highlight></codeline>
<codeline lineno="103"><highlight class="comment"><sp/>Revision<sp/>1.10<sp/><sp/>2004/05/22<sp/>02:34:03<sp/><sp/>ionix</highlight></codeline>
<codeline lineno="104"><highlight class="comment"></highlight></codeline>
<codeline lineno="105"><highlight class="comment"></highlight></codeline>
<codeline lineno="106"><highlight class="comment"><sp/>Added<sp/>proto</highlight></codeline>
<codeline lineno="107"><highlight class="comment"></highlight></codeline>
<codeline lineno="108"><highlight class="comment"><sp/>Revision<sp/>1.9<sp/><sp/>2004/05/21<sp/>15:12:17<sp/><sp/>reddawg</highlight></codeline>
<codeline lineno="109"><highlight class="comment"><sp/>Cleaned<sp/>up</highlight></codeline>
<codeline lineno="110"><highlight class="comment"></highlight></codeline>
<codeline lineno="111"><highlight class="comment"></highlight></codeline>
<codeline lineno="112"><highlight class="comment"><sp/>END</highlight></codeline>
<codeline lineno="113"><highlight class="comment"><sp/>***/</highlight><highlight class="normal"></highlight></codeline>
<codeline lineno="114"><highlight class="normal"></highlight></codeline>
    </programlisting>
    <location file="/usr/home/reddawg/source/ubix2/src/sys/include/sys/device.h"/>
  </compounddef>
</doxygen>