<?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="hd_8c" kind="file"> <compoundname>hd.c</compoundname> <includes refid="hd_8h" local="no">pci/hd.h</includes> <includes refid="video_8h" local="no">sys/video.h</includes> <includes refid="device_8h" local="no">sys/device.h</includes> <includes refid="io_8h" local="no">sys/io.h</includes> <includes refid="kmalloc_8h" local="no">lib/kmalloc.h</includes> <includes refid="kprintf_8h" local="no">lib/kprintf.h</includes> <includes refid="devfs_8h" local="no">devfs/devfs.h</includes> <includes refid="string_8h" local="no">string.h</includes> <incdepgraph> <node id="5814"> <label>sys/thread.h</label> <link refid="thread_8h"/> <childnode refid="5806" relation="include"> </childnode> </node> <node id="5817"> <label>ubixos/sched.h</label> <link refid="sched_8h"/> <childnode refid="5806" relation="include"> </childnode> <childnode refid="5818" relation="include"> </childnode> <childnode refid="5809" relation="include"> </childnode> <childnode refid="5819" relation="include"> </childnode> <childnode refid="5814" relation="include"> </childnode> </node> <node id="5803"> <label>src/sys/pci/hd.c</label> <link refid="hd.c"/> <childnode refid="5804" relation="include"> </childnode> <childnode refid="5820" relation="include"> </childnode> <childnode refid="5815" relation="include"> </childnode> <childnode refid="5821" relation="include"> </childnode> <childnode refid="5822" relation="include"> </childnode> <childnode refid="5823" relation="include"> </childnode> <childnode refid="5824" relation="include"> </childnode> <childnode refid="5825" relation="include"> </childnode> </node> <node id="5824"> <label>devfs/devfs.h</label> <link refid="devfs_8h"/> <childnode refid="5806" relation="include"> </childnode> <childnode refid="5809" relation="include"> </childnode> </node> <node id="5806"> <label>ubixos/types.h</label> <link refid="types_8h"/> <childnode refid="5807" relation="include"> </childnode> </node> <node id="5807"> <label>sys/_types.h</label> <link refid="__types_8h"/> </node> <node id="5820"> <label>sys/video.h</label> <link refid="video_8h"/> <childnode refid="5806" relation="include"> </childnode> </node> <node id="5825"> <label>string.h</label> <link refid="string_8h"/> <childnode refid="5806" relation="include"> </childnode> </node> <node id="5809"> <label>vfs/file.h</label> <link refid="file_8h"/> <childnode refid="5806" relation="include"> </childnode> <childnode refid="5810" relation="include"> </childnode> <childnode refid="5811" relation="include"> </childnode> </node> <node id="5819"> <label>sys/tss.h</label> <link refid="tss_8h"/> <childnode refid="5806" relation="include"> </childnode> </node> <node id="5822"> <label>lib/kmalloc.h</label> <link refid="kmalloc_8h"/> <childnode refid="5806" relation="include"> </childnode> </node> <node id="5816"> <label>mpi/mpi.h</label> <link refid="mpi_8h"/> <childnode refid="5806" relation="include"> </childnode> <childnode refid="5817" relation="include"> </childnode> </node> <node id="5808"> <label>vfs/vfs.h</label> <link refid="vfs_8h"/> <childnode refid="5806" relation="include"> </childnode> <childnode refid="5809" relation="include"> </childnode> <childnode refid="5811" relation="include"> </childnode> <childnode refid="5812" relation="include"> </childnode> <childnode refid="5814" relation="include"> </childnode> </node> <node id="5811"> <label>vfs/mount.h</label> <link refid="mount_8h"/> <childnode refid="5806" relation="include"> </childnode> </node> <node id="5823"> <label>lib/kprintf.h</label> <link refid="kprintf_8h"/> <childnode refid="5806" relation="include"> </childnode> </node> <node id="5805"> <label>ubixfs/ubixfs.h</label> <link refid="ubixfs_8h"/> <childnode refid="5806" relation="include"> </childnode> <childnode refid="5808" relation="include"> </childnode> <childnode refid="5815" relation="include"> </childnode> <childnode refid="5816" relation="include"> </childnode> <childnode refid="5810" relation="include"> </childnode> </node> <node id="5810"> <label>ubixfs/dirCache.h</label> <link refid="dirCache_8h"/> <childnode refid="5806" relation="include"> </childnode> </node> <node id="5804"> <label>pci/hd.h</label> <link refid="hd_8h"/> <childnode refid="5805" relation="include"> </childnode> </node> <node id="5812"> <label>sys/sysproto.h</label> <link refid="sysproto_8h"/> <childnode refid="5813" relation="include"> </childnode> <childnode refid="5814" relation="include"> </childnode> </node> <node id="5813"> <label>sys/signal.h</label> <link refid="signal_8h"/> <childnode refid="5806" relation="include"> </childnode> </node> <node id="5818"> <label>ubixos/tty.h</label> <link refid="tty_8h"/> <childnode refid="5806" relation="include"> </childnode> </node> <node id="5821"> <label>sys/io.h</label> <link refid="io_8h"/> </node> <node id="5815"> <label>sys/device.h</label> <link refid="device_8h"/> <childnode refid="5806" relation="include"> </childnode> </node> </incdepgraph> <sectiondef kind="func"> <memberdef kind="function" id="hd_8c_1b01b187dc277e089d0161315437fde41" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int hdInit</definition> <argsstring>(struct device_node *dev)</argsstring> <name>hdInit</name> <param> <type>struct <ref refid="structdevice__node" kindref="compound">device_node</ref> *</type> <declname>dev</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" line="145" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" bodystart="145" bodyend="220"/> <references refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" compoundref="device_8h" startline="38">device_node::devInfo</references> <references refid="hd_8h_17623c70dac9a02ab1f75aa7a6e547c4c" compoundref="hd_8h" startline="43">hdCmd</references> <references refid="hd_8h_11571e7119dfede60820469184878948a" compoundref="hd_8h" startline="35">hdData</references> <references refid="structdriveInfo_1ef8c94d9c3cc8a71e23d8e63abbe38a5" compoundref="hd_8h" startline="50">driveInfo::hdDev</references> <references refid="structdriveInfo_1f385dccea1485233fc52351a8d7666aa" compoundref="hd_8h" startline="49">driveInfo::hdEnable</references> <references refid="hd_8h_1cefc72ce44e542db4580ce7e7c732aab" compoundref="hd_8h" startline="41">hdHead</references> <references refid="structdriveInfo_1a446858a696dafa8454b90a9d5087aae" compoundref="hd_8h" startline="53">driveInfo::hdMask</references> <references refid="structdriveInfo_1c6d14ed915761c07077af5d64fa0b83e" compoundref="hd_8h" startline="54">driveInfo::hdMulti</references> <references refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" compoundref="hd_8h" startline="55">driveInfo::hdPort</references> <references refid="hd_8h_18206a5d5a25f1d6fc9e02013572c52db" compoundref="hd_8h" startline="37">hdSecCount</references> <references refid="structdriveInfo_1ce7d3b12f76a7f0b5dba53b1904be35a" compoundref="hd_8h" startline="48">driveInfo::hdSector</references> <references refid="structdriveInfo_1cacd139e4cfe1037afbcf488f2f5d2c3" compoundref="hd_8h" startline="52">driveInfo::hdShift</references> <references refid="structdriveInfo_1da0977b5e57df10de593d1df22712af8" compoundref="hd_8h" startline="56">driveInfo::hdSize</references> <references refid="hd_8h_173f0c3f82605d0aa108e8186e4daae6b" compoundref="hd_8h" startline="42">hdStat</references> <references refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" compoundref="device_8h" startline="52">device_interface::info</references> <references refid="structdevice__interface_1561678212ee39a09ce43c1a3567c64e2" compoundref="device_8h" startline="49">device_interface::initialized</references> <references refid="io_8h_177b934268de1b3ecdcf3f275413b3108" compoundref="io_8c" startline="39" endline="47">inportByte</references> <references refid="io_8h_1fb703b187feb4b92444454df6c3dd9e6" compoundref="io_8c" startline="56" endline="64">inportWord</references> <references refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" compoundref="kprintf_8c" startline="38" endline="49">kprintf</references> <references refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" compoundref="io_8c" startline="73" endline="79">outportByte</references> <references refid="structdevice__interface_182fda947114f5c8d53fb7acbd7eb0e21" compoundref="device_8h" startline="50">device_interface::size</references> <referencedby refid="hd_8c_1a6ffe735243161c69ce0930999e02f88" compoundref="hd_8c" startline="39" endline="123">initHardDisk</referencedby> </memberdef> <memberdef kind="function" id="hd_8c_1ce9b924d48cc450c255d1d48fcbc13a5" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int hdIoctl</definition> <argsstring>()</argsstring> <name>hdIoctl</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" line="137" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" bodystart="137" bodyend="139"/> <referencedby refid="hd_8c_1a6ffe735243161c69ce0930999e02f88" compoundref="hd_8c" startline="39" endline="123">initHardDisk</referencedby> </memberdef> <memberdef kind="function" id="hd_8c_167cfa382743c8440a3fe43738dfae598" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void hdRead</definition> <argsstring>(struct driveInfo *hdd, void *baseAddr, uInt32 startSector, uInt32 sectorCount)</argsstring> <name>hdRead</name> <param> <type>struct <ref refid="structdriveInfo" kindref="compound">driveInfo</ref> *</type> <declname>hdd</declname> </param> <param> <type>void *</type> <declname>baseAddr</declname> </param> <param> <type><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref></type> <declname>startSector</declname> </param> <param> <type><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref></type> <declname>sectorCount</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" line="284" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" bodystart="284" bodyend="346"/> <references refid="structdriveInfo_1877ef27dad0f84711aedbabb4ff71a2a" compoundref="hd_8h" startline="57">driveInfo::hdCalc</references> <references refid="hd_8h_17623c70dac9a02ab1f75aa7a6e547c4c" compoundref="hd_8h" startline="43">hdCmd</references> <references refid="hd_8h_12a82bac9f72d97307f87e60acb709ebb" compoundref="hd_8h" startline="40">hdCylHi</references> <references refid="hd_8h_130a2e624c7eda626a913f0b5b9ed26b7" compoundref="hd_8h" startline="39">hdCylLow</references> <references refid="hd_8h_11571e7119dfede60820469184878948a" compoundref="hd_8h" startline="35">hdData</references> <references refid="structdriveInfo_1ef8c94d9c3cc8a71e23d8e63abbe38a5" compoundref="hd_8h" startline="50">driveInfo::hdDev</references> <references refid="structdriveInfo_1f385dccea1485233fc52351a8d7666aa" compoundref="hd_8h" startline="49">driveInfo::hdEnable</references> <references refid="hd_8h_1cefc72ce44e542db4580ce7e7c732aab" compoundref="hd_8h" startline="41">hdHead</references> <references refid="structdriveInfo_1c6d14ed915761c07077af5d64fa0b83e" compoundref="hd_8h" startline="54">driveInfo::hdMulti</references> <references refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" compoundref="hd_8h" startline="55">driveInfo::hdPort</references> <references refid="hd_8h_18206a5d5a25f1d6fc9e02013572c52db" compoundref="hd_8h" startline="37">hdSecCount</references> <references refid="hd_8h_10fa794dfb3e811122d5eafbe348c368f" compoundref="hd_8h" startline="38">hdSecNum</references> <references refid="structdriveInfo_1cacd139e4cfe1037afbcf488f2f5d2c3" compoundref="hd_8h" startline="52">driveInfo::hdShift</references> <references refid="hd_8h_173f0c3f82605d0aa108e8186e4daae6b" compoundref="hd_8h" startline="42">hdStat</references> <references refid="io_8h_177b934268de1b3ecdcf3f275413b3108" compoundref="io_8c" startline="39" endline="47">inportByte</references> <references refid="io_8h_1fb703b187feb4b92444454df6c3dd9e6" compoundref="io_8c" startline="56" endline="64">inportWord</references> <references refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" compoundref="kprintf_8c" startline="38" endline="49">kprintf</references> <references refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" compoundref="io_8c" startline="73" endline="79">outportByte</references> <references refid="structdriveInfo_1bbb3cbf508e4e7b866eeb658846bd44a" compoundref="hd_8h" startline="58">driveInfo::parOffset</references> <references refid="start_8S_162df326d54f8b2ece412319c4360ef3e" compoundref="start_8S" startline="51">x20</references> <referencedby refid="hd_8c_1a6ffe735243161c69ce0930999e02f88" compoundref="hd_8c" startline="39" endline="123">initHardDisk</referencedby> </memberdef> <memberdef kind="function" id="hd_8c_18e64e509439c31ba2acfe68a7aefcc10" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int hdReset</definition> <argsstring>()</argsstring> <name>hdReset</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" line="141" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" bodystart="141" bodyend="143"/> <referencedby refid="hd_8c_1a6ffe735243161c69ce0930999e02f88" compoundref="hd_8c" startline="39" endline="123">initHardDisk</referencedby> </memberdef> <memberdef kind="function" id="hd_8c_1525245216f426465a3c0f130bd0efd19" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int hdStandby</definition> <argsstring>()</argsstring> <name>hdStandby</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" line="125" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" bodystart="125" bodyend="127"/> <referencedby refid="hd_8c_1a6ffe735243161c69ce0930999e02f88" compoundref="hd_8c" startline="39" endline="123">initHardDisk</referencedby> </memberdef> <memberdef kind="function" id="hd_8c_19535712ecc532571658cc6861570dde5" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int hdStart</definition> <argsstring>()</argsstring> <name>hdStart</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" line="129" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" bodystart="129" bodyend="131"/> <referencedby refid="hd_8c_1a6ffe735243161c69ce0930999e02f88" compoundref="hd_8c" startline="39" endline="123">initHardDisk</referencedby> </memberdef> <memberdef kind="function" id="hd_8c_17a00465121a584acd10c1ca1b46680a1" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int hdStop</definition> <argsstring>()</argsstring> <name>hdStop</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" line="133" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" bodystart="133" bodyend="135"/> <referencedby refid="hd_8c_1a6ffe735243161c69ce0930999e02f88" compoundref="hd_8c" startline="39" endline="123">initHardDisk</referencedby> </memberdef> <memberdef kind="function" id="hd_8c_1c50b08b00d860d86356576d56650a025" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void hdWrite</definition> <argsstring>(struct driveInfo *hdd, void *baseAddr, uInt32 startSector, uInt32 sectorCount)</argsstring> <name>hdWrite</name> <param> <type>struct <ref refid="structdriveInfo" kindref="compound">driveInfo</ref> *</type> <declname>hdd</declname> </param> <param> <type>void *</type> <declname>baseAddr</declname> </param> <param> <type><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref></type> <declname>startSector</declname> </param> <param> <type><ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref></type> <declname>sectorCount</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" line="222" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" bodystart="222" bodyend="282"/> <references refid="structdriveInfo_1877ef27dad0f84711aedbabb4ff71a2a" compoundref="hd_8h" startline="57">driveInfo::hdCalc</references> <references refid="hd_8h_17623c70dac9a02ab1f75aa7a6e547c4c" compoundref="hd_8h" startline="43">hdCmd</references> <references refid="hd_8h_12a82bac9f72d97307f87e60acb709ebb" compoundref="hd_8h" startline="40">hdCylHi</references> <references refid="hd_8h_130a2e624c7eda626a913f0b5b9ed26b7" compoundref="hd_8h" startline="39">hdCylLow</references> <references refid="hd_8h_11571e7119dfede60820469184878948a" compoundref="hd_8h" startline="35">hdData</references> <references refid="structdriveInfo_1ef8c94d9c3cc8a71e23d8e63abbe38a5" compoundref="hd_8h" startline="50">driveInfo::hdDev</references> <references refid="structdriveInfo_1f385dccea1485233fc52351a8d7666aa" compoundref="hd_8h" startline="49">driveInfo::hdEnable</references> <references refid="hd_8h_1cefc72ce44e542db4580ce7e7c732aab" compoundref="hd_8h" startline="41">hdHead</references> <references refid="structdriveInfo_1c6d14ed915761c07077af5d64fa0b83e" compoundref="hd_8h" startline="54">driveInfo::hdMulti</references> <references refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" compoundref="hd_8h" startline="55">driveInfo::hdPort</references> <references refid="hd_8h_18206a5d5a25f1d6fc9e02013572c52db" compoundref="hd_8h" startline="37">hdSecCount</references> <references refid="hd_8h_10fa794dfb3e811122d5eafbe348c368f" compoundref="hd_8h" startline="38">hdSecNum</references> <references refid="structdriveInfo_1cacd139e4cfe1037afbcf488f2f5d2c3" compoundref="hd_8h" startline="52">driveInfo::hdShift</references> <references refid="hd_8h_173f0c3f82605d0aa108e8186e4daae6b" compoundref="hd_8h" startline="42">hdStat</references> <references refid="io_8h_177b934268de1b3ecdcf3f275413b3108" compoundref="io_8c" startline="39" endline="47">inportByte</references> <references refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" compoundref="kprintf_8c" startline="38" endline="49">kprintf</references> <references refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" compoundref="io_8c" startline="73" endline="79">outportByte</references> <references refid="io_8h_1243f6b6d22cc5948908b764d58efc2b0" compoundref="io_8c" startline="104" endline="110">outportWord</references> <references refid="structdriveInfo_1bbb3cbf508e4e7b866eeb658846bd44a" compoundref="hd_8h" startline="58">driveInfo::parOffset</references> <references refid="ap-boot_8S_1c2a218176530ced267bbcc8042da1000" compoundref="ap-boot_8S" startline="52">x30</references> <referencedby refid="hd_8c_1a6ffe735243161c69ce0930999e02f88" compoundref="hd_8c" startline="39" endline="123">initHardDisk</referencedby> </memberdef> <memberdef kind="function" id="hd_8c_1a6ffe735243161c69ce0930999e02f88" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int initHardDisk</definition> <argsstring>()</argsstring> <name>initHardDisk</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" line="39" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c" bodystart="39" bodyend="123"/> <references refid="structbsd__disklabel_16a478db13de03d2384bbb5307be1e84c" compoundref="hd_8h" startline="148">bsd_disklabel::d_npartitions</references> <references refid="structbsd__disklabel_160c26768f84bf0061c2436f29a2fdff0">bsd_disklabel::d_partitions</references> <references refid="devfs_8c_1d568bae84bef3691539f1b1d0f6a54b4" compoundref="devfs_8c" startline="178" endline="213">devfs_makeNode</references> <references refid="device_8h_1256b750ab99e3be9b83a9bfd37a22388" compoundref="device_8c" startline="51" endline="73">device_add</references> <references refid="structdos__partition_1b316e0e02d24902172d5edde412f3238" compoundref="hd_8h" startline="80">dos_partition::dp_start</references> <references refid="hd_8h_16ef530d16811c8a4680c136ed9e72cbf" compoundref="hd_8h" startline="161">fstypenames</references> <references refid="structdriveInfo_1ef8c94d9c3cc8a71e23d8e63abbe38a5" compoundref="hd_8h" startline="50">driveInfo::hdDev</references> <references refid="hd_8h_1b01b187dc277e089d0161315437fde41" compoundref="hd_8c" startline="145" endline="220">hdInit</references> <references refid="hd_8h_1ce9b924d48cc450c255d1d48fcbc13a5" compoundref="hd_8c" startline="137" endline="139">hdIoctl</references> <references refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" compoundref="hd_8h" startline="55">driveInfo::hdPort</references> <references refid="hd_8h_1bda1e72920488b35bcfc9ed68bf4c268" compoundref="hd_8c" startline="284" endline="346">hdRead</references> <references refid="hd_8h_18e64e509439c31ba2acfe68a7aefcc10" compoundref="hd_8c" startline="141" endline="143">hdReset</references> <references refid="structdriveInfo_1da0977b5e57df10de593d1df22712af8" compoundref="hd_8h" startline="56">driveInfo::hdSize</references> <references refid="hd_8h_1525245216f426465a3c0f130bd0efd19" compoundref="hd_8c" startline="125" endline="127">hdStandby</references> <references refid="hd_8h_19535712ecc532571658cc6861570dde5" compoundref="hd_8c" startline="129" endline="131">hdStart</references> <references refid="hd_8h_17a00465121a584acd10c1ca1b46680a1" compoundref="hd_8c" startline="133" endline="135">hdStop</references> <references refid="hd_8h_16bbbb9d4c1c81ca945bf093cbba5490c" compoundref="hd_8c" startline="222" endline="282">hdWrite</references> <references refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" compoundref="device_8h" startline="52">device_interface::info</references> <references refid="structdevice__interface_192620413c2580ea3cf01e121bb54c254">device_interface::init</references> <references refid="structdevice__interface_1a1c4703d14f4a7f53a8dd6d6dda9e641">device_interface::ioctl</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__interface_17eb42b0bb3e06dbc9183531a5e59ddb8" compoundref="device_8h" startline="51">device_interface::major</references> <references refid="lib_2string_8h_1e33b18edb618c656b9b795b9fce2316c">memcpy</references> <references refid="pci_8c_18f8f80d37794cde9472343e4487ba3eb" compoundref="pci_8c" startline="39">name</references> <references refid="structbsd__disklabel_1_1partition_1234eea6a587c4d889251c2f07d982cef" compoundref="hd_8h" startline="155">bsd_disklabel::partition::p_fstype</references> <references refid="structbsd__disklabel_1_1partition_18bc8426239533bd9dfdce0f25190da06" compoundref="hd_8h" startline="153">bsd_disklabel::partition::p_offset</references> <references refid="structbsd__disklabel_1_1partition_15663ff994f70fcc34ce0587012a2339b" compoundref="hd_8h" startline="152">bsd_disklabel::partition::p_size</references> <references refid="structdriveInfo_1bbb3cbf508e4e7b866eeb658846bd44a" compoundref="hd_8h" startline="58">driveInfo::parOffset</references> <references refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb">device_interface::read</references> <references refid="structdevice__interface_1cbfb9de4fadc968479e1536fcef4a2d6">device_interface::reset</references> <references refid="lib_2string_8h_1c38cd16373d98782e1465bd3d5aba470" compoundref="kprintf_8c" startline="51" endline="58">sprintf</references> <references refid="structdevice__interface_12c8e52e7fd5b4766863525af3ecb14ed">device_interface::standby</references> <references refid="structdevice__interface_16376721f0db48a8cc534b41c28e9a060">device_interface::start</references> <references refid="structdevice__interface_1734dddd62b4d34efc7f8faaa4f009304">device_interface::stop</references> <references refid="structdevice__interface_1f46913eec9f191290c82db23380bc5df">device_interface::write</references> <references refid="ap-boot_8S_11a3ac2137e21f6f0d400f1996914dd19" compoundref="ap-boot_8S" startline="6">x1</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/>"AS<sp/>IS"<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: hd_8c.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">#include<sp/><<ref refid="hd_8h" kindref="compound">pci/hd.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="31"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="video_8h" kindref="compound">sys/video.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="32"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="device_8h" kindref="compound">sys/device.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="33"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="io_8h" kindref="compound">sys/io.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="34"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="kmalloc_8h" kindref="compound">lib/kmalloc.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="35"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="kprintf_8h" kindref="compound">lib/kprintf.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="36"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="devfs_8h" kindref="compound">devfs/devfs.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="37"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="string_8h" kindref="compound">string.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="38"><highlight class="normal"><sp/><sp/></highlight></codeline> <codeline lineno="39" refid="hd_8c_1a6ffe735243161c69ce0930999e02f88" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="hd_8h_1a6ffe735243161c69ce0930999e02f88" kindref="member">initHardDisk</ref>()<sp/>{</highlight></codeline> <codeline lineno="40"><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/>i<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="41"><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/>x<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="42"><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/>minor<sp/><sp/><sp/><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="43"><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/>*devInfo<sp/><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="44"><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/>*devInfo2<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="45"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdos__partition" kindref="compound">dos_partition</ref><sp/><sp/><sp/><sp/>*d<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="46"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdriveInfo" kindref="compound">driveInfo</ref><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*hdd<sp/><sp/><sp/><sp/><sp/><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="47"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdriveInfo" kindref="compound">driveInfo</ref><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*hdd2<sp/><sp/><sp/><sp/><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="48"><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/>*data<sp/><sp/><sp/><sp/><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="49"><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/>*data2<sp/><sp/><sp/><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="50"><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/><ref refid="pci_8c_18f8f80d37794cde9472343e4487ba3eb" kindref="member">name</ref>[16];</highlight></codeline> <codeline lineno="51"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structbsd__disklabel" kindref="compound">bsd_disklabel</ref><sp/><sp/><sp/><sp/><sp/>*bsdd<sp/><sp/><sp/><sp/><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="52"><highlight class="normal"><sp/><sp/></highlight></codeline> <codeline lineno="53"><highlight class="normal"><sp/><sp/>hdd<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdriveInfo" kindref="compound">driveInfo</ref><sp/>*)<ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdriveInfo" kindref="compound">driveInfo</ref>));<sp/><sp/></highlight></codeline> <codeline lineno="54"><highlight class="normal"><sp/><sp/>hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/><sp/><sp/><sp/>=<sp/>0x1F0;</highlight></codeline> <codeline lineno="55"><highlight class="normal"><sp/><sp/>hdd-><ref refid="structdriveInfo_1ef8c94d9c3cc8a71e23d8e63abbe38a5" kindref="member">hdDev</ref><sp/><sp/><sp/><sp/><sp/>=<sp/>0x40;</highlight></codeline> <codeline lineno="56"><highlight class="normal"><sp/><sp/>hdd-><ref refid="structdriveInfo_1bbb3cbf508e4e7b866eeb658846bd44a" kindref="member">parOffset</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="57"><highlight class="normal"></highlight></codeline> <codeline lineno="58"><highlight class="normal"></highlight></codeline> <codeline lineno="59"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Alloc<sp/>memory<sp/>for<sp/>device<sp/>structure<sp/>and<sp/>set<sp/>it<sp/>up<sp/>correctly<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="60"><highlight class="normal"><sp/><sp/>devInfo<sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdevice__interface" kindref="compound">device_interface</ref><sp/>*)<ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdevice__interface" kindref="compound">device_interface</ref>));</highlight></codeline> <codeline lineno="61"><highlight class="normal"><sp/><sp/>devInfo-><ref refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb" kindref="member">read</ref><sp/><sp/><sp/><sp/>=<sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*)&<ref refid="hd_8h_1bda1e72920488b35bcfc9ed68bf4c268" kindref="member">hdRead</ref>;</highlight></codeline> <codeline lineno="62"><highlight class="normal"><sp/><sp/>devInfo-><ref refid="structdevice__interface_1f46913eec9f191290c82db23380bc5df" kindref="member">write</ref><sp/><sp/><sp/>=<sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*)&<ref refid="hd_8h_16bbbb9d4c1c81ca945bf093cbba5490c" kindref="member">hdWrite</ref>;</highlight></codeline> <codeline lineno="63"><highlight class="normal"><sp/><sp/>devInfo-><ref refid="structdevice__interface_1cbfb9de4fadc968479e1536fcef4a2d6" kindref="member">reset</ref><sp/><sp/><sp/>=<sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*)&<ref refid="hd_8h_18e64e509439c31ba2acfe68a7aefcc10" kindref="member">hdReset</ref>;</highlight></codeline> <codeline lineno="64"><highlight class="normal"><sp/><sp/>devInfo-><ref refid="structdevice__interface_192620413c2580ea3cf01e121bb54c254" kindref="member">init</ref><sp/><sp/><sp/><sp/>=<sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*)&<ref refid="hd_8h_1b01b187dc277e089d0161315437fde41" kindref="member">hdInit</ref>;</highlight></codeline> <codeline lineno="65"><highlight class="normal"><sp/><sp/>devInfo-><ref refid="structdevice__interface_1a1c4703d14f4a7f53a8dd6d6dda9e641" kindref="member">ioctl</ref><sp/><sp/><sp/>=<sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*)&<ref refid="hd_8h_1ce9b924d48cc450c255d1d48fcbc13a5" kindref="member">hdIoctl</ref>;</highlight></codeline> <codeline lineno="66"><highlight class="normal"><sp/><sp/>devInfo-><ref refid="structdevice__interface_1734dddd62b4d34efc7f8faaa4f009304" kindref="member">stop</ref><sp/><sp/><sp/><sp/>=<sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*)&<ref refid="hd_8h_17a00465121a584acd10c1ca1b46680a1" kindref="member">hdStop</ref>;</highlight></codeline> <codeline lineno="67"><highlight class="normal"><sp/><sp/>devInfo-><ref refid="structdevice__interface_16376721f0db48a8cc534b41c28e9a060" kindref="member">start</ref><sp/><sp/><sp/>=<sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*)&<ref refid="hd_8h_19535712ecc532571658cc6861570dde5" kindref="member">hdStart</ref>;</highlight></codeline> <codeline lineno="68"><highlight class="normal"><sp/><sp/>devInfo-><ref refid="structdevice__interface_12c8e52e7fd5b4766863525af3ecb14ed" kindref="member">standby</ref><sp/>=<sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*)&<ref refid="hd_8h_1525245216f426465a3c0f130bd0efd19" kindref="member">hdStandby</ref>;</highlight></codeline> <codeline lineno="69"><highlight class="normal"><sp/><sp/>devInfo-><ref refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" kindref="member">info</ref><sp/><sp/><sp/><sp/>=<sp/>hdd;</highlight></codeline> <codeline lineno="70"><highlight class="normal"><sp/><sp/></highlight></codeline> <codeline lineno="71"><highlight class="normal"><sp/><sp/>devInfo-><ref refid="structdevice__interface_17eb42b0bb3e06dbc9183531a5e59ddb8" kindref="member">major</ref><sp/><sp/><sp/>=<sp/>0x1;</highlight></codeline> <codeline lineno="72"><highlight class="normal"><sp/><sp/></highlight></codeline> <codeline lineno="73"><highlight class="normal"><sp/><sp/>data<sp/>=<sp/>(</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*)<ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(512);</highlight></codeline> <codeline lineno="74"><highlight class="normal"><sp/><sp/>d<sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdos__partition" kindref="compound">dos_partition</ref><sp/>*)(data<sp/>+<sp/>0x1BE);</highlight></codeline> <codeline lineno="75"><highlight class="normal"></highlight></codeline> <codeline lineno="76"><highlight class="normal"><sp/><sp/>data2<sp/>=<sp/>(</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*)<ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(512);</highlight></codeline> <codeline lineno="77"><highlight class="normal"><sp/><sp/>bsdd<sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structbsd__disklabel" kindref="compound">bsd_disklabel</ref><sp/>*)data2;</highlight></codeline> <codeline lineno="78"><highlight class="normal"></highlight></codeline> <codeline lineno="79"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="device_8h_1256b750ab99e3be9b83a9bfd37a22388" kindref="member">device_add</ref>(0,</highlight><highlight class="charliteral">'c'</highlight><highlight class="normal">,devInfo)<sp/>==<sp/>0x0)<sp/>{</highlight></codeline> <codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"ad0<sp/>-<sp/>Start:<sp/>[0x0],<sp/>Size:<sp/>[0x%x/0x%X]\n"</highlight><highlight class="normal">,hdd-><ref refid="structdriveInfo_1da0977b5e57df10de593d1df22712af8" kindref="member">hdSize</ref>,hdd-><ref refid="structdriveInfo_1da0977b5e57df10de593d1df22712af8" kindref="member">hdSize</ref>*512);</highlight></codeline> <codeline lineno="81"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="devfs_8c_1d568bae84bef3691539f1b1d0f6a54b4" kindref="member">devfs_makeNode</ref>(</highlight><highlight class="stringliteral">"ad0"</highlight><highlight class="normal">,</highlight><highlight class="charliteral">'b'</highlight><highlight class="normal">,0<ref refid="ap-boot_8S_11a3ac2137e21f6f0d400f1996914dd19" kindref="member">x1</ref>,0x0);</highlight></codeline> <codeline lineno="82"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="hd_8h_1bda1e72920488b35bcfc9ed68bf4c268" kindref="member">hdRead</ref>(devInfo-><ref refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" kindref="member">info</ref>,data,0x0,0<ref refid="ap-boot_8S_11a3ac2137e21f6f0d400f1996914dd19" kindref="member">x1</ref>);</highlight></codeline> <codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>0x0;i<sp/><<sp/>0x4;i++)<sp/>{</highlight></codeline> <codeline lineno="84"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(d[i].dp_type<sp/>!=<sp/>0x0)<sp/>{<sp/><sp/></highlight></codeline> <codeline lineno="85"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>devInfo2<sp/>=<sp/>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>device_interface<sp/>*)<ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>device_interface));</highlight></codeline> <codeline lineno="86"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>hdd2<sp/><sp/><sp/><sp/><sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">driveInfo<sp/>*)<ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>driveInfo));</highlight></codeline> <codeline lineno="87"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="lib_2string_8h_1e33b18edb618c656b9b795b9fce2316c" kindref="member">memcpy</ref>(devInfo2,devInfo,</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>device_interface));</highlight></codeline> <codeline lineno="88"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="lib_2string_8h_1e33b18edb618c656b9b795b9fce2316c" kindref="member">memcpy</ref>(hdd2,hdd,</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>driveInfo));</highlight></codeline> <codeline lineno="89"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>hdd2-><ref refid="structdriveInfo_1bbb3cbf508e4e7b866eeb658846bd44a" kindref="member">parOffset</ref><sp/>=<sp/>d[i].<ref refid="structdos__partition_1b316e0e02d24902172d5edde412f3238" kindref="member">dp_start</ref>;</highlight></codeline> <codeline lineno="90"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>devInfo2->info<sp/><sp/>=<sp/>hdd2;</highlight></codeline> <codeline lineno="91"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>minor++;</highlight></codeline> <codeline lineno="92"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="device_8h_1256b750ab99e3be9b83a9bfd37a22388" kindref="member">device_add</ref>(minor,</highlight><highlight class="charliteral">'c'</highlight><highlight class="normal">,devInfo2)<sp/>==<sp/>0x0)<sp/>{</highlight></codeline> <codeline lineno="93"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="lib_2string_8h_1c38cd16373d98782e1465bd3d5aba470" kindref="member">sprintf</ref>(name,</highlight><highlight class="stringliteral">"ad0s%i"</highlight><highlight class="normal">,i<sp/>+<sp/>1);</highlight></codeline> <codeline lineno="94"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"%s<sp/>-<sp/>Type:<sp/>[0x%X],<sp/>Start:<sp/>[0x%X],<sp/>Size:<sp/>[0x%X]\n"</highlight><highlight class="normal">,name,d[i].dp_type,d[i].dp_start,d[i].dp_size);</highlight></codeline> <codeline lineno="95"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="devfs_8c_1d568bae84bef3691539f1b1d0f6a54b4" kindref="member">devfs_makeNode</ref>(name,</highlight><highlight class="charliteral">'c'</highlight><highlight class="normal">,0<ref refid="ap-boot_8S_11a3ac2137e21f6f0d400f1996914dd19" kindref="member">x1</ref>,minor);</highlight></codeline> <codeline lineno="96"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(d[i].dp_type<sp/>==<sp/>0xA5)<sp/>{</highlight></codeline> <codeline lineno="97"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//Why<sp/>do<sp/>i<sp/>need<sp/>to<sp/>add<sp/>1?</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="98"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="hd_8h_1bda1e72920488b35bcfc9ed68bf4c268" kindref="member">hdRead</ref>(devInfo-><ref refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" kindref="member">info</ref>,data2,d[i].<ref refid="structdos__partition_1b316e0e02d24902172d5edde412f3238" kindref="member">dp_start</ref><sp/>+<sp/>1,0<ref refid="ap-boot_8S_11a3ac2137e21f6f0d400f1996914dd19" kindref="member">x1</ref>);</highlight></codeline> <codeline lineno="99"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(x<sp/>=<sp/>0;x<sp/><<sp/>bsdd-><ref refid="structbsd__disklabel_16a478db13de03d2384bbb5307be1e84c" kindref="member">d_npartitions</ref>;x++)<sp/>{</highlight></codeline> <codeline lineno="100"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(bsdd-><ref refid="structbsd__disklabel_160c26768f84bf0061c2436f29a2fdff0" kindref="member">d_partitions</ref>[x].<ref refid="structbsd__disklabel_1_1partition_15663ff994f70fcc34ce0587012a2339b" kindref="member">p_size</ref><sp/>><sp/>0)<sp/>{</highlight></codeline> <codeline lineno="101"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="lib_2string_8h_1c38cd16373d98782e1465bd3d5aba470" kindref="member">sprintf</ref>(name,</highlight><highlight class="stringliteral">"ad0s%i%c"</highlight><highlight class="normal">,i<sp/>+<sp/>1,</highlight><highlight class="charliteral">'a'</highlight><highlight class="normal"><sp/>+<sp/>x);</highlight></codeline> <codeline lineno="102"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//New<sp/>Nodes</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="103"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>devInfo2<sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">device_interface<sp/>*)<ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>device_interface));</highlight></codeline> <codeline lineno="104"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>hdd2<sp/><sp/><sp/><sp/><sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">driveInfo<sp/>*)<ref refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>driveInfo));</highlight></codeline> <codeline lineno="105"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="lib_2string_8h_1e33b18edb618c656b9b795b9fce2316c" kindref="member">memcpy</ref>(devInfo2,devInfo,</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>device_interface));</highlight></codeline> <codeline lineno="106"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="lib_2string_8h_1e33b18edb618c656b9b795b9fce2316c" kindref="member">memcpy</ref>(hdd2,hdd,</highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/>driveInfo));</highlight></codeline> <codeline lineno="107"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//hdd2->parOffset<sp/>=<sp/>d[i].dp_start<sp/>+<sp/>bsdd->d_partitions[x].p_offset;</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="108"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>hdd2-><ref refid="structdriveInfo_1bbb3cbf508e4e7b866eeb658846bd44a" kindref="member">parOffset</ref><sp/>=<sp/>bsdd-><ref refid="structbsd__disklabel_160c26768f84bf0061c2436f29a2fdff0" kindref="member">d_partitions</ref>[x].<ref refid="structbsd__disklabel_1_1partition_18bc8426239533bd9dfdce0f25190da06" kindref="member">p_offset</ref>;</highlight></codeline> <codeline lineno="109"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>devInfo2->info<sp/><sp/><sp/>=<sp/>hdd2;</highlight></codeline> <codeline lineno="110"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>minor++;</highlight></codeline> <codeline lineno="111"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="device_8h_1256b750ab99e3be9b83a9bfd37a22388" kindref="member">device_add</ref>(minor,</highlight><highlight class="charliteral">'c'</highlight><highlight class="normal">,devInfo2);</highlight></codeline> <codeline lineno="112"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="devfs_8c_1d568bae84bef3691539f1b1d0f6a54b4" kindref="member">devfs_makeNode</ref>(name,</highlight><highlight class="charliteral">'c'</highlight><highlight class="normal">,0<ref refid="ap-boot_8S_11a3ac2137e21f6f0d400f1996914dd19" kindref="member">x1</ref>,minor);</highlight></codeline> <codeline lineno="113"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"%s<sp/>-<sp/>Type:<sp/>[%s],<sp/>Start:<sp/>[0x%X],<sp/>Size:<sp/>[0x%X],<sp/>MM:<sp/>[%i:%i]\n"</highlight><highlight class="normal">,name,<ref refid="hd_8h_16ef530d16811c8a4680c136ed9e72cbf" kindref="member">fstypenames</ref>[bsdd-><ref refid="structbsd__disklabel_160c26768f84bf0061c2436f29a2fdff0" kindref="member">d_partitions</ref>[x].<ref refid="structbsd__disklabel_1_1partition_1234eea6a587c4d889251c2f07d982cef" kindref="member">p_fstype</ref>],bsdd-><ref refid="structbsd__disklabel_160c26768f84bf0061c2436f29a2fdff0" kindref="member">d_partitions</ref>[x].<ref refid="structbsd__disklabel_1_1partition_18bc8426239533bd9dfdce0f25190da06" kindref="member">p_offset</ref>,bsdd-><ref refid="structbsd__disklabel_160c26768f84bf0061c2436f29a2fdff0" kindref="member">d_partitions</ref>[x].<ref refid="structbsd__disklabel_1_1partition_15663ff994f70fcc34ce0587012a2339b" kindref="member">p_size</ref>,devInfo-><ref refid="structdevice__interface_17eb42b0bb3e06dbc9183531a5e59ddb8" kindref="member">major</ref>,minor);</highlight></codeline> <codeline lineno="114"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="115"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="116"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="117"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="118"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="119"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="120"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="121"><highlight class="normal"><sp/><sp/><ref refid="kmalloc_8h_1aa9ed6886459604cf73ccdbf6410e487" kindref="member">kfree</ref>(data);</highlight></codeline> <codeline lineno="122"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(0x0);</highlight></codeline> <codeline lineno="123"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="124"><highlight class="normal"></highlight></codeline> <codeline lineno="125" refid="hd_8c_1525245216f426465a3c0f130bd0efd19" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="hd_8h_1525245216f426465a3c0f130bd0efd19" kindref="member">hdStandby</ref>()<sp/>{</highlight></codeline> <codeline lineno="126"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(0x0);</highlight></codeline> <codeline lineno="127"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="128"><highlight class="normal"></highlight></codeline> <codeline lineno="129" refid="hd_8c_19535712ecc532571658cc6861570dde5" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="hd_8h_19535712ecc532571658cc6861570dde5" kindref="member">hdStart</ref>()<sp/>{</highlight></codeline> <codeline lineno="130"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(0x0);</highlight></codeline> <codeline lineno="131"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="132"><highlight class="normal"></highlight></codeline> <codeline lineno="133" refid="hd_8c_17a00465121a584acd10c1ca1b46680a1" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="hd_8h_17a00465121a584acd10c1ca1b46680a1" kindref="member">hdStop</ref>()<sp/>{</highlight></codeline> <codeline lineno="134"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(0x0);</highlight></codeline> <codeline lineno="135"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="136"><highlight class="normal"></highlight></codeline> <codeline lineno="137" refid="hd_8c_1ce9b924d48cc450c255d1d48fcbc13a5" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="hd_8h_1ce9b924d48cc450c255d1d48fcbc13a5" kindref="member">hdIoctl</ref>()<sp/>{</highlight></codeline> <codeline lineno="138"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(0x0);</highlight></codeline> <codeline lineno="139"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="140"><highlight class="normal"></highlight></codeline> <codeline lineno="141" refid="hd_8c_18e64e509439c31ba2acfe68a7aefcc10" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="hd_8h_18e64e509439c31ba2acfe68a7aefcc10" kindref="member">hdReset</ref>()<sp/>{</highlight></codeline> <codeline lineno="142"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(0x0);</highlight></codeline> <codeline lineno="143"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="144"><highlight class="normal"><sp/><sp/></highlight></codeline> <codeline lineno="145" refid="hd_8c_1b01b187dc277e089d0161315437fde41" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="hd_8h_1b01b187dc277e089d0161315437fde41" kindref="member">hdInit</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdevice__node" kindref="compound">device_node</ref><sp/>*dev)<sp/>{</highlight></codeline> <codeline lineno="146"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>retVal<sp/><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="147"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>counter<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="148"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>*tmp<sp/><sp/><sp/><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="149"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdriveInfo" kindref="compound">driveInfo</ref><sp/>*hdd<sp/>=<sp/>dev-><ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-><ref refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" kindref="member">info</ref>;</highlight></codeline> <codeline lineno="150"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(counter<sp/>=<sp/>1000000;counter<sp/>>=<sp/>0;counter--)<sp/>{</highlight></codeline> <codeline lineno="151"><highlight class="normal"><sp/><sp/><sp/><sp/>retVal<sp/>=<sp/><ref refid="io_8h_177b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_173f0c3f82605d0aa108e8186e4daae6b" kindref="member">hdStat</ref>)<sp/>&<sp/>0x80;</highlight></codeline> <codeline lineno="152"><highlight class="normal"><sp/><sp/><sp/><sp/>if<sp/>(!retVal)<sp/></highlight><highlight class="keywordflow">goto</highlight><highlight class="normal"><sp/>ready;</highlight></codeline> <codeline lineno="153"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="154"><highlight class="normal"><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"Error<sp/>Initializing<sp/>Drive\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="155"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(1);</highlight></codeline> <codeline lineno="156"><highlight class="normal"><sp/><sp/>ready:</highlight></codeline> <codeline lineno="157"><highlight class="normal"><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_1cefc72ce44e542db4580ce7e7c732aab" kindref="member">hdHead</ref>,hdd-><ref refid="structdriveInfo_1ef8c94d9c3cc8a71e23d8e63abbe38a5" kindref="member">hdDev</ref>);</highlight></codeline> <codeline lineno="158"><highlight class="normal"><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_17623c70dac9a02ab1f75aa7a6e547c4c" kindref="member">hdCmd</ref>,0xEC);</highlight></codeline> <codeline lineno="159"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(counter<sp/>=<sp/>1000000;counter<sp/>>=<sp/>0;counter--)<sp/>{</highlight></codeline> <codeline lineno="160"><highlight class="normal"><sp/><sp/><sp/><sp/>retVal<sp/>=<sp/><ref refid="io_8h_177b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_173f0c3f82605d0aa108e8186e4daae6b" kindref="member">hdStat</ref>);</highlight></codeline> <codeline lineno="161"><highlight class="normal"><sp/><sp/><sp/><sp/>if<sp/>((retVal<sp/>&<sp/>1)<sp/>!=<sp/>0x0)<sp/>{</highlight></codeline> <codeline lineno="162"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"Error<sp/>Drive<sp/>Not<sp/>Available\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="163"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(1);</highlight></codeline> <codeline lineno="164"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="165"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((retVal<sp/>&<sp/>8)<sp/>!=<sp/>0x0)<sp/>{</highlight></codeline> <codeline lineno="166"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">goto</highlight><highlight class="normal"><sp/>go;</highlight></codeline> <codeline lineno="167"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="168"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="169"><highlight class="normal"><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"Time<sp/>Out<sp/>Waiting<sp/>On<sp/>Drive\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="170"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(1);</highlight></codeline> <codeline lineno="171"><highlight class="normal"><sp/><sp/>go:</highlight></codeline> <codeline lineno="172"><highlight class="normal"><sp/><sp/>tmp<sp/>=<sp/>(</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>*)hdd-><ref refid="structdriveInfo_1ce7d3b12f76a7f0b5dba53b1904be35a" kindref="member">hdSector</ref>;</highlight></codeline> <codeline lineno="173"><highlight class="normal"><sp/><sp/>for<sp/>(counter<sp/>=<sp/>0;counter<sp/><<sp/>(512/2);counter++)<sp/>{</highlight></codeline> <codeline lineno="174"><highlight class="normal"><sp/><sp/><sp/><sp/>tmp[counter]<sp/>=<sp/><ref refid="io_8h_1fb703b187feb4b92444454df6c3dd9e6" kindref="member">inportWord</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_11571e7119dfede60820469184878948a" kindref="member">hdData</ref>);</highlight></codeline> <codeline lineno="175"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="176"><highlight class="normal"><sp/><sp/>retVal<sp/>=<sp/>tmp[0x2F]<sp/>&<sp/>0xFF;</highlight></codeline> <codeline lineno="177"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">switch</highlight><highlight class="normal"><sp/>(retVal)<sp/>{</highlight></codeline> <codeline lineno="178"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>0:</highlight></codeline> <codeline lineno="179"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1cacd139e4cfe1037afbcf488f2f5d2c3" kindref="member">hdShift</ref><sp/>=<sp/>0;</highlight></codeline> <codeline lineno="180"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1c6d14ed915761c07077af5d64fa0b83e" kindref="member">hdMulti</ref><sp/>=<sp/>1;</highlight></codeline> <codeline lineno="181"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="182"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>2:</highlight></codeline> <codeline lineno="183"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1cacd139e4cfe1037afbcf488f2f5d2c3" kindref="member">hdShift</ref><sp/>=<sp/>1;</highlight></codeline> <codeline lineno="184"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1c6d14ed915761c07077af5d64fa0b83e" kindref="member">hdMulti</ref><sp/>=<sp/>retVal;</highlight></codeline> <codeline lineno="185"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="186"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>4:</highlight></codeline> <codeline lineno="187"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1cacd139e4cfe1037afbcf488f2f5d2c3" kindref="member">hdShift</ref><sp/>=<sp/>2;</highlight></codeline> <codeline lineno="188"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1c6d14ed915761c07077af5d64fa0b83e" kindref="member">hdMulti</ref><sp/>=<sp/>retVal;</highlight></codeline> <codeline lineno="189"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="190"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>8:</highlight></codeline> <codeline lineno="191"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1cacd139e4cfe1037afbcf488f2f5d2c3" kindref="member">hdShift</ref><sp/>=<sp/>3;</highlight></codeline> <codeline lineno="192"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1c6d14ed915761c07077af5d64fa0b83e" kindref="member">hdMulti</ref><sp/>=<sp/>retVal;</highlight></codeline> <codeline lineno="193"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="194"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>16:</highlight></codeline> <codeline lineno="195"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1cacd139e4cfe1037afbcf488f2f5d2c3" kindref="member">hdShift</ref><sp/>=<sp/>4;</highlight></codeline> <codeline lineno="196"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1c6d14ed915761c07077af5d64fa0b83e" kindref="member">hdMulti</ref><sp/>=<sp/>retVal;</highlight></codeline> <codeline lineno="197"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="198"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>32:</highlight></codeline> <codeline lineno="199"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1cacd139e4cfe1037afbcf488f2f5d2c3" kindref="member">hdShift</ref><sp/>=<sp/>5;</highlight></codeline> <codeline lineno="200"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1c6d14ed915761c07077af5d64fa0b83e" kindref="member">hdMulti</ref><sp/>=<sp/>retVal;</highlight></codeline> <codeline lineno="201"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="202"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">case</highlight><highlight class="normal"><sp/>64:</highlight></codeline> <codeline lineno="203"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1cacd139e4cfe1037afbcf488f2f5d2c3" kindref="member">hdShift</ref><sp/>=<sp/>6;</highlight></codeline> <codeline lineno="204"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1c6d14ed915761c07077af5d64fa0b83e" kindref="member">hdMulti</ref><sp/>=<sp/>retVal;</highlight></codeline> <codeline lineno="205"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="206"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">:</highlight></codeline> <codeline lineno="207"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"Error<sp/>BLOCK<sp/>Mode<sp/>Unavailable:<sp/>[%i]\n"</highlight><highlight class="normal">,retVal);</highlight></codeline> <codeline lineno="208"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(1);</highlight></codeline> <codeline lineno="209"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="210"><highlight class="normal"><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_18206a5d5a25f1d6fc9e02013572c52db" kindref="member">hdSecCount</ref>,retVal);</highlight></codeline> <codeline lineno="211"><highlight class="normal"><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_1cefc72ce44e542db4580ce7e7c732aab" kindref="member">hdHead</ref>,hdd-><ref refid="structdriveInfo_1ef8c94d9c3cc8a71e23d8e63abbe38a5" kindref="member">hdDev</ref>);</highlight></codeline> <codeline lineno="212"><highlight class="normal"><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_17623c70dac9a02ab1f75aa7a6e547c4c" kindref="member">hdCmd</ref>,0xC6);</highlight></codeline> <codeline lineno="213"><highlight class="normal"><sp/><sp/>hdd-><ref refid="structdriveInfo_1a446858a696dafa8454b90a9d5087aae" kindref="member">hdMask</ref><sp/>=<sp/>retVal;</highlight></codeline> <codeline lineno="214"><highlight class="normal"><sp/><sp/>hdd-><ref refid="structdriveInfo_1da0977b5e57df10de593d1df22712af8" kindref="member">hdSize</ref><sp/>=<sp/>(hdd-><ref refid="structdriveInfo_1ce7d3b12f76a7f0b5dba53b1904be35a" kindref="member">hdSector</ref>[0x7B]<sp/>*<sp/>256<sp/>*<sp/>256<sp/>*<sp/>256)<sp/>+<sp/>(hdd-><ref refid="structdriveInfo_1ce7d3b12f76a7f0b5dba53b1904be35a" kindref="member">hdSector</ref>[0x7A]<sp/>*<sp/>256<sp/>*<sp/>256)<sp/>+<sp/>(hdd-><ref refid="structdriveInfo_1ce7d3b12f76a7f0b5dba53b1904be35a" kindref="member">hdSector</ref>[0x79]<sp/>*<sp/>256)<sp/>+<sp/>hdd-><ref refid="structdriveInfo_1ce7d3b12f76a7f0b5dba53b1904be35a" kindref="member">hdSector</ref>[0x78];</highlight></codeline> <codeline lineno="215"><highlight class="normal"><sp/><sp/>hdd-><ref refid="structdriveInfo_1f385dccea1485233fc52351a8d7666aa" kindref="member">hdEnable</ref><sp/>=<sp/>1;</highlight></codeline> <codeline lineno="216"><highlight class="normal"><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"Drive:<sp/>[0x%X/0x%X],<sp/>Size:<sp/>[%iSectors/%iKBytes]\n"</highlight><highlight class="normal">,hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref>,hdd-><ref refid="structdriveInfo_1ef8c94d9c3cc8a71e23d8e63abbe38a5" kindref="member">hdDev</ref>,hdd-><ref refid="structdriveInfo_1da0977b5e57df10de593d1df22712af8" kindref="member">hdSize</ref>,((hdd-><ref refid="structdriveInfo_1da0977b5e57df10de593d1df22712af8" kindref="member">hdSize</ref>*512)/1024));</highlight></codeline> <codeline lineno="217"><highlight class="normal"><sp/><sp/>dev-><ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-><ref refid="structdevice__interface_182fda947114f5c8d53fb7acbd7eb0e21" kindref="member">size</ref><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>=<sp/>hdd-><ref refid="structdriveInfo_1da0977b5e57df10de593d1df22712af8" kindref="member">hdSize</ref>*512;</highlight></codeline> <codeline lineno="218"><highlight class="normal"><sp/><sp/>dev-><ref refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" kindref="member">devInfo</ref>-><ref refid="structdevice__interface_1561678212ee39a09ce43c1a3567c64e2" kindref="member">initialized</ref><sp/>=<sp/>0x1;</highlight></codeline> <codeline lineno="219"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(0x0);</highlight></codeline> <codeline lineno="220"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="221"><highlight class="normal"></highlight></codeline> <codeline lineno="222" refid="hd_8c_1c50b08b00d860d86356576d56650a025" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="hd_8h_16bbbb9d4c1c81ca945bf093cbba5490c" kindref="member">hdWrite</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdriveInfo" kindref="compound">driveInfo</ref><sp/>*hdd,</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*baseAddr,<ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/>startSector,<ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/>sectorCount)<sp/>{</highlight></codeline> <codeline lineno="223"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>counter<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="224"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>retVal<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="225"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>transactionCount<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="226"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>*tmp<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>=<sp/>(</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>*)baseAddr;</highlight></codeline> <codeline lineno="227"><highlight class="normal"><sp/><sp/>startSector<sp/>+=<sp/>hdd-><ref refid="structdriveInfo_1bbb3cbf508e4e7b866eeb658846bd44a" kindref="member">parOffset</ref>;</highlight></codeline> <codeline lineno="228"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(hdd-><ref refid="structdriveInfo_1f385dccea1485233fc52351a8d7666aa" kindref="member">hdEnable</ref><sp/>==<sp/>0x0)<sp/>{</highlight></codeline> <codeline lineno="229"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"Invalid<sp/>Drive\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="230"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="231"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="232"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((sectorCount<sp/>>><sp/>hdd-><ref refid="structdriveInfo_1cacd139e4cfe1037afbcf488f2f5d2c3" kindref="member">hdShift</ref>)<sp/>==<sp/>0x0)<sp/>{</highlight></codeline> <codeline lineno="233"><highlight class="normal"><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1877ef27dad0f84711aedbabb4ff71a2a" kindref="member">hdCalc</ref><sp/>=<sp/>sectorCount;<sp/></highlight><highlight class="comment">/*<sp/>hdd->hdMask;<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="234"><highlight class="normal"><sp/><sp/><sp/><sp/>transactionCount<sp/>=<sp/>1;</highlight></codeline> <codeline lineno="235"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="236"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline> <codeline lineno="237"><highlight class="normal"><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1877ef27dad0f84711aedbabb4ff71a2a" kindref="member">hdCalc</ref><sp/>=<sp/>hdd-><ref refid="structdriveInfo_1c6d14ed915761c07077af5d64fa0b83e" kindref="member">hdMulti</ref>;</highlight></codeline> <codeline lineno="238"><highlight class="normal"><sp/><sp/><sp/><sp/>transactionCount<sp/>=<sp/>sectorCount<sp/>>><sp/>hdd-><ref refid="structdriveInfo_1cacd139e4cfe1037afbcf488f2f5d2c3" kindref="member">hdShift</ref>;</highlight></codeline> <codeline lineno="239"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="240"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(;transactionCount<sp/>><sp/>0;transactionCount--)<sp/>{</highlight></codeline> <codeline lineno="241"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(counter<sp/>=<sp/>1000000;counter<sp/>>=<sp/>0;counter--)<sp/>{</highlight></codeline> <codeline lineno="242"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>retVal<sp/>=<sp/><ref refid="io_8h_177b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_173f0c3f82605d0aa108e8186e4daae6b" kindref="member">hdStat</ref>)<sp/>&<sp/>0x80;</highlight></codeline> <codeline lineno="243"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>if<sp/>(!retVal)<sp/></highlight><highlight class="keywordflow">goto</highlight><highlight class="normal"><sp/>ready;</highlight></codeline> <codeline lineno="244"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="245"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"Time<sp/>Out<sp/>Waiting<sp/>On<sp/>Drive\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="246"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="247"><highlight class="normal"><sp/><sp/><sp/><sp/>ready:</highlight></codeline> <codeline lineno="248"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_18206a5d5a25f1d6fc9e02013572c52db" kindref="member">hdSecCount</ref>,hdd-><ref refid="structdriveInfo_1877ef27dad0f84711aedbabb4ff71a2a" kindref="member">hdCalc</ref>);</highlight></codeline> <codeline lineno="249"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_10fa794dfb3e811122d5eafbe348c368f" kindref="member">hdSecNum</ref>,(startSector<sp/>&<sp/>0xFF));</highlight></codeline> <codeline lineno="250"><highlight class="normal"><sp/><sp/><sp/><sp/>retVal<sp/>=<sp/>startSector<sp/>>><sp/>8;</highlight></codeline> <codeline lineno="251"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_130a2e624c7eda626a913f0b5b9ed26b7" kindref="member">hdCylLow</ref>,(retVal<sp/>&<sp/>0xFF));</highlight></codeline> <codeline lineno="252"><highlight class="normal"><sp/><sp/><sp/><sp/>retVal<sp/>>>=<sp/>8;</highlight></codeline> <codeline lineno="253"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_12a82bac9f72d97307f87e60acb709ebb" kindref="member">hdCylHi</ref>,(retVal<sp/>&<sp/>0xFF));</highlight></codeline> <codeline lineno="254"><highlight class="normal"><sp/><sp/><sp/><sp/>retVal<sp/>>>=<sp/>8;</highlight></codeline> <codeline lineno="255"><highlight class="normal"><sp/><sp/><sp/><sp/>retVal<sp/>&=<sp/>0x0F;</highlight></codeline> <codeline lineno="256"><highlight class="normal"><sp/><sp/><sp/><sp/>retVal<sp/>|=<sp/>(hdd-><ref refid="structdriveInfo_1ef8c94d9c3cc8a71e23d8e63abbe38a5" kindref="member">hdDev</ref><sp/>|<sp/>0xA0);<sp/></highlight><highlight class="comment">//Test<sp/>As<sp/>Per<sp/>TJ</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="257"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_1cefc72ce44e542db4580ce7e7c732aab" kindref="member">hdHead</ref>,(retVal<sp/>&<sp/>0xFF));</highlight></codeline> <codeline lineno="258"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(hdd-><ref refid="structdriveInfo_1cacd139e4cfe1037afbcf488f2f5d2c3" kindref="member">hdShift</ref><sp/>><sp/>0)</highlight></codeline> <codeline lineno="259"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_17623c70dac9a02ab1f75aa7a6e547c4c" kindref="member">hdCmd</ref>,0xC5);</highlight></codeline> <codeline lineno="260"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="261"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_17623c70dac9a02ab1f75aa7a6e547c4c" kindref="member">hdCmd</ref>,0<ref refid="ap-boot_8S_1c2a218176530ced267bbcc8042da1000" kindref="member">x30</ref>);</highlight></codeline> <codeline lineno="262"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(counter<sp/>=<sp/>1000000;counter<sp/>>=<sp/>0;counter--)<sp/>{</highlight></codeline> <codeline lineno="263"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>retVal<sp/>=<sp/><ref refid="io_8h_177b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_173f0c3f82605d0aa108e8186e4daae6b" kindref="member">hdStat</ref>);</highlight></codeline> <codeline lineno="264"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>if<sp/>((retVal<sp/>&<sp/>1)<sp/>!=<sp/>0x0)<sp/>{</highlight></codeline> <codeline lineno="265"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"HD<sp/>Write<sp/>Error\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="266"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="267"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="268"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((retVal<sp/>&<sp/>8)<sp/>!=<sp/>0x0)<sp/>{</highlight></codeline> <codeline lineno="269"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">goto</highlight><highlight class="normal"><sp/>go;</highlight></codeline> <codeline lineno="270"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="271"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="272"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"Time<sp/>Out<sp/>Waiting<sp/>On<sp/>Drive\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="273"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="274"><highlight class="normal"><sp/><sp/><sp/><sp/>go:</highlight></codeline> <codeline lineno="275"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(counter<sp/>=<sp/>0;counter<sp/><<sp/>(hdd-><ref refid="structdriveInfo_1877ef27dad0f84711aedbabb4ff71a2a" kindref="member">hdCalc</ref><sp/><<<sp/>8);counter++)<sp/>{</highlight></codeline> <codeline lineno="276"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="io_8h_1243f6b6d22cc5948908b764d58efc2b0" kindref="member">outportWord</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_11571e7119dfede60820469184878948a" kindref="member">hdData</ref>,(</highlight><highlight class="keywordtype">short</highlight><highlight class="normal">)tmp[counter]);</highlight></codeline> <codeline lineno="277"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="278"><highlight class="normal"><sp/><sp/><sp/><sp/>tmp<sp/>+=<sp/>(counter<sp/>+<sp/>0);</highlight></codeline> <codeline lineno="279"><highlight class="normal"><sp/><sp/><sp/><sp/>startSector<sp/>+=<sp/>hdd-><ref refid="structdriveInfo_1877ef27dad0f84711aedbabb4ff71a2a" kindref="member">hdCalc</ref>;</highlight></codeline> <codeline lineno="280"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="281"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="282"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="283"><highlight class="normal"></highlight></codeline> <codeline lineno="284" refid="hd_8c_167cfa382743c8440a3fe43738dfae598" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="hd_8h_1bda1e72920488b35bcfc9ed68bf4c268" kindref="member">hdRead</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdriveInfo" kindref="compound">driveInfo</ref><sp/>*hdd,</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*baseAddr,<ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/>startSector,<ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref><sp/>sectorCount)<sp/>{</highlight></codeline> <codeline lineno="285"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>counter<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="286"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>retVal<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="287"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>transactionCount<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="288"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>*tmp<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>=<sp/>(</highlight><highlight class="keywordtype">short</highlight><highlight class="normal"><sp/>*)baseAddr;</highlight></codeline> <codeline lineno="289"><highlight class="normal"><sp/><sp/>startSector<sp/>+=<sp/>hdd-><ref refid="structdriveInfo_1bbb3cbf508e4e7b866eeb658846bd44a" kindref="member">parOffset</ref>;</highlight></codeline> <codeline lineno="290"><highlight class="normal"></highlight></codeline> <codeline lineno="291"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(hdd-><ref refid="structdriveInfo_1f385dccea1485233fc52351a8d7666aa" kindref="member">hdEnable</ref><sp/>==<sp/>0x0)<sp/>{</highlight></codeline> <codeline lineno="292"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"Invalid<sp/>Drive\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="293"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="294"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="295"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((sectorCount<sp/>>><sp/>hdd-><ref refid="structdriveInfo_1cacd139e4cfe1037afbcf488f2f5d2c3" kindref="member">hdShift</ref>)<sp/>==<sp/>0x0)<sp/>{</highlight></codeline> <codeline lineno="296"><highlight class="normal"><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1877ef27dad0f84711aedbabb4ff71a2a" kindref="member">hdCalc</ref><sp/>=<sp/>sectorCount;<sp/></highlight><highlight class="comment">/*<sp/>hdd->hdMask);<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="297"><highlight class="normal"><sp/><sp/><sp/><sp/>transactionCount<sp/>=<sp/>1;</highlight></codeline> <codeline lineno="298"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="299"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline> <codeline lineno="300"><highlight class="normal"><sp/><sp/><sp/><sp/>hdd-><ref refid="structdriveInfo_1877ef27dad0f84711aedbabb4ff71a2a" kindref="member">hdCalc</ref><sp/>=<sp/>hdd-><ref refid="structdriveInfo_1c6d14ed915761c07077af5d64fa0b83e" kindref="member">hdMulti</ref>;</highlight></codeline> <codeline lineno="301"><highlight class="normal"><sp/><sp/><sp/><sp/>transactionCount<sp/>=<sp/>sectorCount<sp/>>><sp/>hdd-><ref refid="structdriveInfo_1cacd139e4cfe1037afbcf488f2f5d2c3" kindref="member">hdShift</ref>;</highlight></codeline> <codeline lineno="302"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="303"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(;transactionCount<sp/>><sp/>0;transactionCount--)<sp/>{</highlight></codeline> <codeline lineno="304"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(counter<sp/>=<sp/>1000000;counter<sp/>>=<sp/>0;counter--)<sp/>{</highlight></codeline> <codeline lineno="305"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>retVal<sp/>=<sp/><ref refid="io_8h_177b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_173f0c3f82605d0aa108e8186e4daae6b" kindref="member">hdStat</ref>)<sp/>&<sp/>0x80;</highlight></codeline> <codeline lineno="306"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>if<sp/>(!retVal)<sp/></highlight><highlight class="keywordflow">goto</highlight><highlight class="normal"><sp/>ready;</highlight></codeline> <codeline lineno="307"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="308"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"Time<sp/>Out<sp/>Waiting<sp/>On<sp/>Drive\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="309"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="310"><highlight class="normal"><sp/><sp/><sp/><sp/>ready:</highlight></codeline> <codeline lineno="311"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_18206a5d5a25f1d6fc9e02013572c52db" kindref="member">hdSecCount</ref>,hdd-><ref refid="structdriveInfo_1877ef27dad0f84711aedbabb4ff71a2a" kindref="member">hdCalc</ref>);</highlight></codeline> <codeline lineno="312"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_10fa794dfb3e811122d5eafbe348c368f" kindref="member">hdSecNum</ref>,(startSector<sp/>&<sp/>0xFF));</highlight></codeline> <codeline lineno="313"><highlight class="normal"><sp/><sp/><sp/><sp/>retVal<sp/>=<sp/>startSector<sp/>>><sp/>8;</highlight></codeline> <codeline lineno="314"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_130a2e624c7eda626a913f0b5b9ed26b7" kindref="member">hdCylLow</ref>,(retVal<sp/>&<sp/>0xFF));</highlight></codeline> <codeline lineno="315"><highlight class="normal"><sp/><sp/><sp/><sp/>retVal<sp/>>>=<sp/>8;</highlight></codeline> <codeline lineno="316"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_12a82bac9f72d97307f87e60acb709ebb" kindref="member">hdCylHi</ref>,(retVal<sp/>&<sp/>0xFF));</highlight></codeline> <codeline lineno="317"><highlight class="normal"><sp/><sp/><sp/><sp/>retVal<sp/>>>=<sp/>8;</highlight></codeline> <codeline lineno="318"><highlight class="normal"><sp/><sp/><sp/><sp/>retVal<sp/>&=<sp/>0x0F;</highlight></codeline> <codeline lineno="319"><highlight class="normal"><sp/><sp/><sp/><sp/>retVal<sp/>|=<sp/>(hdd-><ref refid="structdriveInfo_1ef8c94d9c3cc8a71e23d8e63abbe38a5" kindref="member">hdDev</ref><sp/>|<sp/>0xA0);<sp/></highlight><highlight class="comment">//Test<sp/>as<sp/>per<sp/>TJ</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="320"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//retVal<sp/>|=<sp/>hdd->hdDev;<sp/>//retVal<sp/>|=<sp/>(hdd->hdDev<sp/>|<sp/>0xA0);<sp/>//Test<sp/>as<sp/>per<sp/>TJ</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="321"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_1cefc72ce44e542db4580ce7e7c732aab" kindref="member">hdHead</ref>,(retVal<sp/>&<sp/>0xFF));</highlight></codeline> <codeline lineno="322"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(hdd-><ref refid="structdriveInfo_1cacd139e4cfe1037afbcf488f2f5d2c3" kindref="member">hdShift</ref><sp/>><sp/>0)</highlight></codeline> <codeline lineno="323"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_17623c70dac9a02ab1f75aa7a6e547c4c" kindref="member">hdCmd</ref>,0xC4);</highlight></codeline> <codeline lineno="324"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight></codeline> <codeline lineno="325"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_17623c70dac9a02ab1f75aa7a6e547c4c" kindref="member">hdCmd</ref>,0<ref refid="start_8S_162df326d54f8b2ece412319c4360ef3e" kindref="member">x20</ref>);</highlight></codeline> <codeline lineno="326"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(counter<sp/>=<sp/>1000000;counter<sp/>>=<sp/>0;counter--)<sp/>{</highlight></codeline> <codeline lineno="327"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>retVal<sp/>=<sp/><ref refid="io_8h_177b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_173f0c3f82605d0aa108e8186e4daae6b" kindref="member">hdStat</ref>);</highlight></codeline> <codeline lineno="328"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>if<sp/>((retVal<sp/>&<sp/>1)<sp/>!=<sp/>0x0)<sp/>{</highlight></codeline> <codeline lineno="329"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"HD<sp/>Read<sp/>Error:<sp/>[%i:0x%X:%i]\n"</highlight><highlight class="normal">,counter,(<ref refid="types_8h_15847ea0262a5aa61eee48cbe95544a78" kindref="member">uInt32</ref>)baseAddr,startSector);</highlight></codeline> <codeline lineno="330"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="331"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="332"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((retVal<sp/>&<sp/>8)<sp/>!=<sp/>0x0)<sp/>{</highlight></codeline> <codeline lineno="333"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">goto</highlight><highlight class="normal"><sp/>go;</highlight></codeline> <codeline lineno="334"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="335"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="336"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"Error:<sp/>Time<sp/>Out<sp/>Waiting<sp/>On<sp/>Drive\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="337"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="338"><highlight class="normal"><sp/><sp/><sp/><sp/>go:</highlight></codeline> <codeline lineno="339"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(counter<sp/>=<sp/>0;counter<sp/><<sp/>(hdd-><ref refid="structdriveInfo_1877ef27dad0f84711aedbabb4ff71a2a" kindref="member">hdCalc</ref><sp/><<<sp/>8);counter++)<sp/>{</highlight></codeline> <codeline lineno="340"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>tmp[counter]<sp/>=<sp/><ref refid="io_8h_1fb703b187feb4b92444454df6c3dd9e6" kindref="member">inportWord</ref>(hdd-><ref refid="structdriveInfo_1ad8076fe0ba9c5bdbbc23c79656619ab" kindref="member">hdPort</ref><sp/>+<sp/><ref refid="hd_8h_11571e7119dfede60820469184878948a" kindref="member">hdData</ref>);</highlight></codeline> <codeline lineno="341"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="342"><highlight class="normal"><sp/><sp/><sp/><sp/>tmp<sp/>+=<sp/>(counter<sp/>+<sp/>0);</highlight></codeline> <codeline lineno="343"><highlight class="normal"><sp/><sp/><sp/><sp/>startSector<sp/>+=<sp/>hdd-><ref refid="structdriveInfo_1877ef27dad0f84711aedbabb4ff71a2a" kindref="member">hdCalc</ref>;</highlight></codeline> <codeline lineno="344"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="345"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="346"><highlight class="normal"><sp/><sp/>}<sp/><sp/></highlight></codeline> <codeline lineno="347"><highlight class="normal"></highlight></codeline> <codeline lineno="348"><highlight class="normal"></highlight><highlight class="comment">/***</highlight></codeline> <codeline lineno="349"><highlight class="comment"><sp/>$Log: hd_8c.xml,v $ <codeline lineno="349"><highlight class="comment"><sp/>Revision 1.6 2006/12/19 14:12:51 reddawg <codeline lineno="349"><highlight class="comment"><sp/>rtld-elf almost workign <codeline lineno="349"><highlight class="comment"><sp/></highlight></codeline> <codeline lineno="350"><highlight class="comment"><sp/>Revision<sp/>1.5<sp/><sp/>2006/10/12<sp/>15:00:26<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="351"><highlight class="comment"><sp/>More<sp/>changes</highlight></codeline> <codeline lineno="352"><highlight class="comment"></highlight></codeline> <codeline lineno="353"><highlight class="comment"><sp/>Revision<sp/>1.4<sp/><sp/>2006/10/10<sp/>14:14:01<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="354"><highlight class="comment"><sp/>UFS<sp/>Reading</highlight></codeline> <codeline lineno="355"><highlight class="comment"></highlight></codeline> <codeline lineno="356"><highlight class="comment"><sp/>Revision<sp/>1.3<sp/><sp/>2006/10/09<sp/>02:58:05<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="357"><highlight class="comment"><sp/>Fixing<sp/>UFS</highlight></codeline> <codeline lineno="358"><highlight class="comment"></highlight></codeline> <codeline lineno="359"><highlight class="comment"><sp/>Revision<sp/>1.2<sp/><sp/>2006/10/06<sp/>15:48:01<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="360"><highlight class="comment"><sp/>Starting<sp/>to<sp/>make<sp/>ubixos<sp/>work<sp/>with<sp/>UFS2</highlight></codeline> <codeline lineno="361"><highlight class="comment"></highlight></codeline> <codeline lineno="362"><highlight class="comment"><sp/>Revision<sp/>1.1.1.1<sp/><sp/>2006/06/01<sp/>12:46:16<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="363"><highlight class="comment"><sp/>ubix2</highlight></codeline> <codeline lineno="364"><highlight class="comment"></highlight></codeline> <codeline lineno="365"><highlight class="comment"><sp/>Revision<sp/>1.2<sp/><sp/>2005/10/12<sp/>00:13:37<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="366"><highlight class="comment"><sp/>Removed</highlight></codeline> <codeline lineno="367"><highlight class="comment"></highlight></codeline> <codeline lineno="368"><highlight class="comment"><sp/>Revision<sp/>1.1.1.1<sp/><sp/>2005/09/26<sp/>17:24:34<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="369"><highlight class="comment"><sp/>no<sp/>message</highlight></codeline> <codeline lineno="370"><highlight class="comment"></highlight></codeline> <codeline lineno="371"><highlight class="comment"><sp/>Revision<sp/>1.16<sp/><sp/>2004/08/26<sp/>22:51:19<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="372"><highlight class="comment"><sp/>TCA<sp/>touched<sp/>me<sp/>:(<sp/>i<sp/>think<sp/>he<sp/>likes<sp/>men....</highlight></codeline> <codeline lineno="373"><highlight class="comment"></highlight></codeline> <codeline lineno="374"><highlight class="comment"></highlight></codeline> <codeline lineno="375"><highlight class="comment"><sp/>sched.h:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>kTask_t<sp/>added<sp/>parentPid</highlight></codeline> <codeline lineno="376"><highlight class="comment"><sp/>endtask.c:<sp/><sp/><sp/><sp/><sp/>fixed<sp/>term<sp/>back<sp/>to<sp/>parentPid</highlight></codeline> <codeline lineno="377"><highlight class="comment"><sp/>exec.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cleaned<sp/>warnings</highlight></codeline> <codeline lineno="378"><highlight class="comment"><sp/>fork.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>fixed<sp/>term<sp/>to<sp/>childPid</highlight></codeline> <codeline lineno="379"><highlight class="comment"><sp/>sched.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>clean<sp/>up<sp/>for<sp/>dead<sp/>tasks</highlight></codeline> <codeline lineno="380"><highlight class="comment"><sp/>systemtask.c:<sp/>clean<sp/>up<sp/>dead<sp/>tasks</highlight></codeline> <codeline lineno="381"><highlight class="comment"><sp/>kmalloc.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/>cleaned<sp/>up<sp/>warnings</highlight></codeline> <codeline lineno="382"><highlight class="comment"><sp/>udp.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cleaned<sp/>up<sp/>warnings</highlight></codeline> <codeline lineno="383"><highlight class="comment"><sp/>bot.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cleaned<sp/>up<sp/>warnings</highlight></codeline> <codeline lineno="384"><highlight class="comment"><sp/>shell.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cleaned<sp/>up<sp/>warnings</highlight></codeline> <codeline lineno="385"><highlight class="comment"><sp/>tcpdump.c:<sp/><sp/><sp/><sp/><sp/>took<sp/>a<sp/>dump</highlight></codeline> <codeline lineno="386"><highlight class="comment"><sp/>hd.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>cleaned<sp/>up<sp/>warnings</highlight></codeline> <codeline lineno="387"><highlight class="comment"><sp/>ubixfs.c:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>stopped<sp/>prning<sp/>debug<sp/>info</highlight></codeline> <codeline lineno="388"><highlight class="comment"></highlight></codeline> <codeline lineno="389"><highlight class="comment"><sp/>Revision<sp/>1.15<sp/><sp/>2004/08/15<sp/>00:33:02<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="390"><highlight class="comment"><sp/>Wow<sp/>the<sp/>ide<sp/>driver<sp/>works<sp/>again</highlight></codeline> <codeline lineno="391"><highlight class="comment"></highlight></codeline> <codeline lineno="392"><highlight class="comment"><sp/>Revision<sp/>1.14<sp/><sp/>2004/08/14<sp/>21:56:44<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="393"><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="394"><highlight class="comment"></highlight></codeline> <codeline lineno="395"><highlight class="comment"><sp/>Revision<sp/>1.13<sp/><sp/>2004/08/02<sp/>11:43:17<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="396"><highlight class="comment"><sp/>Fixens</highlight></codeline> <codeline lineno="397"><highlight class="comment"></highlight></codeline> <codeline lineno="398"><highlight class="comment"><sp/>Revision<sp/>1.12<sp/><sp/>2004/07/21<sp/>10:02:09<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="399"><highlight class="comment"><sp/>devfs:<sp/>renamed<sp/>functions</highlight></codeline> <codeline lineno="400"><highlight class="comment"><sp/>device<sp/>system:<sp/>renamed<sp/>functions</highlight></codeline> <codeline lineno="401"><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="402"><highlight class="comment"><sp/>strol:<sp/>fixed<sp/>definition</highlight></codeline> <codeline lineno="403"><highlight class="comment"><sp/>endtask:<sp/>made<sp/>it<sp/>print<sp/>out<sp/>freepage<sp/>debug<sp/>info</highlight></codeline> <codeline lineno="404"><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="405"><highlight class="comment"><sp/>ld:<sp/>fixed<sp/>a<sp/>pointer<sp/>conversion</highlight></codeline> <codeline lineno="406"><highlight class="comment"><sp/>file:<sp/>cleaned<sp/>up<sp/>a<sp/>few<sp/>unused<sp/>variables</highlight></codeline> <codeline lineno="407"><highlight class="comment"><sp/>sched:<sp/>broke<sp/>task<sp/>deletion</highlight></codeline> <codeline lineno="408"><highlight class="comment"><sp/>kprintf:<sp/>fixed<sp/>ogPrintf<sp/>definition</highlight></codeline> <codeline lineno="409"><highlight class="comment"></highlight></codeline> <codeline lineno="410"><highlight class="comment"><sp/>Revision<sp/>1.11<sp/><sp/>2004/05/19<sp/>23:36:52<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="411"><highlight class="comment"><sp/>Bug<sp/>Fixes</highlight></codeline> <codeline lineno="412"><highlight class="comment"></highlight></codeline> <codeline lineno="413"><highlight class="comment"><sp/>Revision<sp/>1.10<sp/><sp/>2004/05/19<sp/>15:20:06<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="414"><highlight class="comment"><sp/>Fixed<sp/>reference<sp/>problems<sp/>due<sp/>to<sp/>changes<sp/>in<sp/>drive<sp/>subsystem</highlight></codeline> <codeline lineno="415"><highlight class="comment"></highlight></codeline> <codeline lineno="416"><highlight class="comment"><sp/>Revision<sp/>1.9<sp/><sp/>2004/05/19<sp/>15:07:59<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="417"><highlight class="comment"><sp/>Typo<sp/>defInfo<sp/>should<sp/>of<sp/>been<sp/>devInfo</highlight></codeline> <codeline lineno="418"><highlight class="comment"></highlight></codeline> <codeline lineno="419"><highlight class="comment"><sp/>Revision<sp/>1.7<sp/><sp/>2004/05/19<sp/>04:07:43<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="420"><highlight class="comment"><sp/>kmalloc(size,pid)<sp/>no<sp/>more<sp/>it<sp/>is<sp/>no<sp/>kmalloc(size);<sp/>the<sp/>way<sp/>it<sp/>should<sp/>of<sp/>been</highlight></codeline> <codeline lineno="421"><highlight class="comment"></highlight></codeline> <codeline lineno="422"><highlight class="comment"><sp/>Revision<sp/>1.6<sp/><sp/>2004/04/28<sp/>21:10:40<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="423"><highlight class="comment"><sp/>Lots<sp/>Of<sp/>changes<sp/>to<sp/>make<sp/>it<sp/>work<sp/>with<sp/>existing<sp/>os</highlight></codeline> <codeline lineno="424"><highlight class="comment"></highlight></codeline> <codeline lineno="425"><highlight class="comment"><sp/>Revision<sp/>1.5<sp/><sp/>2004/04/28<sp/>02:37:34<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="426"><highlight class="comment"><sp/>More<sp/>updates<sp/>for<sp/>using<sp/>the<sp/>new<sp/>driver<sp/>subsystem</highlight></codeline> <codeline lineno="427"><highlight class="comment"></highlight></codeline> <codeline lineno="428"><highlight class="comment"><sp/>Revision<sp/>1.4<sp/><sp/>2004/04/28<sp/>02:22:54<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="429"><highlight class="comment"><sp/>This<sp/>is<sp/>a<sp/>fiarly<sp/>large<sp/>commit<sp/>but<sp/>we<sp/>are<sp/>starting<sp/>to<sp/>use<sp/>new<sp/>driver<sp/>model</highlight></codeline> <codeline lineno="430"><highlight class="comment"><sp/>all<sp/>around</highlight></codeline> <codeline lineno="431"><highlight class="comment"></highlight></codeline> <codeline lineno="432"><highlight class="comment"><sp/>Revision<sp/>1.3<sp/><sp/>2004/04/27<sp/>21:05:19<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="433"><highlight class="comment"><sp/>Updating<sp/>drivers<sp/>to<sp/>use<sp/>new<sp/>model</highlight></codeline> <codeline lineno="434"><highlight class="comment"></highlight></codeline> <codeline lineno="435"><highlight class="comment"><sp/>Revision<sp/>1.2<sp/><sp/>2004/04/26<sp/>22:22:33<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="436"><highlight class="comment"><sp/>DevFS<sp/>now<sp/>uses<sp/>correct<sp/>size<sp/>of<sp/>device</highlight></codeline> <codeline lineno="437"><highlight class="comment"></highlight></codeline> <codeline lineno="438"><highlight class="comment"><sp/>Revision<sp/>1.1.1.1<sp/><sp/>2004/04/15<sp/>12:07:16<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="439"><highlight class="comment"><sp/>UbixOS<sp/>v1.0</highlight></codeline> <codeline lineno="440"><highlight class="comment"></highlight></codeline> <codeline lineno="441"><highlight class="comment"><sp/>Revision<sp/>1.12<sp/><sp/>2004/04/13<sp/>16:36:33<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="442"><highlight class="comment"><sp/>Changed<sp/>our<sp/>copyright,<sp/>it<sp/>is<sp/>all<sp/>now<sp/>under<sp/>a<sp/>BSD-Style<sp/>license</highlight></codeline> <codeline lineno="443"><highlight class="comment"></highlight></codeline> <codeline lineno="444"><highlight class="comment"><sp/>END</highlight></codeline> <codeline lineno="445"><highlight class="comment"><sp/>***/</highlight><highlight class="normal"></highlight></codeline> </programlisting> <location file="/usr/home/reddawg/source/ubix2/src/sys/pci/hd.c"/> </compounddef> </doxygen>