<?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="fdc_8c" kind="file"> <compoundname>fdc.c</compoundname> <includes refid="fdc_8h" local="no">isa/fdc.h</includes> <includes refid="8259_8h" local="no">isa/8259.h</includes> <includes refid="video_8h" local="no">sys/video.h</includes> <includes refid="gdt_8h" local="no">sys/gdt.h</includes> <includes refid="idt_8h" local="no">sys/idt.h</includes> <includes refid="types_8h" local="no">ubixos/types.h</includes> <includes refid="spinlock_8h" local="no">ubixos/spinlock.h</includes> <includes refid="io_8h" local="no">sys/io.h</includes> <includes refid="dma_8h" local="no">sys/dma.h</includes> <includes refid="device_8h" local="no">sys/device.h</includes> <includes refid="kprintf_8h" local="no">lib/kprintf.h</includes> <includes refid="kmalloc_8h" local="no">lib/kmalloc.h</includes> <includes refid="devfs_8h" local="no">devfs/devfs.h</includes> <incdepgraph> <node id="5120"> <label>ubixos/spinlock.h</label> <link refid="spinlock_8h"/> <childnode refid="5114" relation="include"> </childnode> </node> <node id="5122"> <label>sys/dma.h</label> <link refid="dma_8h"/> <childnode refid="5114" relation="include"> </childnode> </node> <node id="5126"> <label>devfs/devfs.h</label> <link refid="devfs_8h"/> <childnode refid="5114" relation="include"> </childnode> <childnode refid="5127" relation="include"> </childnode> </node> <node id="5114"> <label>ubixos/types.h</label> <link refid="types_8h"/> <childnode refid="5115" relation="include"> </childnode> </node> <node id="5115"> <label>sys/_types.h</label> <link refid="__types_8h"/> </node> <node id="5117"> <label>sys/video.h</label> <link refid="video_8h"/> <childnode refid="5114" relation="include"> </childnode> </node> <node id="5127"> <label>vfs/file.h</label> <link refid="file_8h"/> <childnode refid="5114" relation="include"> </childnode> <childnode refid="5128" relation="include"> </childnode> <childnode refid="5129" relation="include"> </childnode> </node> <node id="5125"> <label>lib/kmalloc.h</label> <link refid="kmalloc_8h"/> <childnode refid="5114" relation="include"> </childnode> </node> <node id="5119"> <label>sys/idt.h</label> <link refid="idt_8h"/> <childnode refid="5114" relation="include"> </childnode> <childnode refid="5118" relation="include"> </childnode> </node> <node id="5129"> <label>vfs/mount.h</label> <link refid="mount_8h"/> <childnode refid="5114" relation="include"> </childnode> </node> <node id="5124"> <label>lib/kprintf.h</label> <link refid="kprintf_8h"/> <childnode refid="5114" relation="include"> </childnode> </node> <node id="5118"> <label>sys/gdt.h</label> <link refid="gdt_8h"/> </node> <node id="5128"> <label>ubixfs/dirCache.h</label> <link refid="dirCache_8h"/> <childnode refid="5114" relation="include"> </childnode> </node> <node id="5113"> <label>isa/fdc.h</label> <link refid="fdc_8h"/> <childnode refid="5114" relation="include"> </childnode> </node> <node id="5121"> <label>sys/io.h</label> <link refid="io_8h"/> </node> <node id="5116"> <label>isa/8259.h</label> <link refid="8259_8h"/> <childnode refid="5114" relation="include"> </childnode> </node> <node id="5112"> <label>src/sys/isa/fdc.c</label> <link refid="fdc.c"/> <childnode refid="5113" relation="include"> </childnode> <childnode refid="5116" relation="include"> </childnode> <childnode refid="5117" relation="include"> </childnode> <childnode refid="5118" relation="include"> </childnode> <childnode refid="5119" relation="include"> </childnode> <childnode refid="5114" relation="include"> </childnode> <childnode refid="5120" relation="include"> </childnode> <childnode refid="5121" relation="include"> </childnode> <childnode refid="5122" relation="include"> </childnode> <childnode refid="5123" relation="include"> </childnode> <childnode refid="5124" relation="include"> </childnode> <childnode refid="5125" relation="include"> </childnode> <childnode refid="5126" relation="include"> </childnode> </node> <node id="5123"> <label>sys/device.h</label> <link refid="device_8h"/> <childnode refid="5114" relation="include"> </childnode> </node> </incdepgraph> <sectiondef kind="func"> <memberdef kind="function" id="fdc_8c_1d9409f407f709a3bf551a812a98560d8" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type></type> <definition>asm</definition> <argsstring>(".globl floppyIsr \n""floppyIsr: \n"" pusha \n"" push %ss \n"" push %ds \n"" push %es \n"" push %fs \n"" push %gs \n"" call floppyIsrhndlr \n"" pop %gs \n"" pop %fs \n"" pop %es \n"" pop %ds \n"" pop %ss \n"" popa \n"" iret \n")</argsstring> <name>asm</name> <param> <type>".globl floppyIsr \n""floppyIsr: \n"" pusha \n"" push %ss \n"" push %ds \n"" push %es \n"" push %<ref refid="structfs" kindref="compound">fs</ref> \n"" push %gs \n"" call floppyIsrhndlr \n"" pop %gs \n"" pop %<ref refid="structfs" kindref="compound">fs</ref> \n"" pop %es \n"" pop %ds \n"" pop %ss \n"" popa \n"" iret \n"</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="96"/> </memberdef> <memberdef kind="function" id="fdc_8c_1a0f8325f93de9409e403e620f914e69f" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void block2Hts</definition> <argsstring>(int block, int *head, int *track, int *sector)</argsstring> <name>block2Hts</name> <param> <type>int</type> <declname>block</declname> </param> <param> <type>int *</type> <declname>head</declname> </param> <param> <type>int *</type> <declname>track</declname> </param> <param> <type>int *</type> <declname>sector</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="201" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="201" bodyend="205"/> <references refid="fdc_8c_1af7080152f82d659c32dd37e1727c32d" compoundref="fdc_8c" startline="47">geometry</references> <references refid="structDrvGeom_1edb24f8c9f3ae872be1cb104854dee1b" compoundref="fdc_8h" startline="36">DrvGeom::heads</references> <references refid="structDrvGeom_1a8dd21b2e6459ec0fabd9fe49835646a" compoundref="fdc_8h" startline="38">DrvGeom::spt</references> <referencedby refid="fdc_8c_19d92103f483df5da1a07402347739e44" compoundref="fdc_8c" startline="129" endline="199">fdcRw</referencedby> </memberdef> <memberdef kind="function" id="fdc_8c_12fad92b12d9ff56bf300b7e53875c75d" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int fdc_init</definition> <argsstring>()</argsstring> <name>fdc_init</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="63" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="63" bodyend="77"/> <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="gdt_8h_17eb6dc7004c613df58764da5df7d85d8" compoundref="gdt_8h" startline="37">dInt</references> <references refid="gdt_8h_1be5eb76416aff1d9114e1cdb8b0797fe" compoundref="gdt_8h" startline="48">dPresent</references> <references refid="fdc_8c_162847307f237f6b4240d1eb4718b13e7" compoundref="fdc_8c" startline="58" endline="61">fdcInit2</references> <references refid="fdc_8h_1fbac0e2409458a8fda9ff689ecd31de9" compoundref="fdc_8c" startline="303" endline="308">fdcRead</references> <references refid="fdc_8h_153a979dbcd632f57a4b004f66332f981" compoundref="fdc_8c" startline="309" endline="312">fdcWrite</references> <references refid="fdc_8h_12c2196dd9229105994bb3840347e6f05">floppyIsr</references> <references refid="structdevice__interface_192620413c2580ea3cf01e121bb54c254">device_interface::init</references> <references refid="8259_8h_10ac079c4d770f02e505f4d8569a6960a">irqEnable</references> <references refid="kmalloc_8h_1150eab2ac4ce4553e21ca10e7f441762" compoundref="kmalloc_8c" startline="247" endline="339">kmalloc</references> <references refid="structdevice__interface_17eb42b0bb3e06dbc9183531a5e59ddb8" compoundref="device_8h" startline="51">device_interface::major</references> <references refid="8259_8h_17d84962c1a1c225344a94545309f92fc" compoundref="8259_8h" startline="42">mVec</references> <references refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb">device_interface::read</references> <references refid="structdevice__interface_1cbfb9de4fadc968479e1536fcef4a2d6">device_interface::reset</references> <references refid="fdc_8h_13aea9deb2a0bfea9ff05a898f4822e31" compoundref="fdc_8c" startline="288" endline="301">reset</references> <references refid="idt_8h_1174a47ed653fc64fff6b5bb1b895c2cf" compoundref="idt_8c" startline="156" endline="164">setVector</references> <references refid="structdevice__interface_1f46913eec9f191290c82db23380bc5df">device_interface::write</references> </memberdef> <memberdef kind="function" id="fdc_8c_162847307f237f6b4240d1eb4718b13e7" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int fdcInit2</definition> <argsstring>(struct device_node *dev)</argsstring> <name>fdcInit2</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/isa/fdc.c" line="58" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="58" bodyend="61"/> <references refid="structdevice__node_1588d09d5dabf1c8866d359aaac799b1c" compoundref="device_8h" startline="38">device_node::devInfo</references> <references refid="structdevice__interface_182fda947114f5c8d53fb7acbd7eb0e21" compoundref="device_8h" startline="50">device_interface::size</references> <referencedby refid="fdc_8c_12fad92b12d9ff56bf300b7e53875c75d" compoundref="fdc_8c" startline="63" endline="77">fdc_init</referencedby> </memberdef> <memberdef kind="function" id="fdc_8c_11f2029ff3278c4b819c4420c168cc082" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void fdcRead</definition> <argsstring>(void *info, void *baseAddr, uInt32 startSector, uInt32 sectorCount)</argsstring> <name>fdcRead</name> <param> <type>void *</type> <declname>info</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/isa/fdc.c" line="303" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="303" bodyend="308"/> <references refid="fdc_8c_1bc402fcf53fee3aeee8c7a543727d183" compoundref="fdc_8c" startline="44">fdcSpinLock</references> <references refid="fdc_8h_1a03242a5e44c4f2d10e15d296aca8c6b" compoundref="fdc_8c" startline="241" endline="250">readBlock</references> <references refid="spinlock_8h_12cd9a4502680fb8e7f0fe6b029e558b1" compoundref="spinlock_8c" startline="56" endline="62">spinLock</references> <references refid="spinlock_8h_1dd996cbbb3b9826dd9c8cf02b66a4c65" compoundref="spinlock_8c" startline="37" endline="46">spinUnlock</references> <referencedby refid="fdc_8c_12fad92b12d9ff56bf300b7e53875c75d" compoundref="fdc_8c" startline="63" endline="77">fdc_init</referencedby> </memberdef> <memberdef kind="function" id="fdc_8c_19d92103f483df5da1a07402347739e44" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1" kindref="member">bool</ref></type> <definition>bool fdcRw</definition> <argsstring>(int block, Int8 *blockBuffer, bool read, unsigned long numSectors)</argsstring> <name>fdcRw</name> <param> <type>int</type> <declname>block</declname> </param> <param> <type><ref refid="types_8h_13832cc814f0e7129add9a1cf7201c7ca" kindref="member">Int8</ref> *</type> <declname>blockBuffer</declname> </param> <param> <type><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1" kindref="member">bool</ref></type> <declname>read</declname> </param> <param> <type>unsigned long</type> <declname>numSectors</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="129" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="129" bodyend="199"/> <references refid="fdc_8h_1a0f8325f93de9409e403e620f914e69f" compoundref="fdc_8c" startline="201" endline="205">block2Hts</references> <references refid="fdc_8h_16f35816c0b01ac39832de24459d82e27" compoundref="fdc_8h" startline="50">cmdRead</references> <references refid="fdc_8h_1fcfbcbee1143a2a689afc3a656646bad" compoundref="fdc_8h" startline="49">cmdWrite</references> <references refid="fdc_8h_195339d9d677a8ac74a7a7459ad130739" compoundref="fdc_8h" startline="59">dg144Gap3rw</references> <references refid="fdc_8h_1874c835339ecb6a4a5fdd7aab7bfbe02" compoundref="fdc_8h" startline="58">dg144Spt</references> <references refid="fdc_8h_151916e330bac103bdf860461ae359e1e" compoundref="fdc_8h" startline="60">dg168Gap3rw</references> <references refid="fdc_8c_1ee050d94ea7b1ff201263f7f7bfbbefc" compoundref="fdc_8c" startline="48">diskChange</references> <references refid="dma_8h_17e2aa65e3e12777006ad192f7ff8bb5a" compoundref="dma_8c" startline="44" endline="57">dmaXfer</references> <references refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a">FALSE</references> <references refid="fdc_8h_1bcb9230a76b72528226c49a520db19f0" compoundref="fdc_8h" startline="45">fdcCcr</references> <references refid="fdc_8h_193ff9547b61a14618c87c5639a1252c5" compoundref="fdc_8h" startline="44">fdcDir</references> <references refid="fdc_8h_19d92103f483df5da1a07402347739e44" compoundref="fdc_8c" startline="129" endline="199">fdcRw</references> <references refid="fdc_8c_1af7080152f82d659c32dd37e1727c32d" compoundref="fdc_8c" startline="47">geometry</references> <references refid="io_8h_177b934268de1b3ecdcf3f275413b3108" compoundref="io_8c" startline="39" endline="47">inportByte</references> <references refid="video_8h_15429378b96a24fadfd2d1f8d777eb95a" compoundref="video_8c" startline="62" endline="112">kprint</references> <references refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" compoundref="kprintf_8c" startline="38" endline="49">kprintf</references> <references refid="fdc_8h_1044fc0dea0fb35e6fab7f3c0badea2c9" compoundref="fdc_8c" startline="214" endline="220">motorOff</references> <references refid="fdc_8h_194483feb4903fca9643813faae8a76ee" compoundref="fdc_8c" startline="207" endline="212">motorOn</references> <references refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" compoundref="io_8c" startline="73" endline="79">outportByte</references> <references refid="fdc_8h_12a16ea9e09b5f3dc2a559351afdc75f3" compoundref="fdc_8c" startline="280" endline="286">recalibrate</references> <references refid="fdc_8h_13aea9deb2a0bfea9ff05a898f4822e31" compoundref="fdc_8c" startline="288" endline="301">reset</references> <references refid="fdc_8h_15886a896e5f0361f36b40d007db6e683" compoundref="fdc_8c" startline="222" endline="239">seek</references> <references refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" compoundref="fdc_8c" startline="103" endline="114">sendByte</references> <references refid="structDrvGeom_1a8dd21b2e6459ec0fabd9fe49835646a" compoundref="fdc_8h" startline="38">DrvGeom::spt</references> <references refid="fdc_8c_1e2746d1bf47d4f690105d083b966fa82" compoundref="fdc_8c" startline="54">status</references> <references refid="fdc_8c_14235a63d122daa0852a95529c2f93498" compoundref="fdc_8c" startline="56">tbaddr</references> <references refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839">TRUE</references> <references refid="fdc_8h_1f5b6e5123d27381ca120b7b4fea7b242" compoundref="fdc_8c" startline="256" endline="278">waitFdc</references> <referencedby refid="fdc_8c_19d92103f483df5da1a07402347739e44" compoundref="fdc_8c" startline="129" endline="199">fdcRw</referencedby> <referencedby refid="fdc_8c_1a03242a5e44c4f2d10e15d296aca8c6b" compoundref="fdc_8c" startline="241" endline="250">readBlock</referencedby> <referencedby refid="fdc_8c_1ebbcd7bc8695e888491b97b5bf27bd9c" compoundref="fdc_8c" startline="252" endline="254">writeBlock</referencedby> </memberdef> <memberdef kind="function" id="fdc_8c_1cc9e5f35deea53f5b68798269b9be7c0" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void fdcWrite</definition> <argsstring>(void *info, void *baseAddr, uInt32 startSector, uInt32 sectorCount)</argsstring> <name>fdcWrite</name> <param> <type>void *</type> <declname>info</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/isa/fdc.c" line="309" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="309" bodyend="312"/> <references refid="fdc_8h_1ebbcd7bc8695e888491b97b5bf27bd9c" compoundref="fdc_8c" startline="252" endline="254">writeBlock</references> <referencedby refid="fdc_8c_12fad92b12d9ff56bf300b7e53875c75d" compoundref="fdc_8c" startline="63" endline="77">fdc_init</referencedby> </memberdef> <memberdef kind="function" id="fdc_8c_15042dfaf2327990b6d1e1a7d3e01751c" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void floppyIsrhndlr</definition> <argsstring>()</argsstring> <name>floppyIsrhndlr</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="98" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="98" bodyend="101"/> <references refid="fdc_8c_13041fe08ed5976302158f2668249f8b2" compoundref="fdc_8c" startline="46">done</references> <references refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" compoundref="io_8c" startline="73" endline="79">outportByte</references> <references refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839">TRUE</references> <references refid="start_8S_162df326d54f8b2ece412319c4360ef3e" compoundref="start_8S" startline="51">x20</references> </memberdef> <memberdef kind="function" id="fdc_8c_1e266cdb34b69c65cfc108bbc72a4e3ff" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int getByte</definition> <argsstring>()</argsstring> <name>getByte</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="116" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="116" bodyend="127"/> <references refid="fdc_8h_1298d327024dc99847e9064de3aa4388a" compoundref="fdc_8h" startline="43">fdcData</references> <references refid="fdc_8h_18ede3d2b611c5ae0d74bac02a68f998a" compoundref="fdc_8h" startline="42">fdcMsr</references> <references refid="io_8h_177b934268de1b3ecdcf3f275413b3108" compoundref="io_8c" startline="39" endline="47">inportByte</references> <referencedby refid="fdc_8c_1f5b6e5123d27381ca120b7b4fea7b242" compoundref="fdc_8c" startline="256" endline="278">waitFdc</referencedby> </memberdef> <memberdef kind="function" id="fdc_8c_1044fc0dea0fb35e6fab7f3c0badea2c9" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void motorOff</definition> <argsstring>(void)</argsstring> <name>motorOff</name> <param> <type>void</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="214" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="214" bodyend="220"/> <references refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a">FALSE</references> <references refid="fdc_8c_17d4d19cb4b75718174baa280e7ceea9d" compoundref="fdc_8c" startline="49">motor</references> <references refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839">TRUE</references> <referencedby refid="fdc_8c_19d92103f483df5da1a07402347739e44" compoundref="fdc_8c" startline="129" endline="199">fdcRw</referencedby> <referencedby refid="fdc_8c_12a16ea9e09b5f3dc2a559351afdc75f3" compoundref="fdc_8c" startline="280" endline="286">recalibrate</referencedby> </memberdef> <memberdef kind="function" id="fdc_8c_194483feb4903fca9643813faae8a76ee" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void motorOn</definition> <argsstring>(void)</argsstring> <name>motorOn</name> <param> <type>void</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="207" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="207" bodyend="212"/> <references refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a">FALSE</references> <references refid="fdc_8h_1e3bc9df62f197b42804259efb8ba44ec" compoundref="fdc_8h" startline="46">fdcDor</references> <references refid="fdc_8c_17d4d19cb4b75718174baa280e7ceea9d" compoundref="fdc_8c" startline="49">motor</references> <references refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" compoundref="io_8c" startline="73" endline="79">outportByte</references> <references refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839">TRUE</references> <referencedby refid="fdc_8c_19d92103f483df5da1a07402347739e44" compoundref="fdc_8c" startline="129" endline="199">fdcRw</referencedby> <referencedby refid="fdc_8c_12a16ea9e09b5f3dc2a559351afdc75f3" compoundref="fdc_8c" startline="280" endline="286">recalibrate</referencedby> </memberdef> <memberdef kind="function" id="fdc_8c_1a03242a5e44c4f2d10e15d296aca8c6b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1" kindref="member">bool</ref></type> <definition>bool readBlock</definition> <argsstring>(int block, Int8 *blockBuffer, unsigned long numSectors)</argsstring> <name>readBlock</name> <param> <type>int</type> <declname>block</declname> </param> <param> <type><ref refid="types_8h_13832cc814f0e7129add9a1cf7201c7ca" kindref="member">Int8</ref> *</type> <declname>blockBuffer</declname> </param> <param> <type>unsigned long</type> <declname>numSectors</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="241" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="241" bodyend="250"/> <references refid="fdc_8h_19d92103f483df5da1a07402347739e44" compoundref="fdc_8c" startline="129" endline="199">fdcRw</references> <references refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839">TRUE</references> <referencedby refid="fdc_8c_11f2029ff3278c4b819c4420c168cc082" compoundref="fdc_8c" startline="303" endline="308">fdcRead</referencedby> </memberdef> <memberdef kind="function" id="fdc_8c_12a16ea9e09b5f3dc2a559351afdc75f3" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void recalibrate</definition> <argsstring>(void)</argsstring> <name>recalibrate</name> <param> <type>void</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="280" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="280" bodyend="286"/> <references refid="fdc_8h_18a2fef7d1ed07757e099b8c7b29bfb09" compoundref="fdc_8h" startline="53">cmdRecal</references> <references refid="fdc_8h_1044fc0dea0fb35e6fab7f3c0badea2c9" compoundref="fdc_8c" startline="214" endline="220">motorOff</references> <references refid="fdc_8h_194483feb4903fca9643813faae8a76ee" compoundref="fdc_8c" startline="207" endline="212">motorOn</references> <references refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" compoundref="fdc_8c" startline="103" endline="114">sendByte</references> <references refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839">TRUE</references> <references refid="fdc_8h_1f5b6e5123d27381ca120b7b4fea7b242" compoundref="fdc_8c" startline="256" endline="278">waitFdc</references> <referencedby refid="fdc_8c_19d92103f483df5da1a07402347739e44" compoundref="fdc_8c" startline="129" endline="199">fdcRw</referencedby> <referencedby refid="fdc_8c_13aea9deb2a0bfea9ff05a898f4822e31" compoundref="fdc_8c" startline="288" endline="301">reset</referencedby> </memberdef> <memberdef kind="function" id="fdc_8c_13aea9deb2a0bfea9ff05a898f4822e31" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void reset</definition> <argsstring>(void)</argsstring> <name>reset</name> <param> <type>void</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="288" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="288" bodyend="301"/> <references refid="fdc_8h_16003c8e12dd1e4f765279854f016c0ae" compoundref="fdc_8h" startline="54">cmdSpecify</references> <references refid="fdc_8c_1ee050d94ea7b1ff201263f7f7bfbbefc" compoundref="fdc_8c" startline="48">diskChange</references> <references refid="fdc_8c_13041fe08ed5976302158f2668249f8b2" compoundref="fdc_8c" startline="46">done</references> <references refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a">FALSE</references> <references refid="fdc_8h_1e3bc9df62f197b42804259efb8ba44ec" compoundref="fdc_8h" startline="46">fdcDor</references> <references refid="fdc_8c_17d4d19cb4b75718174baa280e7ceea9d" compoundref="fdc_8c" startline="49">motor</references> <references refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" compoundref="io_8c" startline="73" endline="79">outportByte</references> <references refid="fdc_8h_12a16ea9e09b5f3dc2a559351afdc75f3" compoundref="fdc_8c" startline="280" endline="286">recalibrate</references> <references refid="fdc_8h_15886a896e5f0361f36b40d007db6e683" compoundref="fdc_8c" startline="222" endline="239">seek</references> <references refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" compoundref="fdc_8c" startline="103" endline="114">sendByte</references> <references refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839">TRUE</references> <references refid="fdc_8h_1f5b6e5123d27381ca120b7b4fea7b242" compoundref="fdc_8c" startline="256" endline="278">waitFdc</references> <referencedby refid="fdc_8c_12fad92b12d9ff56bf300b7e53875c75d" compoundref="fdc_8c" startline="63" endline="77">fdc_init</referencedby> <referencedby refid="fdc_8c_19d92103f483df5da1a07402347739e44" compoundref="fdc_8c" startline="129" endline="199">fdcRw</referencedby> </memberdef> <memberdef kind="function" id="fdc_8c_15886a896e5f0361f36b40d007db6e683" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1" kindref="member">bool</ref></type> <definition>bool seek</definition> <argsstring>(int track)</argsstring> <name>seek</name> <param> <type>int</type> <declname>track</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="222" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="222" bodyend="239"/> <references refid="fdc_8h_1e2d2411a8ccdc868ab718da2b15348a9" compoundref="fdc_8h" startline="51">cmdSeek</references> <references refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a">FALSE</references> <references refid="fdc_8c_1bc6a2191073ccb560aaa9246c336fdd9" compoundref="fdc_8c" startline="50">fdcTrack</references> <references refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" compoundref="kprintf_8c" startline="38" endline="49">kprintf</references> <references refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" compoundref="fdc_8c" startline="103" endline="114">sendByte</references> <references refid="fdc_8c_15772ef6ca96f12ff8ed997ce8bdbc6d7" compoundref="fdc_8c" startline="51">sr0</references> <references refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839">TRUE</references> <references refid="fdc_8h_1f5b6e5123d27381ca120b7b4fea7b242" compoundref="fdc_8c" startline="256" endline="278">waitFdc</references> <references refid="start_8S_162df326d54f8b2ece412319c4360ef3e" compoundref="start_8S" startline="51">x20</references> <referencedby refid="fdc_8c_19d92103f483df5da1a07402347739e44" compoundref="fdc_8c" startline="129" endline="199">fdcRw</referencedby> <referencedby refid="fdc_8c_13aea9deb2a0bfea9ff05a898f4822e31" compoundref="fdc_8c" startline="288" endline="301">reset</referencedby> </memberdef> <memberdef kind="function" id="fdc_8c_1e708fa84d19a72e77185b3a214e81573" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void sendByte</definition> <argsstring>(int Int8)</argsstring> <name>sendByte</name> <param> <type>int</type> <declname>Int8</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="103" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="103" bodyend="114"/> <references refid="fdc_8h_1298d327024dc99847e9064de3aa4388a" compoundref="fdc_8h" startline="43">fdcData</references> <references refid="fdc_8h_18ede3d2b611c5ae0d74bac02a68f998a" compoundref="fdc_8h" startline="42">fdcMsr</references> <references refid="io_8h_177b934268de1b3ecdcf3f275413b3108" compoundref="io_8c" startline="39" endline="47">inportByte</references> <references refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" compoundref="io_8c" startline="73" endline="79">outportByte</references> <referencedby refid="fdc_8c_19d92103f483df5da1a07402347739e44" compoundref="fdc_8c" startline="129" endline="199">fdcRw</referencedby> <referencedby refid="fdc_8c_12a16ea9e09b5f3dc2a559351afdc75f3" compoundref="fdc_8c" startline="280" endline="286">recalibrate</referencedby> <referencedby refid="fdc_8c_13aea9deb2a0bfea9ff05a898f4822e31" compoundref="fdc_8c" startline="288" endline="301">reset</referencedby> <referencedby refid="fdc_8c_15886a896e5f0361f36b40d007db6e683" compoundref="fdc_8c" startline="222" endline="239">seek</referencedby> <referencedby refid="fdc_8c_1f5b6e5123d27381ca120b7b4fea7b242" compoundref="fdc_8c" startline="256" endline="278">waitFdc</referencedby> </memberdef> <memberdef kind="function" id="fdc_8c_1f5b6e5123d27381ca120b7b4fea7b242" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1" kindref="member">bool</ref></type> <definition>bool waitFdc</definition> <argsstring>(bool sensei)</argsstring> <name>waitFdc</name> <param> <type><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1" kindref="member">bool</ref></type> <declname>sensei</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="256" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="256" bodyend="278"/> <references refid="fdc_8h_16afd950ba65e51d77abf2158216f0284" compoundref="fdc_8h" startline="52">cmdSensei</references> <references refid="fdc_8c_1ee050d94ea7b1ff201263f7f7bfbbefc" compoundref="fdc_8c" startline="48">diskChange</references> <references refid="fdc_8c_13041fe08ed5976302158f2668249f8b2" compoundref="fdc_8c" startline="46">done</references> <references refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a">FALSE</references> <references refid="fdc_8h_193ff9547b61a14618c87c5639a1252c5" compoundref="fdc_8h" startline="44">fdcDir</references> <references refid="fdc_8h_18ede3d2b611c5ae0d74bac02a68f998a" compoundref="fdc_8h" startline="42">fdcMsr</references> <references refid="fdc_8c_1bc6a2191073ccb560aaa9246c336fdd9" compoundref="fdc_8c" startline="50">fdcTrack</references> <references refid="fdc_8h_1e266cdb34b69c65cfc108bbc72a4e3ff" compoundref="fdc_8c" startline="116" endline="127">getByte</references> <references refid="io_8h_177b934268de1b3ecdcf3f275413b3108" compoundref="io_8c" startline="39" endline="47">inportByte</references> <references refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" compoundref="fdc_8c" startline="103" endline="114">sendByte</references> <references refid="fdc_8c_15772ef6ca96f12ff8ed997ce8bdbc6d7" compoundref="fdc_8c" startline="51">sr0</references> <references refid="fdc_8c_1ee71be8badf158b1d3fc7ea1a47f82e7" compoundref="fdc_8c" startline="53">statSize</references> <references refid="fdc_8c_1e2746d1bf47d4f690105d083b966fa82" compoundref="fdc_8c" startline="54">status</references> <references refid="fdc_8c_1dea4d22e56b537ae3e8a8dd9b1555ce4" compoundref="fdc_8c" startline="52">timeOut</references> <references refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839">TRUE</references> <referencedby refid="fdc_8c_19d92103f483df5da1a07402347739e44" compoundref="fdc_8c" startline="129" endline="199">fdcRw</referencedby> <referencedby refid="fdc_8c_12a16ea9e09b5f3dc2a559351afdc75f3" compoundref="fdc_8c" startline="280" endline="286">recalibrate</referencedby> <referencedby refid="fdc_8c_13aea9deb2a0bfea9ff05a898f4822e31" compoundref="fdc_8c" startline="288" endline="301">reset</referencedby> <referencedby refid="fdc_8c_15886a896e5f0361f36b40d007db6e683" compoundref="fdc_8c" startline="222" endline="239">seek</referencedby> </memberdef> <memberdef kind="function" id="fdc_8c_1ebbcd7bc8695e888491b97b5bf27bd9c" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1" kindref="member">bool</ref></type> <definition>bool writeBlock</definition> <argsstring>(int block, Int8 *blockBuffer, unsigned long numSectors)</argsstring> <name>writeBlock</name> <param> <type>int</type> <declname>block</declname> </param> <param> <type><ref refid="types_8h_13832cc814f0e7129add9a1cf7201c7ca" kindref="member">Int8</ref> *</type> <declname>blockBuffer</declname> </param> <param> <type>unsigned long</type> <declname>numSectors</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="252" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="252" bodyend="254"/> <references refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a">FALSE</references> <references refid="fdc_8h_19d92103f483df5da1a07402347739e44" compoundref="fdc_8c" startline="129" endline="199">fdcRw</references> <referencedby refid="fdc_8c_1cc9e5f35deea53f5b68798269b9be7c0" compoundref="fdc_8c" startline="309" endline="312">fdcWrite</referencedby> </memberdef> </sectiondef> <sectiondef kind="var"> <memberdef kind="variable" id="fdc_8c_1ee050d94ea7b1ff201263f7f7bfbbefc" prot="public" static="yes" mutable="no"> <type><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1" kindref="member">bool</ref></type> <definition>bool diskChange</definition> <argsstring></argsstring> <name>diskChange</name> <initializer> FALSE</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="48" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="48" bodyend="-1"/> <referencedby refid="fdc_8c_19d92103f483df5da1a07402347739e44" compoundref="fdc_8c" startline="129" endline="199">fdcRw</referencedby> <referencedby refid="fdc_8c_13aea9deb2a0bfea9ff05a898f4822e31" compoundref="fdc_8c" startline="288" endline="301">reset</referencedby> <referencedby refid="fdc_8c_1f5b6e5123d27381ca120b7b4fea7b242" compoundref="fdc_8c" startline="256" endline="278">waitFdc</referencedby> </memberdef> <memberdef kind="variable" id="fdc_8c_13041fe08ed5976302158f2668249f8b2" prot="public" static="yes" mutable="no"> <type><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1" kindref="member">bool</ref></type> <definition>volatile bool done</definition> <argsstring></argsstring> <name>done</name> <initializer> FALSE</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="46" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="46" bodyend="-1"/> <referencedby refid="bcopy_8c_17d2165a6aaf8577fe615ccf03eba693d" compoundref="bcopy_8c" startline="70" endline="138">bcopy</referencedby> <referencedby refid="fdc_8c_15042dfaf2327990b6d1e1a7d3e01751c" compoundref="fdc_8c" startline="98" endline="101">floppyIsrhndlr</referencedby> <referencedby refid="fdc_8c_13aea9deb2a0bfea9ff05a898f4822e31" compoundref="fdc_8c" startline="288" endline="301">reset</referencedby> <referencedby refid="fdc_8c_1f5b6e5123d27381ca120b7b4fea7b242" compoundref="fdc_8c" startline="256" endline="278">waitFdc</referencedby> </memberdef> <memberdef kind="variable" id="fdc_8c_1bc402fcf53fee3aeee8c7a543727d183" prot="public" static="yes" mutable="no"> <type><ref refid="spinlock_8h_1a240e9404b4ede1e0d714610080d1176" kindref="member">spinLock_t</ref></type> <definition>spinLock_t fdcSpinLock</definition> <argsstring></argsstring> <name>fdcSpinLock</name> <initializer> SPIN_LOCK_INITIALIZER</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="44" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="44" bodyend="-1"/> <referencedby refid="fdc_8c_11f2029ff3278c4b819c4420c168cc082" compoundref="fdc_8c" startline="303" endline="308">fdcRead</referencedby> </memberdef> <memberdef kind="variable" id="fdc_8c_1bc6a2191073ccb560aaa9246c336fdd9" prot="public" static="yes" mutable="no"> <type><ref refid="types_8h_13832cc814f0e7129add9a1cf7201c7ca" kindref="member">Int8</ref></type> <definition>volatile Int8 fdcTrack</definition> <argsstring></argsstring> <name>fdcTrack</name> <initializer> 0xff</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="50" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="50" bodyend="-1"/> <referencedby refid="fdc_8c_15886a896e5f0361f36b40d007db6e683" compoundref="fdc_8c" startline="222" endline="239">seek</referencedby> <referencedby refid="fdc_8c_1f5b6e5123d27381ca120b7b4fea7b242" compoundref="fdc_8c" startline="256" endline="278">waitFdc</referencedby> </memberdef> <memberdef kind="variable" id="fdc_8c_1af7080152f82d659c32dd37e1727c32d" prot="public" static="yes" mutable="no"> <type><ref refid="structDrvGeom" kindref="compound">drvGeom</ref></type> <definition>drvGeom geometry</definition> <argsstring></argsstring> <name>geometry</name> <initializer> { dg144Heads,dg144Tracks,dg144Spt }</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="47" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="47" bodyend="-1"/> <referencedby refid="fdc_8c_1a0f8325f93de9409e403e620f914e69f" compoundref="fdc_8c" startline="201" endline="205">block2Hts</referencedby> <referencedby refid="fdc_8c_19d92103f483df5da1a07402347739e44" compoundref="fdc_8c" startline="129" endline="199">fdcRw</referencedby> </memberdef> <memberdef kind="variable" id="fdc_8c_17d4d19cb4b75718174baa280e7ceea9d" prot="public" static="yes" mutable="no"> <type><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1" kindref="member">bool</ref></type> <definition>bool motor</definition> <argsstring></argsstring> <name>motor</name> <initializer> FALSE</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="49" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="49" bodyend="-1"/> <referencedby refid="fdc_8c_1044fc0dea0fb35e6fab7f3c0badea2c9" compoundref="fdc_8c" startline="214" endline="220">motorOff</referencedby> <referencedby refid="fdc_8c_194483feb4903fca9643813faae8a76ee" compoundref="fdc_8c" startline="207" endline="212">motorOn</referencedby> <referencedby refid="fdc_8c_13aea9deb2a0bfea9ff05a898f4822e31" compoundref="fdc_8c" startline="288" endline="301">reset</referencedby> </memberdef> <memberdef kind="variable" id="fdc_8c_15772ef6ca96f12ff8ed997ce8bdbc6d7" prot="public" static="yes" mutable="no"> <type><ref refid="types_8h_13832cc814f0e7129add9a1cf7201c7ca" kindref="member">Int8</ref></type> <definition>Int8 sr0</definition> <argsstring></argsstring> <name>sr0</name> <initializer> 0</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="51" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="51" bodyend="-1"/> <referencedby refid="fdc_8c_15886a896e5f0361f36b40d007db6e683" compoundref="fdc_8c" startline="222" endline="239">seek</referencedby> <referencedby refid="fdc_8c_1f5b6e5123d27381ca120b7b4fea7b242" compoundref="fdc_8c" startline="256" endline="278">waitFdc</referencedby> </memberdef> <memberdef kind="variable" id="fdc_8c_1ee71be8badf158b1d3fc7ea1a47f82e7" prot="public" static="yes" mutable="no"> <type><ref refid="types_8h_13832cc814f0e7129add9a1cf7201c7ca" kindref="member">Int8</ref></type> <definition>Int8 statSize</definition> <argsstring></argsstring> <name>statSize</name> <initializer> 0</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="53" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="53" bodyend="-1"/> <referencedby refid="fdc_8c_1f5b6e5123d27381ca120b7b4fea7b242" compoundref="fdc_8c" startline="256" endline="278">waitFdc</referencedby> </memberdef> <memberdef kind="variable" id="fdc_8c_1e2746d1bf47d4f690105d083b966fa82" prot="public" static="yes" mutable="no"> <type><ref refid="types_8h_13832cc814f0e7129add9a1cf7201c7ca" kindref="member">Int8</ref></type> <definition>Int8 status[7]</definition> <argsstring>[7]</argsstring> <name>status</name> <initializer> { 0 }</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="54" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="54" bodyend="-1"/> <referencedby refid="fdc_8c_19d92103f483df5da1a07402347739e44" compoundref="fdc_8c" startline="129" endline="199">fdcRw</referencedby> <referencedby refid="ne2k_8c_11e664af4b82fdc7971db793f0e9b3ebd" compoundref="ne2k_8c" startline="191" endline="221">ne2kHandler</referencedby> <referencedby refid="vmm__memory_8c_11be09ae74f7f41cd765042a0a7411c49" compoundref="vmm__memory_8c" startline="186" endline="216">vmmFindFreePage</referencedby> <referencedby refid="vmm__memory_8c_1a24b696e386ef97dfe88b9b434c671c6" compoundref="vmm__memory_8c" startline="296" endline="332">vmmFreeProcessPages</referencedby> <referencedby refid="vmm__memory_8c_10926a4c7f70e387891f6124a48258b64" compoundref="vmm__memory_8c" startline="57" endline="93">vmmMemMapInit</referencedby> <referencedby refid="fdc_8c_1f5b6e5123d27381ca120b7b4fea7b242" compoundref="fdc_8c" startline="256" endline="278">waitFdc</referencedby> </memberdef> <memberdef kind="variable" id="fdc_8c_14235a63d122daa0852a95529c2f93498" prot="public" static="no" mutable="no"> <type>unsigned long</type> <definition>unsigned long tbaddr</definition> <argsstring></argsstring> <name>tbaddr</name> <initializer> 0x80000L</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="56" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="56" bodyend="-1"/> <referencedby refid="fdc_8c_19d92103f483df5da1a07402347739e44" compoundref="fdc_8c" startline="129" endline="199">fdcRw</referencedby> </memberdef> <memberdef kind="variable" id="fdc_8c_1dea4d22e56b537ae3e8a8dd9b1555ce4" prot="public" static="yes" mutable="no"> <type>int</type> <definition>volatile int timeOut</definition> <argsstring></argsstring> <name>timeOut</name> <initializer> 0</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" line="52" bodyfile="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c" bodystart="52" bodyend="-1"/> <referencedby refid="fdc_8c_1f5b6e5123d27381ca120b7b4fea7b242" compoundref="fdc_8c" startline="256" endline="278">waitFdc</referencedby> </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: fdc_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="fdc_8h" kindref="compound">isa/fdc.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="31"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="8259_8h" kindref="compound">isa/8259.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="32"><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="33"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="gdt_8h" kindref="compound">sys/gdt.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="34"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="idt_8h" kindref="compound">sys/idt.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="35"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="types_8h" kindref="compound">ubixos/types.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="36"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="spinlock_8h" kindref="compound">ubixos/spinlock.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="37"><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="38"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="dma_8h" kindref="compound">sys/dma.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="39"><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="40"><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="41"><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="42"><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="43"><highlight class="normal"></highlight></codeline> <codeline lineno="44" refid="fdc_8c_1bc402fcf53fee3aeee8c7a543727d183" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="spinlock_8h_1a240e9404b4ede1e0d714610080d1176" kindref="member">spinLock_t</ref><sp/><ref refid="fdc_8c_1bc402fcf53fee3aeee8c7a543727d183" kindref="member">fdcSpinLock</ref><sp/>=<sp/><ref refid="spinlock_8h_10fe85a4f3642683148b25916d6c5eafd" kindref="member">SPIN_LOCK_INITIALIZER</ref>;</highlight></codeline> <codeline lineno="45"><highlight class="normal"></highlight></codeline> <codeline lineno="46" refid="fdc_8c_13041fe08ed5976302158f2668249f8b2" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">volatile</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="fdc_8c_13041fe08ed5976302158f2668249f8b2" kindref="member">done</ref><sp/>=<sp/><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a" kindref="member">FALSE</ref>;</highlight></codeline> <codeline lineno="47" refid="fdc_8c_1af7080152f82d659c32dd37e1727c32d" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="structDrvGeom" kindref="compound">drvGeom</ref><sp/><ref refid="fdc_8c_1af7080152f82d659c32dd37e1727c32d" kindref="member">geometry</ref><sp/>=<sp/>{<sp/><ref refid="fdc_8h_1603e1e0a278c07c7338444e750ab35f3" kindref="member">dg144Heads</ref>,<ref refid="fdc_8h_1e502999ac4dc1f4ef9e0a9db76b11a9a" kindref="member">dg144Tracks</ref>,<ref refid="fdc_8h_1874c835339ecb6a4a5fdd7aab7bfbe02" kindref="member">dg144Spt</ref><sp/>};</highlight></codeline> <codeline lineno="48" refid="fdc_8c_1ee050d94ea7b1ff201263f7f7bfbbefc" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="fdc_8c_1ee050d94ea7b1ff201263f7f7bfbbefc" kindref="member">diskChange</ref><sp/>=<sp/><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a" kindref="member">FALSE</ref>;</highlight></codeline> <codeline lineno="49" refid="fdc_8c_17d4d19cb4b75718174baa280e7ceea9d" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="fdc_8c_17d4d19cb4b75718174baa280e7ceea9d" kindref="member">motor</ref><sp/>=<sp/><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a" kindref="member">FALSE</ref>;</highlight></codeline> <codeline lineno="50" refid="fdc_8c_1bc6a2191073ccb560aaa9246c336fdd9" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">volatile</highlight><highlight class="normal"><sp/><ref refid="types_8h_13832cc814f0e7129add9a1cf7201c7ca" kindref="member">Int8</ref><sp/><ref refid="fdc_8c_1bc6a2191073ccb560aaa9246c336fdd9" kindref="member">fdcTrack</ref><sp/>=<sp/>0xff;</highlight></codeline> <codeline lineno="51" refid="fdc_8c_15772ef6ca96f12ff8ed997ce8bdbc6d7" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="types_8h_13832cc814f0e7129add9a1cf7201c7ca" kindref="member">Int8</ref><sp/><ref refid="fdc_8c_15772ef6ca96f12ff8ed997ce8bdbc6d7" kindref="member">sr0</ref><sp/>=<sp/>0;</highlight></codeline> <codeline lineno="52" refid="fdc_8c_1dea4d22e56b537ae3e8a8dd9b1555ce4" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">volatile</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="fdc_8c_1dea4d22e56b537ae3e8a8dd9b1555ce4" kindref="member">timeOut</ref><sp/>=<sp/>0;</highlight></codeline> <codeline lineno="53" refid="fdc_8c_1ee71be8badf158b1d3fc7ea1a47f82e7" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="types_8h_13832cc814f0e7129add9a1cf7201c7ca" kindref="member">Int8</ref><sp/><ref refid="fdc_8c_1ee71be8badf158b1d3fc7ea1a47f82e7" kindref="member">statSize</ref><sp/>=<sp/>0;</highlight></codeline> <codeline lineno="54" refid="fdc_8c_1e2746d1bf47d4f690105d083b966fa82" refkind="member"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/><ref refid="types_8h_13832cc814f0e7129add9a1cf7201c7ca" kindref="member">Int8</ref><sp/><ref refid="fdc_8c_1e2746d1bf47d4f690105d083b966fa82" kindref="member">status</ref>[7]<sp/>=<sp/>{<sp/>0<sp/>};</highlight></codeline> <codeline lineno="55"><highlight class="normal"></highlight></codeline> <codeline lineno="56" refid="fdc_8c_14235a63d122daa0852a95529c2f93498" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/><ref refid="fdc_8c_14235a63d122daa0852a95529c2f93498" kindref="member">tbaddr</ref><sp/>=<sp/>0x80000L;</highlight></codeline> <codeline lineno="57"><highlight class="normal"></highlight></codeline> <codeline lineno="58" refid="fdc_8c_162847307f237f6b4240d1eb4718b13e7" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="fdc_8c_162847307f237f6b4240d1eb4718b13e7" kindref="member">fdcInit2</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="59"><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/>(1024<sp/>*<sp/>1450);</highlight></codeline> <codeline lineno="60"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(0x0);</highlight></codeline> <codeline lineno="61"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="62"><highlight class="normal"></highlight></codeline> <codeline lineno="63" refid="fdc_8c_12fad92b12d9ff56bf300b7e53875c75d" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_12fad92b12d9ff56bf300b7e53875c75d" kindref="member">fdc_init</ref>()<sp/>{</highlight></codeline> <codeline lineno="64"><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/>(</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="65"><highlight class="normal"><sp/><sp/><ref refid="idt_8h_1174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(<ref refid="fdc_8h_12c2196dd9229105994bb3840347e6f05" kindref="member">floppyIsr</ref>,<sp/><ref refid="8259_8h_17d84962c1a1c225344a94545309f92fc" kindref="member">mVec</ref>+6,<sp/>(<ref refid="gdt_8h_17eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref>+<ref refid="gdt_8h_1be5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref>));</highlight></codeline> <codeline lineno="66"><highlight class="normal"><sp/><sp/><ref refid="8259_8h_10ac079c4d770f02e505f4d8569a6960a" kindref="member">irqEnable</ref>(6);</highlight></codeline> <codeline lineno="67"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_13aea9deb2a0bfea9ff05a898f4822e31" kindref="member">reset</ref>();</highlight></codeline> <codeline lineno="68"><highlight class="normal"><sp/><sp/>devInfo-><ref refid="structdevice__interface_17eb42b0bb3e06dbc9183531a5e59ddb8" kindref="member">major</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="69"><highlight class="normal"><sp/><sp/>devInfo-><ref refid="structdevice__interface_192620413c2580ea3cf01e121bb54c254" kindref="member">init</ref><sp/><sp/>=<sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*)&<ref refid="fdc_8c_162847307f237f6b4240d1eb4718b13e7" kindref="member">fdcInit2</ref>;</highlight></codeline> <codeline lineno="70"><highlight class="normal"><sp/><sp/>devInfo-><ref refid="structdevice__interface_16caf84418059d0121e76d873e305ddcb" kindref="member">read</ref><sp/><sp/>=<sp/><ref refid="fdc_8h_1fbac0e2409458a8fda9ff689ecd31de9" kindref="member">fdcRead</ref>;</highlight></codeline> <codeline lineno="71"><highlight class="normal"><sp/><sp/>devInfo-><ref refid="structdevice__interface_1f46913eec9f191290c82db23380bc5df" kindref="member">write</ref><sp/>=<sp/><ref refid="fdc_8h_153a979dbcd632f57a4b004f66332f981" kindref="member">fdcWrite</ref>;</highlight></codeline> <codeline lineno="72"><highlight class="normal"><sp/><sp/>devInfo-><ref refid="structdevice__interface_1cbfb9de4fadc968479e1536fcef4a2d6" kindref="member">reset</ref><sp/>=<sp/>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*)<ref refid="fdc_8h_13aea9deb2a0bfea9ff05a898f4822e31" kindref="member">reset</ref>;</highlight></codeline> <codeline lineno="73"><highlight class="normal"><sp/><sp/></highlight></codeline> <codeline lineno="74"><highlight class="normal"><sp/><sp/><ref refid="device_8h_1256b750ab99e3be9b83a9bfd37a22388" kindref="member">device_add</ref>(0,</highlight><highlight class="charliteral">'c'</highlight><highlight class="normal">,devInfo);</highlight></codeline> <codeline lineno="75"><highlight class="normal"><sp/><sp/><ref refid="devfs_8c_1d568bae84bef3691539f1b1d0f6a54b4" kindref="member">devfs_makeNode</ref>(</highlight><highlight class="stringliteral">"fd0"</highlight><highlight class="normal">,</highlight><highlight class="charliteral">'b'</highlight><highlight class="normal">,0x0,0x0);</highlight></codeline> <codeline lineno="76"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(0x0);</highlight></codeline> <codeline lineno="77"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="78"><highlight class="normal"></highlight></codeline> <codeline lineno="79"><highlight class="normal"></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="80"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">".globl<sp/>floppyIsr<sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="81"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"floppyIsr:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="82"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pusha<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="83"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%ss<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="84"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%ds<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="85"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%es<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="86"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%fs<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="87"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>push<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="88"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>call<sp/>floppyIsrhndlr<sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="89"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%gs<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="90"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%fs<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight></codeline> <codeline lineno="91"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%es<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="92"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%ds<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="93"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>pop<sp/>%ss<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="94"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>popa<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="95"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>iret<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="96"><highlight class="normal"><sp/><sp/>);</highlight></codeline> <codeline lineno="97"><highlight class="normal"></highlight></codeline> <codeline lineno="98" refid="fdc_8c_15042dfaf2327990b6d1e1a7d3e01751c" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_15042dfaf2327990b6d1e1a7d3e01751c" kindref="member">floppyIsrhndlr</ref>()<sp/>{</highlight></codeline> <codeline lineno="99"><highlight class="normal"><sp/><sp/><ref refid="fdc_8c_13041fe08ed5976302158f2668249f8b2" kindref="member">done</ref><sp/>=<sp/><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>;</highlight></codeline> <codeline lineno="100"><highlight class="normal"><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(0<ref refid="start_8S_162df326d54f8b2ece412319c4360ef3e" kindref="member">x20</ref>,0<ref refid="start_8S_162df326d54f8b2ece412319c4360ef3e" kindref="member">x20</ref>);</highlight></codeline> <codeline lineno="101"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="102"><highlight class="normal"></highlight></codeline> <codeline lineno="103" refid="fdc_8c_1e708fa84d19a72e77185b3a214e81573" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="types_8h_13832cc814f0e7129add9a1cf7201c7ca" kindref="member">Int8</ref>)<sp/>{</highlight></codeline> <codeline lineno="104"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">volatile</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>msr;</highlight></codeline> <codeline lineno="105"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>tmo;</highlight></codeline> <codeline lineno="106"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(tmo=0;tmo<128;tmo++)<sp/>{</highlight></codeline> <codeline lineno="107"><highlight class="normal"><sp/><sp/><sp/><sp/>msr<sp/>=<sp/><ref refid="io_8h_177b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(<ref refid="fdc_8h_18ede3d2b611c5ae0d74bac02a68f998a" kindref="member">fdcMsr</ref>);</highlight></codeline> <codeline lineno="108"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((msr<sp/>&<sp/>0xc0)<sp/>==<sp/>0x80)<sp/>{</highlight></codeline> <codeline lineno="109"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(<ref refid="fdc_8h_1298d327024dc99847e9064de3aa4388a" kindref="member">fdcData</ref>,Int8);</highlight></codeline> <codeline lineno="110"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="111"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="112"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_177b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(0x80);</highlight></codeline> <codeline lineno="113"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="114"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="115"><highlight class="normal"></highlight></codeline> <codeline lineno="116" refid="fdc_8c_1e266cdb34b69c65cfc108bbc72a4e3ff" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_1e266cdb34b69c65cfc108bbc72a4e3ff" kindref="member">getByte</ref>()<sp/>{</highlight></codeline> <codeline lineno="117"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">volatile</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>msr;</highlight></codeline> <codeline lineno="118"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>tmo;</highlight></codeline> <codeline lineno="119"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(tmo=0;tmo<128;tmo++)<sp/>{</highlight></codeline> <codeline lineno="120"><highlight class="normal"><sp/><sp/><sp/><sp/>msr<sp/>=<sp/><ref refid="io_8h_177b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(<ref refid="fdc_8h_18ede3d2b611c5ae0d74bac02a68f998a" kindref="member">fdcMsr</ref>);</highlight></codeline> <codeline lineno="121"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((msr<sp/>&<sp/>0xd0)<sp/>==<sp/>0xd0)<sp/>{</highlight></codeline> <codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="io_8h_177b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(<ref refid="fdc_8h_1298d327024dc99847e9064de3aa4388a" kindref="member">fdcData</ref>);</highlight></codeline> <codeline lineno="123"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="124"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_177b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(0x80);</highlight></codeline> <codeline lineno="125"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="126"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(-1);</highlight></codeline> <codeline lineno="127"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="128"><highlight class="normal"></highlight></codeline> <codeline lineno="129" refid="fdc_8c_19d92103f483df5da1a07402347739e44" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_19d92103f483df5da1a07402347739e44" kindref="member">fdcRw</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>block,<ref refid="types_8h_13832cc814f0e7129add9a1cf7201c7ca" kindref="member">Int8</ref><sp/>*blockBuffer,</highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="gen__calls_8h_15eff3a25d417fafce7c4f211db219ca2" kindref="member">read</ref>,</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>numSectors)<sp/>{</highlight></codeline> <codeline lineno="130"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>head<sp/>=<sp/>0x0,track<sp/>=<sp/>0x0,sector<sp/>=<sp/>0x0,tries=<sp/>0x0,<sp/>copyCount<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="131"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*p_tbaddr<sp/>=<sp/>(</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*)0x80000;</highlight></codeline> <codeline lineno="132"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*p_blockbuff<sp/>=<sp/>blockBuffer;</highlight></codeline> <codeline lineno="133"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//kprintf("Block:<sp/>[%i]\n",block);</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="134"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_1a0f8325f93de9409e403e620f914e69f" kindref="member">block2Hts</ref>(block,&head,&track,&sector);</highlight></codeline> <codeline lineno="135"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_194483feb4903fca9643813faae8a76ee" kindref="member">motorOn</ref>();</highlight></codeline> <codeline lineno="136"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!read<sp/>&&<sp/>blockBuffer)<sp/>{</highlight></codeline> <codeline lineno="137"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>copy<sp/>data<sp/>from<sp/>data<sp/>buffer<sp/>into<sp/>track<sp/>buffer<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="138"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(copyCount=0;<sp/>copyCount<(numSectors*512);<sp/>copyCount++)<sp/>{</highlight></codeline> <codeline lineno="139"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>*p_tbaddr<sp/>=<sp/>*p_blockbuff;</highlight></codeline> <codeline lineno="140"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>p_blockbuff++;</highlight></codeline> <codeline lineno="141"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>p_tbaddr++;</highlight></codeline> <codeline lineno="142"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="143"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="144"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(tries<sp/>=<sp/>0;tries<sp/><<sp/>3;tries++)<sp/>{</highlight></codeline> <codeline lineno="145"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="io_8h_177b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(<ref refid="fdc_8h_193ff9547b61a14618c87c5639a1252c5" kindref="member">fdcDir</ref>)<sp/>&<sp/>0x80)<sp/>{</highlight></codeline> <codeline lineno="146"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="fdc_8c_1ee050d94ea7b1ff201263f7f7bfbbefc" kindref="member">diskChange</ref><sp/>=<sp/><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>;</highlight></codeline> <codeline lineno="147"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="fdc_8h_15886a896e5f0361f36b40d007db6e683" kindref="member">seek</ref>(1);<sp/><sp/></highlight><highlight class="comment">/*<sp/>clear<sp/>"disk<sp/>change"<sp/>status<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="148"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="fdc_8h_12a16ea9e09b5f3dc2a559351afdc75f3" kindref="member">recalibrate</ref>();</highlight></codeline> <codeline lineno="149"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="fdc_8h_1044fc0dea0fb35e6fab7f3c0badea2c9" kindref="member">motorOff</ref>();</highlight></codeline> <codeline lineno="150"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="video_8h_15429378b96a24fadfd2d1f8d777eb95a" kindref="member">kprint</ref>(</highlight><highlight class="stringliteral">"FDC:<sp/>Disk<sp/>change<sp/>detected.<sp/>Trying<sp/>again.\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="151"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_19d92103f483df5da1a07402347739e44" kindref="member">fdcRw</ref>(block,<sp/>blockBuffer,<sp/>read,<sp/>numSectors);</highlight></codeline> <codeline lineno="152"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="153"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!<ref refid="fdc_8h_15886a896e5f0361f36b40d007db6e683" kindref="member">seek</ref>(track))<sp/>{</highlight></codeline> <codeline lineno="154"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="fdc_8h_1044fc0dea0fb35e6fab7f3c0badea2c9" kindref="member">motorOff</ref>();</highlight></codeline> <codeline lineno="155"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"FDC:<sp/>Error<sp/>seeking<sp/>to<sp/>track<sp/>[%i]\n"</highlight><highlight class="normal">,block);</highlight></codeline> <codeline lineno="156"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a" kindref="member">FALSE</ref>;</highlight></codeline> <codeline lineno="157"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="158"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(<ref refid="fdc_8h_1bcb9230a76b72528226c49a520db19f0" kindref="member">fdcCcr</ref>,0);</highlight></codeline> <codeline lineno="159"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(read)<sp/>{</highlight></codeline> <codeline lineno="160"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="dma_8h_17e2aa65e3e12777006ad192f7ff8bb5a" kindref="member">dmaXfer</ref>(2,<ref refid="fdc_8c_14235a63d122daa0852a95529c2f93498" kindref="member">tbaddr</ref>,numSectors*512,<ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a" kindref="member">FALSE</ref>);</highlight></codeline> <codeline lineno="161"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(<ref refid="fdc_8h_16f35816c0b01ac39832de24459d82e27" kindref="member">cmdRead</ref>);</highlight></codeline> <codeline lineno="162"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="163"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline> <codeline lineno="164"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="dma_8h_17e2aa65e3e12777006ad192f7ff8bb5a" kindref="member">dmaXfer</ref>(2,<ref refid="fdc_8c_14235a63d122daa0852a95529c2f93498" kindref="member">tbaddr</ref>,numSectors*512,<ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>);</highlight></codeline> <codeline lineno="165"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(<ref refid="fdc_8h_1fcfbcbee1143a2a689afc3a656646bad" kindref="member">cmdWrite</ref>);</highlight></codeline> <codeline lineno="166"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="167"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(head<sp/><<<sp/>2);</highlight></codeline> <codeline lineno="168"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(track);</highlight></codeline> <codeline lineno="169"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(head);</highlight></codeline> <codeline lineno="170"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(sector);</highlight></codeline> <codeline lineno="171"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(2);<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>512<sp/>Int8s/sector<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="172"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(<ref refid="fdc_8c_1af7080152f82d659c32dd37e1727c32d" kindref="member">geometry</ref>.<ref refid="structDrvGeom_1a8dd21b2e6459ec0fabd9fe49835646a" kindref="member">spt</ref>);</highlight></codeline> <codeline lineno="173"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="fdc_8c_1af7080152f82d659c32dd37e1727c32d" kindref="member">geometry</ref>.<ref refid="structDrvGeom_1a8dd21b2e6459ec0fabd9fe49835646a" kindref="member">spt</ref><sp/>==<sp/><ref refid="fdc_8h_1874c835339ecb6a4a5fdd7aab7bfbe02" kindref="member">dg144Spt</ref>)<sp/>{</highlight></codeline> <codeline lineno="174"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(<ref refid="fdc_8h_195339d9d677a8ac74a7a7459ad130739" kindref="member">dg144Gap3rw</ref>);<sp/><sp/></highlight><highlight class="comment">/*<sp/>gap<sp/>3<sp/>size<sp/>for<sp/>1.44M<sp/>read/write<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="175"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="176"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline> <codeline lineno="177"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(<ref refid="fdc_8h_151916e330bac103bdf860461ae359e1e" kindref="member">dg168Gap3rw</ref>);<sp/><sp/></highlight><highlight class="comment">/*<sp/>gap<sp/>3<sp/>size<sp/>for<sp/>1.68M<sp/>read/write<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="178"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="179"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(0xff);<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>DTL<sp/>=<sp/>unused<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="180"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!<ref refid="fdc_8h_1f5b6e5123d27381ca120b7b4fea7b242" kindref="member">waitFdc</ref>(<ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>))<sp/>{</highlight></codeline> <codeline lineno="181"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="video_8h_15429378b96a24fadfd2d1f8d777eb95a" kindref="member">kprint</ref>(</highlight><highlight class="stringliteral">"Timed<sp/>out,<sp/>trying<sp/>operation<sp/>again<sp/>after<sp/>reset()\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="182"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="fdc_8h_13aea9deb2a0bfea9ff05a898f4822e31" kindref="member">reset</ref>();</highlight></codeline> <codeline lineno="183"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_19d92103f483df5da1a07402347739e44" kindref="member">fdcRw</ref>(block,<sp/>blockBuffer,<sp/>read,<sp/>numSectors);</highlight></codeline> <codeline lineno="184"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="185"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((<ref refid="fdc_8c_1e2746d1bf47d4f690105d083b966fa82" kindref="member">status</ref>[0]<sp/>&<sp/>0xc0)<sp/>==<sp/>0)<sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;<sp/><sp/><sp/></highlight><highlight class="comment">/*<sp/>worked!<sp/>outta<sp/>here!<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="186"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="fdc_8h_12a16ea9e09b5f3dc2a559351afdc75f3" kindref="member">recalibrate</ref>();<sp/><sp/></highlight><highlight class="comment">/*<sp/>oops,<sp/>try<sp/>again...<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="187"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="188"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_1044fc0dea0fb35e6fab7f3c0badea2c9" kindref="member">motorOff</ref>();</highlight></codeline> <codeline lineno="189"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(read<sp/>&&<sp/>blockBuffer)<sp/>{</highlight></codeline> <codeline lineno="190"><highlight class="normal"><sp/><sp/><sp/><sp/>p_blockbuff<sp/>=<sp/>blockBuffer;</highlight></codeline> <codeline lineno="191"><highlight class="normal"><sp/><sp/><sp/><sp/>p_tbaddr<sp/>=<sp/>(</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*)<sp/>0x80000;</highlight></codeline> <codeline lineno="192"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(copyCount=0x0;<sp/>copyCount<(numSectors*512);<sp/>copyCount++)<sp/>{</highlight></codeline> <codeline lineno="193"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>*p_blockbuff<sp/>=<sp/>*p_tbaddr;</highlight></codeline> <codeline lineno="194"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>p_blockbuff++;</highlight></codeline> <codeline lineno="195"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>p_tbaddr++;</highlight></codeline> <codeline lineno="196"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="197"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="198"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(tries<sp/>!=<sp/>3);</highlight></codeline> <codeline lineno="199"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="200"><highlight class="normal"></highlight></codeline> <codeline lineno="201" refid="fdc_8c_1a0f8325f93de9409e403e620f914e69f" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_1a0f8325f93de9409e403e620f914e69f" kindref="member">block2Hts</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>block,</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*head,</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*track,</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>*sector)<sp/>{</highlight></codeline> <codeline lineno="202"><highlight class="normal"><sp/><sp/>*head<sp/>=<sp/>(block<sp/>%<sp/>(<ref refid="fdc_8c_1af7080152f82d659c32dd37e1727c32d" kindref="member">geometry</ref>.<ref refid="structDrvGeom_1a8dd21b2e6459ec0fabd9fe49835646a" kindref="member">spt</ref><sp/>*<sp/><ref refid="fdc_8c_1af7080152f82d659c32dd37e1727c32d" kindref="member">geometry</ref>.<ref refid="structDrvGeom_1edb24f8c9f3ae872be1cb104854dee1b" kindref="member">heads</ref>))<sp/>/<sp/>(<ref refid="fdc_8c_1af7080152f82d659c32dd37e1727c32d" kindref="member">geometry</ref>.<ref refid="structDrvGeom_1a8dd21b2e6459ec0fabd9fe49835646a" kindref="member">spt</ref>);</highlight></codeline> <codeline lineno="203"><highlight class="normal"><sp/><sp/>*track<sp/>=<sp/>block<sp/>/<sp/>(<ref refid="fdc_8c_1af7080152f82d659c32dd37e1727c32d" kindref="member">geometry</ref>.<ref refid="structDrvGeom_1a8dd21b2e6459ec0fabd9fe49835646a" kindref="member">spt</ref><sp/>*<sp/><ref refid="fdc_8c_1af7080152f82d659c32dd37e1727c32d" kindref="member">geometry</ref>.<ref refid="structDrvGeom_1edb24f8c9f3ae872be1cb104854dee1b" kindref="member">heads</ref>);</highlight></codeline> <codeline lineno="204"><highlight class="normal"><sp/><sp/>*sector<sp/>=<sp/>block<sp/>%<sp/><ref refid="fdc_8c_1af7080152f82d659c32dd37e1727c32d" kindref="member">geometry</ref>.<ref refid="structDrvGeom_1a8dd21b2e6459ec0fabd9fe49835646a" kindref="member">spt</ref><sp/>+<sp/>1;</highlight></codeline> <codeline lineno="205"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="206"><highlight class="normal"></highlight></codeline> <codeline lineno="207" refid="fdc_8c_194483feb4903fca9643813faae8a76ee" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_194483feb4903fca9643813faae8a76ee" kindref="member">motorOn</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline> <codeline lineno="208"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="fdc_8c_17d4d19cb4b75718174baa280e7ceea9d" kindref="member">motor</ref><sp/>==<sp/><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a" kindref="member">FALSE</ref>)<sp/>{</highlight></codeline> <codeline lineno="209"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(<ref refid="fdc_8h_1e3bc9df62f197b42804259efb8ba44ec" kindref="member">fdcDor</ref>,0x1c);</highlight></codeline> <codeline lineno="210"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="fdc_8c_17d4d19cb4b75718174baa280e7ceea9d" kindref="member">motor</ref><sp/>=<sp/><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>;</highlight></codeline> <codeline lineno="211"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="212"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="213"><highlight class="normal"></highlight></codeline> <codeline lineno="214" refid="fdc_8c_1044fc0dea0fb35e6fab7f3c0badea2c9" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_1044fc0dea0fb35e6fab7f3c0badea2c9" kindref="member">motorOff</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline> <codeline lineno="215"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="fdc_8c_17d4d19cb4b75718174baa280e7ceea9d" kindref="member">motor</ref><sp/>==<sp/><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>)<sp/>{</highlight></codeline> <codeline lineno="216"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//outportByte(fdcDor,0x0);</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="217"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//outportByte(fdcDor,0x0C);</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="218"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="fdc_8c_17d4d19cb4b75718174baa280e7ceea9d" kindref="member">motor</ref><sp/>=<sp/><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a" kindref="member">FALSE</ref>;</highlight></codeline> <codeline lineno="219"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="220"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="221"><highlight class="normal"></highlight></codeline> <codeline lineno="222" refid="fdc_8c_15886a896e5f0361f36b40d007db6e683" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_15886a896e5f0361f36b40d007db6e683" kindref="member">seek</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>track)<sp/>{</highlight></codeline> <codeline lineno="223"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="fdc_8c_1bc6a2191073ccb560aaa9246c336fdd9" kindref="member">fdcTrack</ref><sp/>==<sp/>track)<sp/>{</highlight></codeline> <codeline lineno="224"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(<ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>);</highlight></codeline> <codeline lineno="225"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="226"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(<ref refid="fdc_8h_1e2d2411a8ccdc868ab718da2b15348a9" kindref="member">cmdSeek</ref>);</highlight></codeline> <codeline lineno="227"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(0);</highlight></codeline> <codeline lineno="228"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(track);</highlight></codeline> <codeline lineno="229"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!<ref refid="fdc_8h_1f5b6e5123d27381ca120b7b4fea7b242" kindref="member">waitFdc</ref>(<ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>))<sp/>{</highlight></codeline> <codeline lineno="230"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kprint_8h_1b2761bdf0cca73ad0fb5880895210cd8" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"wait<sp/>fdc<sp/>failed\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="231"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(<ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a" kindref="member">FALSE</ref>);</highlight></codeline> <codeline lineno="232"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="233"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((<ref refid="fdc_8c_15772ef6ca96f12ff8ed997ce8bdbc6d7" kindref="member">sr0</ref><sp/>!=<sp/>0<ref refid="start_8S_162df326d54f8b2ece412319c4360ef3e" kindref="member">x20</ref>)<sp/>||<sp/>(<ref refid="fdc_8c_1bc6a2191073ccb560aaa9246c336fdd9" kindref="member">fdcTrack</ref><sp/>!=<sp/>track))<sp/>{</highlight></codeline> <codeline lineno="234"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(<ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a" kindref="member">FALSE</ref>);</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/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(<ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>);</highlight></codeline> <codeline lineno="238"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="239"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="240"><highlight class="normal"></highlight></codeline> <codeline lineno="241" refid="fdc_8c_1a03242a5e44c4f2d10e15d296aca8c6b" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_1a03242a5e44c4f2d10e15d296aca8c6b" kindref="member">readBlock</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>block,<ref refid="types_8h_13832cc814f0e7129add9a1cf7201c7ca" kindref="member">Int8</ref><sp/>*blockBuffer,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>numSectors)<sp/>{</highlight></codeline> <codeline lineno="242"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>result<sp/>=<sp/>0x0,loop<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="243"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(numSectors<sp/>><sp/>1)<sp/>{</highlight></codeline> <codeline lineno="244"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(loop=0;<sp/>loop<numSectors;<sp/>loop++)<sp/>{</highlight></codeline> <codeline lineno="245"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>result<sp/>=<sp/><ref refid="fdc_8h_19d92103f483df5da1a07402347739e44" kindref="member">fdcRw</ref>(block+loop,<sp/>blockBuffer+(loop*512),<sp/><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>,<sp/>1);</highlight></codeline> <codeline lineno="246"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="247"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>result;</highlight></codeline> <codeline lineno="248"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="249"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_19d92103f483df5da1a07402347739e44" kindref="member">fdcRw</ref>(block,blockBuffer,<ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>,numSectors);</highlight></codeline> <codeline lineno="250"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="251"><highlight class="normal"></highlight></codeline> <codeline lineno="252" refid="fdc_8c_1ebbcd7bc8695e888491b97b5bf27bd9c" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_1ebbcd7bc8695e888491b97b5bf27bd9c" kindref="member">writeBlock</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>block,<ref refid="types_8h_13832cc814f0e7129add9a1cf7201c7ca" kindref="member">Int8</ref><sp/>*blockBuffer,<sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">long</highlight><highlight class="normal"><sp/>numSectors)<sp/>{</highlight></codeline> <codeline lineno="253"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_19d92103f483df5da1a07402347739e44" kindref="member">fdcRw</ref>(block,blockBuffer,<ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a" kindref="member">FALSE</ref>,<sp/>numSectors);</highlight></codeline> <codeline lineno="254"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="255"><highlight class="normal"></highlight></codeline> <codeline lineno="256" refid="fdc_8c_1f5b6e5123d27381ca120b7b4fea7b242" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_1f5b6e5123d27381ca120b7b4fea7b242" kindref="member">waitFdc</ref>(</highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>sensei)<sp/>{</highlight></codeline> <codeline lineno="257"><highlight class="normal"><sp/><sp/><ref refid="fdc_8c_1dea4d22e56b537ae3e8a8dd9b1555ce4" kindref="member">timeOut</ref><sp/>=<sp/>50000;</highlight></codeline> <codeline lineno="258"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(!<ref refid="fdc_8c_13041fe08ed5976302158f2668249f8b2" kindref="member">done</ref><sp/>&&<sp/><ref refid="fdc_8c_1dea4d22e56b537ae3e8a8dd9b1555ce4" kindref="member">timeOut</ref>);</highlight></codeline> <codeline lineno="259"><highlight class="normal"><sp/><sp/><ref refid="fdc_8c_1ee71be8badf158b1d3fc7ea1a47f82e7" kindref="member">statSize</ref><sp/>=<sp/>0;</highlight></codeline> <codeline lineno="260"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>((<ref refid="fdc_8c_1ee71be8badf158b1d3fc7ea1a47f82e7" kindref="member">statSize</ref><sp/><<sp/>7)<sp/>&&<sp/>(<ref refid="io_8h_177b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(<ref refid="fdc_8h_18ede3d2b611c5ae0d74bac02a68f998a" kindref="member">fdcMsr</ref>)<sp/>&<sp/>(1<<4)))<sp/>{</highlight></codeline> <codeline lineno="261"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="fdc_8c_1e2746d1bf47d4f690105d083b966fa82" kindref="member">status</ref>[(int)<ref refid="fdc_8c_1ee71be8badf158b1d3fc7ea1a47f82e7" kindref="member">statSize</ref>++]<sp/>=<sp/><ref refid="fdc_8h_1e266cdb34b69c65cfc108bbc72a4e3ff" kindref="member">getByte</ref>();</highlight></codeline> <codeline lineno="262"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="263"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(sensei)<sp/>{</highlight></codeline> <codeline lineno="264"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(<ref refid="fdc_8h_16afd950ba65e51d77abf2158216f0284" kindref="member">cmdSensei</ref>);</highlight></codeline> <codeline lineno="265"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="fdc_8c_15772ef6ca96f12ff8ed997ce8bdbc6d7" kindref="member">sr0</ref><sp/>=<sp/><ref refid="fdc_8h_1e266cdb34b69c65cfc108bbc72a4e3ff" kindref="member">getByte</ref>();</highlight></codeline> <codeline lineno="266"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="fdc_8c_1bc6a2191073ccb560aaa9246c336fdd9" kindref="member">fdcTrack</ref><sp/>=<sp/><ref refid="fdc_8h_1e266cdb34b69c65cfc108bbc72a4e3ff" kindref="member">getByte</ref>();</highlight></codeline> <codeline lineno="267"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="268"><highlight class="normal"><sp/><sp/><ref refid="fdc_8c_13041fe08ed5976302158f2668249f8b2" kindref="member">done</ref><sp/>=<sp/><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a" kindref="member">FALSE</ref>;</highlight></codeline> <codeline lineno="269"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(!<ref refid="fdc_8c_1dea4d22e56b537ae3e8a8dd9b1555ce4" kindref="member">timeOut</ref>)<sp/>{</highlight></codeline> <codeline lineno="270"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="io_8h_177b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(<ref refid="fdc_8h_193ff9547b61a14618c87c5639a1252c5" kindref="member">fdcDir</ref>)<sp/>&<sp/>0x80)<sp/>{</highlight></codeline> <codeline lineno="271"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="fdc_8c_1ee050d94ea7b1ff201263f7f7bfbbefc" kindref="member">diskChange</ref><sp/>=<sp/><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>;</highlight></codeline> <codeline lineno="272"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="273"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(<ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a" kindref="member">FALSE</ref>);</highlight></codeline> <codeline lineno="274"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="275"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline> <codeline lineno="276"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">(<ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>);</highlight></codeline> <codeline lineno="277"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="278"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="279"><highlight class="normal"></highlight></codeline> <codeline lineno="280" refid="fdc_8c_12a16ea9e09b5f3dc2a559351afdc75f3" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_12a16ea9e09b5f3dc2a559351afdc75f3" kindref="member">recalibrate</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline> <codeline lineno="281"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_194483feb4903fca9643813faae8a76ee" kindref="member">motorOn</ref>();</highlight></codeline> <codeline lineno="282"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(<ref refid="fdc_8h_18a2fef7d1ed07757e099b8c7b29bfb09" kindref="member">cmdRecal</ref>);</highlight></codeline> <codeline lineno="283"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(0);</highlight></codeline> <codeline lineno="284"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_1f5b6e5123d27381ca120b7b4fea7b242" kindref="member">waitFdc</ref>(<ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>);</highlight></codeline> <codeline lineno="285"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_1044fc0dea0fb35e6fab7f3c0badea2c9" kindref="member">motorOff</ref>();</highlight></codeline> <codeline lineno="286"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="287"><highlight class="normal"></highlight></codeline> <codeline lineno="288" refid="fdc_8c_13aea9deb2a0bfea9ff05a898f4822e31" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_13aea9deb2a0bfea9ff05a898f4822e31" kindref="member">reset</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal">)<sp/>{</highlight></codeline> <codeline lineno="289"><highlight class="normal"><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(<ref refid="fdc_8h_1e3bc9df62f197b42804259efb8ba44ec" kindref="member">fdcDor</ref>,0);</highlight></codeline> <codeline lineno="290"><highlight class="normal"><sp/><sp/><ref refid="fdc_8c_17d4d19cb4b75718174baa280e7ceea9d" kindref="member">motor</ref><sp/>=<sp/><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a" kindref="member">FALSE</ref>;</highlight></codeline> <codeline lineno="291"><highlight class="normal"><sp/><sp/><ref refid="io_8h_18acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(<ref refid="fdc_8h_1e3bc9df62f197b42804259efb8ba44ec" kindref="member">fdcDor</ref>,0x0c);</highlight></codeline> <codeline lineno="292"><highlight class="normal"><sp/><sp/><ref refid="fdc_8c_13041fe08ed5976302158f2668249f8b2" kindref="member">done</ref><sp/>=<sp/><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>;</highlight></codeline> <codeline lineno="293"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_1f5b6e5123d27381ca120b7b4fea7b242" kindref="member">waitFdc</ref>(<ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a82764c3079aea4e60c80e45befbb839" kindref="member">TRUE</ref>);</highlight></codeline> <codeline lineno="294"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(<ref refid="fdc_8h_16003c8e12dd1e4f765279854f016c0ae" kindref="member">cmdSpecify</ref>);</highlight></codeline> <codeline lineno="295"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(0xdf);</highlight></codeline> <codeline lineno="296"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_1e708fa84d19a72e77185b3a214e81573" kindref="member">sendByte</ref>(0x02);</highlight></codeline> <codeline lineno="297"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_15886a896e5f0361f36b40d007db6e683" kindref="member">seek</ref>(1);</highlight></codeline> <codeline lineno="298"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_12a16ea9e09b5f3dc2a559351afdc75f3" kindref="member">recalibrate</ref>();</highlight></codeline> <codeline lineno="299"><highlight class="normal"><sp/><sp/><ref refid="fdc_8c_1ee050d94ea7b1ff201263f7f7bfbbefc" kindref="member">diskChange</ref><sp/>=<sp/><ref refid="types_8h_1f6a258d8f3ee5206d682d799316314b1a1e095cc966dbecf6a0d8aad75348d1a" kindref="member">FALSE</ref>;</highlight></codeline> <codeline lineno="300"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="301"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="302"><highlight class="normal"></highlight></codeline> <codeline lineno="303" refid="fdc_8c_11f2029ff3278c4b819c4420c168cc082" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_1fbac0e2409458a8fda9ff689ecd31de9" kindref="member">fdcRead</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*<ref refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" kindref="member">info</ref>,</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="304"><highlight class="normal"><sp/><sp/><ref refid="spinlock_8h_12cd9a4502680fb8e7f0fe6b029e558b1" kindref="member">spinLock</ref>(&<ref refid="fdc_8c_1bc402fcf53fee3aeee8c7a543727d183" kindref="member">fdcSpinLock</ref>);</highlight></codeline> <codeline lineno="305"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_1a03242a5e44c4f2d10e15d296aca8c6b" kindref="member">readBlock</ref>(startSector,baseAddr,sectorCount);</highlight></codeline> <codeline lineno="306"><highlight class="normal"><sp/><sp/><ref refid="spinlock_8h_1dd996cbbb3b9826dd9c8cf02b66a4c65" kindref="member">spinUnlock</ref>(&<ref refid="fdc_8c_1bc402fcf53fee3aeee8c7a543727d183" kindref="member">fdcSpinLock</ref>);</highlight></codeline> <codeline lineno="307"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="308"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="309" refid="fdc_8c_1cc9e5f35deea53f5b68798269b9be7c0" refkind="member"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="fdc_8h_153a979dbcd632f57a4b004f66332f981" kindref="member">fdcWrite</ref>(</highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*<ref refid="structdevice__interface_1eacb2f431b14ddd1e9fe34db278dfc9e" kindref="member">info</ref>,</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){</highlight></codeline> <codeline lineno="310"><highlight class="normal"><sp/><sp/><ref refid="fdc_8h_1ebbcd7bc8695e888491b97b5bf27bd9c" kindref="member">writeBlock</ref>(startSector,baseAddr,sectorCount);</highlight></codeline> <codeline lineno="311"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="312"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="313"><highlight class="normal"></highlight></codeline> <codeline lineno="314"><highlight class="normal"></highlight><highlight class="comment">/***</highlight></codeline> <codeline lineno="315"><highlight class="comment"></highlight></codeline> <codeline lineno="316"><highlight class="comment"><sp/>$Log: fdc_8c.xml,v $ <codeline lineno="316"><highlight class="comment"><sp/>Revision 1.6 2006/12/19 14:12:51 reddawg <codeline lineno="316"><highlight class="comment"><sp/>rtld-elf almost workign <codeline lineno="316"><highlight class="comment"><sp/></highlight></codeline> <codeline lineno="317"><highlight class="comment"><sp/>Revision<sp/>1.1.1.1<sp/><sp/>2006/06/01<sp/>12:46:12<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="318"><highlight class="comment"><sp/>ubix2</highlight></codeline> <codeline lineno="319"><highlight class="comment"></highlight></codeline> <codeline lineno="320"><highlight class="comment"><sp/>Revision<sp/>1.2<sp/><sp/>2005/10/12<sp/>00:13:37<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="321"><highlight class="comment"><sp/>Removed</highlight></codeline> <codeline lineno="322"><highlight class="comment"></highlight></codeline> <codeline lineno="323"><highlight class="comment"><sp/>Revision<sp/>1.1.1.1<sp/><sp/>2005/09/26<sp/>17:24:01<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="324"><highlight class="comment"><sp/>no<sp/>message</highlight></codeline> <codeline lineno="325"><highlight class="comment"></highlight></codeline> <codeline lineno="326"><highlight class="comment"><sp/>Revision<sp/>1.24<sp/><sp/>2004/09/07<sp/>21:54:38<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="327"><highlight class="comment"><sp/>ok<sp/>reverted<sp/>back<sp/>to<sp/>old<sp/>scheduling<sp/>for<sp/>now....</highlight></codeline> <codeline lineno="328"><highlight class="comment"></highlight></codeline> <codeline lineno="329"><highlight class="comment"><sp/>Revision<sp/>1.23<sp/><sp/>2004/09/06<sp/>15:13:25<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="330"><highlight class="comment"><sp/>Last<sp/>commit<sp/>before<sp/>FreeBSD<sp/>6.0</highlight></codeline> <codeline lineno="331"><highlight class="comment"></highlight></codeline> <codeline lineno="332"><highlight class="comment"><sp/>Revision<sp/>1.22<sp/><sp/>2004/08/21<sp/>20:06:28<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="333"><highlight class="comment"><sp/>ok<sp/>check<sp/>out<sp/>exec.c</highlight></codeline> <codeline lineno="334"><highlight class="comment"></highlight></codeline> <codeline lineno="335"><highlight class="comment"><sp/>Revision<sp/>1.21<sp/><sp/>2004/08/15<sp/>16:47:49<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="336"><highlight class="comment"><sp/>Fixed</highlight></codeline> <codeline lineno="337"><highlight class="comment"></highlight></codeline> <codeline lineno="338"><highlight class="comment"><sp/>Revision<sp/>1.20<sp/><sp/>2004/08/15<sp/>00:33:02<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="339"><highlight class="comment"><sp/>Wow<sp/>the<sp/>ide<sp/>driver<sp/>works<sp/>again</highlight></codeline> <codeline lineno="340"><highlight class="comment"></highlight></codeline> <codeline lineno="341"><highlight class="comment"><sp/>Revision<sp/>1.19<sp/><sp/>2004/08/01<sp/>20:40:45<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="342"><highlight class="comment"><sp/>Net<sp/>related<sp/>fixes</highlight></codeline> <codeline lineno="343"><highlight class="comment"></highlight></codeline> <codeline lineno="344"><highlight class="comment"><sp/>Revision<sp/>1.18<sp/><sp/>2004/07/29<sp/>21:32:16<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="345"><highlight class="comment"><sp/>My<sp/>quick<sp/>lunchs<sp/>breaks<sp/>worth<sp/>of<sp/>updates....</highlight></codeline> <codeline lineno="346"><highlight class="comment"></highlight></codeline> <codeline lineno="347"><highlight class="comment"><sp/>Revision<sp/>1.17<sp/><sp/>2004/07/27<sp/>08:03:36<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="348"><highlight class="comment"><sp/>chg:<sp/>stopped<sp/>push<sp/>all<sp/>these<sp/>extra<sp/>registers<sp/>I<sp/>can't<sp/>find<sp/>a<sp/>good<sp/>reason<sp/>as<sp/>to<sp/>why<sp/>I<sp/>was<sp/>doing<sp/>it</highlight></codeline> <codeline lineno="349"><highlight class="comment"></highlight></codeline> <codeline lineno="350"><highlight class="comment"><sp/>Revision<sp/>1.16<sp/><sp/>2004/07/22<sp/>17:32:25<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="351"><highlight class="comment"><sp/>I<sp/>broke<sp/>it<sp/>hopefully</highlight></codeline> <codeline lineno="352"><highlight class="comment"></highlight></codeline> <codeline lineno="353"><highlight class="comment"><sp/>Revision<sp/>1.15<sp/><sp/>2004/07/21<sp/>10:02:09<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="354"><highlight class="comment"><sp/>devfs:<sp/>renamed<sp/>functions</highlight></codeline> <codeline lineno="355"><highlight class="comment"><sp/>device<sp/>system:<sp/>renamed<sp/>functions</highlight></codeline> <codeline lineno="356"><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="357"><highlight class="comment"><sp/>strol:<sp/>fixed<sp/>definition</highlight></codeline> <codeline lineno="358"><highlight class="comment"><sp/>endtask:<sp/>made<sp/>it<sp/>print<sp/>out<sp/>freepage<sp/>debug<sp/>info</highlight></codeline> <codeline lineno="359"><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="360"><highlight class="comment"><sp/>ld:<sp/>fixed<sp/>a<sp/>pointer<sp/>conversion</highlight></codeline> <codeline lineno="361"><highlight class="comment"><sp/>file:<sp/>cleaned<sp/>up<sp/>a<sp/>few<sp/>unused<sp/>variables</highlight></codeline> <codeline lineno="362"><highlight class="comment"><sp/>sched:<sp/>broke<sp/>task<sp/>deletion</highlight></codeline> <codeline lineno="363"><highlight class="comment"><sp/>kprintf:<sp/>fixed<sp/>ogPrintf<sp/>definition</highlight></codeline> <codeline lineno="364"><highlight class="comment"></highlight></codeline> <codeline lineno="365"><highlight class="comment"><sp/>Revision<sp/>1.14<sp/><sp/>2004/07/17<sp/>02:38:31<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="366"><highlight class="comment"><sp/>Fixed<sp/>a<sp/>few<sp/>problems</highlight></codeline> <codeline lineno="367"><highlight class="comment"></highlight></codeline> <codeline lineno="368"><highlight class="comment"><sp/>Revision<sp/>1.13<sp/><sp/>2004/07/14<sp/>12:42:46<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="369"><highlight class="comment"><sp/>fdc:<sp/>fdcInit<sp/>to<sp/>fdc_init</highlight></codeline> <codeline lineno="370"><highlight class="comment"><sp/>Changed<sp/>Startup<sp/>Routines</highlight></codeline> <codeline lineno="371"><highlight class="comment"></highlight></codeline> <codeline lineno="372"><highlight class="comment"><sp/>Revision<sp/>1.12<sp/><sp/>2004/06/04<sp/>10:19:42<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="373"><highlight class="comment"><sp/>notes:<sp/>we<sp/>compile<sp/>again,<sp/>thank<sp/>g-d<sp/>anyways<sp/>i<sp/>was<sp/>about<sp/>to<sp/>cry</highlight></codeline> <codeline lineno="374"><highlight class="comment"></highlight></codeline> <codeline lineno="375"><highlight class="comment"><sp/>Revision<sp/>1.11<sp/><sp/>2004/05/20<sp/>22:51:09<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="376"><highlight class="comment"><sp/>Cleaned<sp/>Up<sp/>Warnings</highlight></codeline> <codeline lineno="377"><highlight class="comment"></highlight></codeline> <codeline lineno="378"><highlight class="comment"><sp/>Revision<sp/>1.10<sp/><sp/>2004/05/19<sp/>23:36:52<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="379"><highlight class="comment"><sp/>Bug<sp/>Fixes</highlight></codeline> <codeline lineno="380"><highlight class="comment"></highlight></codeline> <codeline lineno="381"><highlight class="comment"><sp/>Revision<sp/>1.9<sp/><sp/>2004/05/19<sp/>15:31:27<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="382"><highlight class="comment"><sp/>Fixed<sp/>up<sp/>the<sp/>rest<sp/>of<sp/>the<sp/>references</highlight></codeline> <codeline lineno="383"><highlight class="comment"></highlight></codeline> <codeline lineno="384"><highlight class="comment"><sp/>Revision<sp/>1.8<sp/><sp/>2004/05/19<sp/>15:26:33<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="385"><highlight class="comment"><sp/>Fixed<sp/>reference<sp/>issues<sp/>due<sp/>to<sp/>changes<sp/>in<sp/>driver<sp/>subsystem</highlight></codeline> <codeline lineno="386"><highlight class="comment"></highlight></codeline> <codeline lineno="387"><highlight class="comment"><sp/>Revision<sp/>1.7<sp/><sp/>2004/05/10<sp/>02:23:24<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="388"><highlight class="comment"><sp/>Minor<sp/>Changes<sp/>To<sp/>Source<sp/>Code<sp/>To<sp/>Prepare<sp/>It<sp/>For<sp/>Open<sp/>Source<sp/>Release</highlight></codeline> <codeline lineno="389"><highlight class="comment"></highlight></codeline> <codeline lineno="390"><highlight class="comment"><sp/>Revision<sp/>1.6<sp/><sp/>2004/04/30<sp/>14:16:04<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="391"><highlight class="comment"><sp/>Fixed<sp/>all<sp/>the<sp/>datatypes<sp/>to<sp/>be<sp/>consistant<sp/>uInt8,uInt16,uInt32,Int8,Int16,Int32</highlight></codeline> <codeline lineno="392"><highlight class="comment"></highlight></codeline> <codeline lineno="393"><highlight class="comment"><sp/>Revision<sp/>1.5<sp/><sp/>2004/04/29<sp/>15:29:20<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="394"><highlight class="comment"><sp/>Fixed<sp/>All<sp/>Running<sp/>Issues</highlight></codeline> <codeline lineno="395"><highlight class="comment"></highlight></codeline> <codeline lineno="396"><highlight class="comment"><sp/>Revision<sp/>1.4<sp/><sp/>2004/04/28<sp/>02:22:54<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="397"><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="398"><highlight class="comment"><sp/>all<sp/>around</highlight></codeline> <codeline lineno="399"><highlight class="comment"></highlight></codeline> <codeline lineno="400"><highlight class="comment"><sp/>Revision<sp/>1.3<sp/><sp/>2004/04/26<sp/>22:22:33<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="401"><highlight class="comment"><sp/>DevFS<sp/>now<sp/>uses<sp/>correct<sp/>size<sp/>of<sp/>device</highlight></codeline> <codeline lineno="402"><highlight class="comment"></highlight></codeline> <codeline lineno="403"><highlight class="comment"><sp/>Revision<sp/>1.2<sp/><sp/>2004/04/22<sp/>21:20:05<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="404"><highlight class="comment"><sp/>FDC<sp/>now<sp/>adds<sp/>drives<sp/>to<sp/>the<sp/>devfs</highlight></codeline> <codeline lineno="405"><highlight class="comment"></highlight></codeline> <codeline lineno="406"><highlight class="comment"><sp/>Revision<sp/>1.1.1.1<sp/><sp/>2004/04/15<sp/>12:07:09<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="407"><highlight class="comment"><sp/>UbixOS<sp/>v1.0</highlight></codeline> <codeline lineno="408"><highlight class="comment"></highlight></codeline> <codeline lineno="409"><highlight class="comment"><sp/>Revision<sp/>1.6<sp/><sp/>2004/04/13<sp/>16:36:33<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="410"><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="411"><highlight class="comment"></highlight></codeline> <codeline lineno="412"><highlight class="comment"><sp/>END</highlight></codeline> <codeline lineno="413"><highlight class="comment"><sp/>***/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="414"><highlight class="normal"></highlight></codeline> </programlisting> <location file="/usr/home/reddawg/source/ubix2/src/sys/isa/fdc.c"/> </compounddef> </doxygen>