<?xml version='1.0' encoding='UTF-8' standalone='no'?> <doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.8.16"> <compounddef id="ne2k_8c" kind="file" language="C++"> <compoundname>ne2k.c</compoundname> <includes refid="ne2k_8h" local="no">isa/ne2k.h</includes> <includes refid="netif_8h" local="no">net/netif.h</includes> <includes refid="8259_8h" local="no">isa/8259.h</includes> <includes refid="device_8old_8h" local="no">sys/device.old.h</includes> <includes refid="io_8h" local="no">sys/io.h</includes> <includes refid="idt_8h" local="no">sys/idt.h</includes> <includes refid="kmalloc_8h" local="no">lib/kmalloc.h</includes> <includes refid="kprintf_8h" local="no">lib/kprintf.h</includes> <includes refid="string_8h" local="no">string.h</includes> <includes refid="kpanic_8h" local="no">ubixos/kpanic.h</includes> <includes refid="vitals_8h" local="no">ubixos/vitals.h</includes> <includes refid="spinlock_8h" local="no">ubixos/spinlock.h</includes> <includes refid="assert_8h" local="no">assert.h</includes> <incdepgraph> <node id="53"> <label>ufs/ufs.h</label> <link refid="ufs_8h"/> <childnode refid="3" relation="include"> </childnode> <childnode refid="54" relation="include"> </childnode> </node> <node id="20"> <label>stdarg.h</label> <link refid="stdarg_8h"/> </node> <node id="21"> <label>ubixos/kpanic.h</label> <link refid="kpanic_8h"/> </node> <node id="18"> <label>sys/io.h</label> <link refid="io_8h"/> </node> <node id="10"> <label>sys/device.old.h</label> <link refid="device_8old_8h"/> <childnode refid="3" relation="include"> </childnode> </node> <node id="35"> <label>sys/gdt.h</label> <link refid="gdt_8h"/> </node> <node id="27"> <label>net/pbuf.h</label> <link refid="pbuf_8h"/> <childnode refid="12" relation="include"> </childnode> <childnode refid="22" relation="include"> </childnode> </node> <node id="57"> <label>net/net.h</label> <link refid="net_8h"/> <childnode refid="3" relation="include"> </childnode> <childnode refid="11" relation="include"> </childnode> </node> <node id="38"> <label>strings.h</label> <link refid="strings_8h"/> <childnode refid="3" relation="include"> </childnode> </node> <node id="32"> <label>net/priv/memp_priv.h</label> <link refid="memp__priv_8h"/> <childnode refid="12" relation="include"> </childnode> <childnode refid="29" relation="include"> </childnode> </node> <node id="46"> <label>i386/cpu.h</label> <link refid="i386_2cpu_8h"/> <childnode refid="3" relation="include"> </childnode> </node> <node id="34"> <label>sys/idt.h</label> <link refid="idt_8h"/> <childnode refid="3" relation="include"> </childnode> <childnode refid="35" relation="include"> </childnode> </node> <node id="5"> <label>sys/select.h</label> <link refid="select_8h"/> <childnode refid="6" relation="include"> </childnode> <childnode refid="4" relation="include"> </childnode> <childnode refid="7" relation="include"> </childnode> <childnode refid="8" relation="include"> </childnode> <childnode refid="9" relation="include"> </childnode> </node> <node id="49"> <label>vfs/inode.h</label> <link refid="inode_8h"/> <childnode refid="3" relation="include"> </childnode> <childnode refid="50" relation="include"> </childnode> <childnode refid="51" relation="include"> </childnode> <childnode refid="52" relation="include"> </childnode> <childnode refid="53" relation="include"> </childnode> </node> <node id="40"> <label>ubixos/spinlock.h</label> <link refid="spinlock_8h"/> <childnode refid="3" relation="include"> </childnode> </node> <node id="16"> <label>net/arch/cc.h</label> <link refid="cc_8h"/> <childnode refid="17" relation="include"> </childnode> </node> <node id="2"> <label>isa/ne2k.h</label> <link refid="ne2k_8h"/> <childnode refid="3" relation="include"> </childnode> <childnode refid="10" relation="include"> </childnode> </node> <node id="9"> <label>sys/_sigset.h</label> <link refid="__sigset_8h"/> <childnode refid="4" relation="include"> </childnode> </node> <node id="1"> <label>C:/Dev/git/UbixOS/sys/isa/ne2k.c</label> <link refid="ne2k_8c"/> <childnode refid="2" relation="include"> </childnode> <childnode refid="11" relation="include"> </childnode> <childnode refid="33" relation="include"> </childnode> <childnode refid="10" relation="include"> </childnode> <childnode refid="18" relation="include"> </childnode> <childnode refid="34" relation="include"> </childnode> <childnode refid="36" relation="include"> </childnode> <childnode refid="19" relation="include"> </childnode> <childnode refid="37" relation="include"> </childnode> <childnode refid="21" relation="include"> </childnode> <childnode refid="39" relation="include"> </childnode> <childnode refid="40" relation="include"> </childnode> <childnode refid="58" relation="include"> </childnode> </node> <node id="39"> <label>ubixos/vitals.h</label> <link refid="vitals_8h"/> <childnode refid="3" relation="include"> </childnode> <childnode refid="40" relation="include"> </childnode> <childnode refid="41" relation="include"> </childnode> </node> <node id="36"> <label>lib/kmalloc.h</label> <link refid="kmalloc_8h"/> <childnode refid="3" relation="include"> </childnode> </node> <node id="29"> <label>net/mem.h</label> <link refid="mem_8h"/> <childnode refid="12" relation="include"> </childnode> </node> <node id="28"> <label>net/stats.h</label> <link refid="stats_8h"/> <childnode refid="12" relation="include"> </childnode> <childnode refid="29" relation="include"> </childnode> <childnode refid="30" relation="include"> </childnode> </node> <node id="41"> <label>vfs/vfs.h</label> <link refid="include_2vfs_2vfs_8h"/> <childnode refid="3" relation="include"> </childnode> <childnode refid="42" relation="include"> </childnode> <childnode refid="55" relation="include"> </childnode> <childnode refid="56" relation="include"> </childnode> <childnode refid="44" relation="include"> </childnode> <childnode refid="57" relation="include"> </childnode> <childnode refid="50" relation="include"> </childnode> </node> <node id="13"> <label>net/lwipopts.h</label> <link refid="lwipopts_8h"/> </node> <node id="33"> <label>isa/8259.h</label> <link refid="8259_8h"/> <childnode refid="3" relation="include"> </childnode> </node> <node id="55"> <label>vfs/mount.h</label> <link refid="mount_8h"/> <childnode refid="3" relation="include"> </childnode> </node> <node id="48"> <label>sys/resource.h</label> <link refid="resource_8h"/> <childnode refid="4" relation="include"> </childnode> </node> <node id="45"> <label>sys/trap.h</label> <link refid="trap_8h"/> <childnode refid="46" relation="include"> </childnode> </node> <node id="37"> <label>string.h</label> <link refid="string_8h"/> <childnode refid="3" relation="include"> </childnode> <childnode refid="38" relation="include"> </childnode> </node> <node id="3"> <label>sys/types.h</label> <link refid="include_2sys_2types_8h"/> <childnode refid="4" relation="include"> </childnode> <childnode refid="5" relation="include"> </childnode> </node> <node id="42"> <label>vfs/file.h</label> <link refid="include_2vfs_2file_8h"/> <childnode refid="3" relation="include"> </childnode> <childnode refid="43" relation="include"> </childnode> <childnode refid="44" relation="include"> </childnode> <childnode refid="49" relation="include"> </childnode> <childnode refid="55" relation="include"> </childnode> <childnode refid="53" relation="include"> </childnode> </node> <node id="24"> <label>net/def.h</label> <link refid="def_8h"/> <childnode refid="15" relation="include"> </childnode> <childnode refid="12" relation="include"> </childnode> </node> <node id="11"> <label>net/netif.h</label> <link refid="netif_8h"/> <childnode refid="12" relation="include"> </childnode> <childnode refid="22" relation="include"> </childnode> <childnode refid="23" relation="include"> </childnode> <childnode refid="24" relation="include"> </childnode> <childnode refid="27" relation="include"> </childnode> <childnode refid="28" relation="include"> </childnode> </node> <node id="15"> <label>net/arch.h</label> <link refid="arch_8h"/> <childnode refid="3" relation="include"> </childnode> <childnode refid="16" relation="include"> </childnode> <childnode refid="19" relation="include"> </childnode> <childnode refid="21" relation="include"> </childnode> </node> <node id="52"> <label>fs/msdos_fs.h</label> <link refid="msdos__fs_8h"/> </node> <node id="58"> <label>assert.h</label> <link refid="assert_8h"/> </node> <node id="47"> <label>sys/signal.h</label> <link refid="sys_2signal_8h"/> <childnode refid="3" relation="include"> </childnode> </node> <node id="51"> <label>fs/pipe_fs.h</label> <link refid="pipe__fs_8h"/> </node> <node id="50"> <label>ubixos/wait.h</label> <link refid="wait_8h"/> </node> <node id="26"> <label>net/ip6_addr.h</label> <link refid="ip6__addr_8h"/> <childnode refid="12" relation="include"> </childnode> <childnode refid="24" relation="include"> </childnode> </node> <node id="12"> <label>net/opt.h</label> <link refid="opt_8h"/> <childnode refid="13" relation="include"> </childnode> <childnode refid="14" relation="include"> </childnode> </node> <node id="19"> <label>lib/kprintf.h</label> <link refid="kprintf_8h"/> <childnode refid="3" relation="include"> </childnode> <childnode refid="20" relation="include"> </childnode> </node> <node id="14"> <label>net/debug.h</label> <link refid="debug_8h"/> <childnode refid="15" relation="include"> </childnode> <childnode refid="12" relation="include"> </childnode> </node> <node id="25"> <label>net/ip4_addr.h</label> <link refid="ip4__addr_8h"/> <childnode refid="12" relation="include"> </childnode> <childnode refid="24" relation="include"> </childnode> </node> <node id="23"> <label>net/ip_addr.h</label> <link refid="ip__addr_8h"/> <childnode refid="12" relation="include"> </childnode> <childnode refid="24" relation="include"> </childnode> <childnode refid="25" relation="include"> </childnode> <childnode refid="26" relation="include"> </childnode> </node> <node id="44"> <label>sys/thread.h</label> <link refid="thread_8h"/> <childnode refid="3" relation="include"> </childnode> <childnode refid="45" relation="include"> </childnode> <childnode refid="47" relation="include"> </childnode> <childnode refid="48" relation="include"> </childnode> </node> <node id="31"> <label>net/priv/memp_std.h</label> <link refid="memp__std_8h"/> </node> <node id="6"> <label>sys/cdefs.h</label> <link refid="cdefs_8h"/> </node> <node id="17"> <label>ubixos/time.h</label> <link refid="time_8h"/> <childnode refid="3" relation="include"> </childnode> <childnode refid="7" relation="include"> </childnode> <childnode refid="18" relation="include"> </childnode> </node> <node id="4"> <label>sys/_types.h</label> <link refid="__types_8h"/> </node> <node id="22"> <label>net/err.h</label> <link refid="err_8h"/> <childnode refid="12" relation="include"> </childnode> <childnode refid="15" relation="include"> </childnode> </node> <node id="7"> <label>sys/_timespec.h</label> <link refid="__timespec_8h"/> <childnode refid="4" relation="include"> </childnode> </node> <node id="54"> <label>sys/device.h</label> <link refid="include_2sys_2device_8h"/> <childnode refid="3" relation="include"> </childnode> </node> <node id="56"> <label>sys/sysproto_posix.h</label> <link refid="sysproto__posix_8h"/> <childnode refid="47" relation="include"> </childnode> <childnode refid="44" relation="include"> </childnode> <childnode refid="42" relation="include"> </childnode> </node> <node id="43"> <label>ubixfs/dirCache.h</label> <link refid="dirCache_8h"/> <childnode refid="3" relation="include"> </childnode> </node> <node id="8"> <label>sys/_timeval.h</label> <link refid="__timeval_8h"/> <childnode refid="4" relation="include"> </childnode> </node> <node id="30"> <label>net/memp.h</label> <link refid="memp_8h"/> <childnode refid="12" relation="include"> </childnode> <childnode refid="31" relation="include"> </childnode> <childnode refid="32" relation="include"> </childnode> <childnode refid="28" relation="include"> </childnode> </node> </incdepgraph> <sectiondef kind="var"> <memberdef kind="variable" id="ne2k_8c_1aeebda15be7c1218c6072e6e0f057ff14" prot="public" static="yes" mutable="no"> <type>struct <ref refid="structdevice" kindref="compound">device</ref> *</type> <definition>struct device* mDev</definition> <argsstring></argsstring> <name>mDev</name> <initializer>= 0x0</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/isa/ne2k.c" line="50" column="20" bodyfile="C:/Dev/git/UbixOS/sys/isa/ne2k.c" bodystart="50" bodyend="-1"/> </memberdef> <memberdef kind="variable" id="ne2k_8c_1abf05f557b7ffc43bc08e0bf6da3db398" prot="public" static="yes" mutable="no"> <type>struct <ref refid="structspinLock" kindref="compound">spinLock</ref></type> <definition>struct spinLock ne2k_spinLock</definition> <argsstring></argsstring> <name>ne2k_spinLock</name> <initializer>= <ref refid="spinlock_8h_1a0fe85a4f3642683148b25916d6c5eafd" kindref="member">SPIN_LOCK_INITIALIZER</ref></initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/isa/ne2k.c" line="131" column="6" bodyfile="C:/Dev/git/UbixOS/sys/isa/ne2k.c" bodystart="43" bodyend="-1"/> </memberdef> <memberdef kind="variable" id="ne2k_8c_1a35dea25bdf37bb1ee0edd26d50fdc3c2" prot="public" static="yes" mutable="no"> <type>struct <ref refid="structnicBuffer" kindref="compound">nicBuffer</ref> *</type> <definition>struct nicBuffer* ne2kBuffer</definition> <argsstring></argsstring> <name>ne2kBuffer</name> <initializer>= 0x0</initializer> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/isa/ne2k.c" line="49" column="23" bodyfile="C:/Dev/git/UbixOS/sys/isa/ne2k.c" bodystart="49" bodyend="-1"/> </memberdef> </sectiondef> <sectiondef kind="func"> <memberdef kind="function" id="ne2k_8c_1a056f3dfe4c584cce809acbe8d83c2f48" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type></type> <definition>asm</definition> <argsstring>(".globl ne2kISR \n" "ne2kISR: \n" " pusha \n" " call ne2kHandler \n" " popa \n" " iret \n")</argsstring> <name>asm</name> <param> <type>".globl <ref refid="ne2k_8h_1aa1d4735355686cbdc2d6bf145c413db3" kindref="member">ne2kISR</ref> \n" "ne2kISR: \n" " pusha \n" " call <ref refid="ne2k_8c_1a1e664af4b82fdc7971db793f0e9b3ebd" kindref="member">ne2kHandler</ref> \n" " popa \n" " iret \n"</type> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/isa/ne2k.c" line="52" column="1" declfile="C:/Dev/git/UbixOS/sys/isa/ne2k.c" declline="52" declcolumn="1"/> </memberdef> <memberdef kind="function" id="ne2k_8c_1a20e9fce07d30c847b2f794191f55e5ea" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>static int dp_pkt2user</definition> <argsstring>(struct device *dev, int page, int length)</argsstring> <name>dp_pkt2user</name> <param> <type>struct <ref refid="structdevice" kindref="compound">device</ref> *</type> <declname>dev</declname> </param> <param> <type>int</type> <declname>page</declname> </param> <param> <type>int</type> <declname>length</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/isa/ne2k.c" line="295" column="12" bodyfile="C:/Dev/git/UbixOS/sys/isa/ne2k.c" bodystart="295" bodyend="310" declfile="C:/Dev/git/UbixOS/sys/isa/ne2k.c" declline="45" declcolumn="12"/> </memberdef> <memberdef kind="function" id="ne2k_8c_1a93484a1eaa8e1b265202c6cccfed65f3" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>static int dp_recv</definition> <argsstring>(struct device *)</argsstring> <name>dp_recv</name> <param> <type>struct <ref refid="structdevice" kindref="compound">device</ref> *</type> <defname>dev</defname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/isa/ne2k.c" line="219" column="12" bodyfile="C:/Dev/git/UbixOS/sys/isa/ne2k.c" bodystart="219" bodyend="275" declfile="C:/Dev/git/UbixOS/sys/isa/ne2k.c" declline="47" declcolumn="12"/> </memberdef> <memberdef kind="function" id="ne2k_8c_1a82ba0a2f0d1c6dc1381e5c15118bb5ef" prot="public" static="yes" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>static void getblock</definition> <argsstring>(struct device *dev, int page, size_t offset, size_t size, void *dst)</argsstring> <name>getblock</name> <param> <type>struct <ref refid="structdevice" kindref="compound">device</ref> *</type> <declname>dev</declname> </param> <param> <type>int</type> <declname>page</declname> </param> <param> <type><ref refid="include_2sys_2types_8h_1a7619b847aeded8a6d14cbfa212b2cdfb" kindref="member">size_t</ref></type> <declname>offset</declname> </param> <param> <type><ref refid="include_2sys_2types_8h_1a7619b847aeded8a6d14cbfa212b2cdfb" kindref="member">size_t</ref></type> <declname>size</declname> </param> <param> <type>void *</type> <declname>dst</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/isa/ne2k.c" line="277" column="13" bodyfile="C:/Dev/git/UbixOS/sys/isa/ne2k.c" bodystart="277" bodyend="293" declfile="C:/Dev/git/UbixOS/sys/isa/ne2k.c" declline="46" declcolumn="13"/> </memberdef> <memberdef kind="function" id="ne2k_8c_1a033e069050ace667acb10ed9ffc8ac6c" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int ne2k_init</definition> <argsstring>()</argsstring> <name>ne2k_init</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/isa/ne2k.c" line="68" column="5" bodyfile="C:/Dev/git/UbixOS/sys/isa/ne2k.c" bodystart="68" bodyend="111"/> </memberdef> <memberdef kind="function" id="ne2k_8c_1adae239918a8091c31abf996cee262c92" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>struct <ref refid="structnicBuffer" kindref="compound">nicBuffer</ref> *</type> <definition>struct nicBuffer* ne2kAllocBuffer</definition> <argsstring>(int length)</argsstring> <name>ne2kAllocBuffer</name> <param> <type>int</type> <declname>length</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/isa/ne2k.c" line="312" column="16" bodyfile="C:/Dev/git/UbixOS/sys/isa/ne2k.c" bodystart="312" bodyend="339"/> <references refid="armv6_2spinlock_8c_1a71f03d2ba55111c715b6068254847a53" compoundref="armv6_2spinlock_8c" startline="55" endline="61">spinLock</references> <references refid="netif_8h_1a4a11421d92a3c6d8d9fae9db3bb9f299" compoundref="ethernetif_8c" startline="63">tmpBuf</references> </memberdef> <memberdef kind="function" id="ne2k_8c_1adeb7b37e43d9b5203408374d8d8ce586" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void ne2kFreeBuffer</definition> <argsstring>(struct nicBuffer *buf)</argsstring> <name>ne2kFreeBuffer</name> <param> <type>struct <ref refid="structnicBuffer" kindref="compound">nicBuffer</ref> *</type> <declname>buf</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/isa/ne2k.c" line="353" column="6" bodyfile="C:/Dev/git/UbixOS/sys/isa/ne2k.c" bodystart="353" bodyend="357"/> <references refid="kmalloc_8h_1aaa9ed6886459604cf73ccdbf6410e487" compoundref="kmalloc_8c" startline="342" endline="382">kfree</references> </memberdef> <memberdef kind="function" id="ne2k_8c_1a954f14d0270247855900254097728c57" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>struct <ref refid="structnicBuffer" kindref="compound">nicBuffer</ref> *</type> <definition>struct nicBuffer* ne2kGetBuffer</definition> <argsstring>()</argsstring> <name>ne2kGetBuffer</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/isa/ne2k.c" line="341" column="16" bodyfile="C:/Dev/git/UbixOS/sys/isa/ne2k.c" bodystart="341" bodyend="351"/> <references refid="netif_8h_1a4a11421d92a3c6d8d9fae9db3bb9f299" compoundref="ethernetif_8c" startline="63">tmpBuf</references> </memberdef> <memberdef kind="function" id="ne2k_8c_1a1e664af4b82fdc7971db793f0e9b3ebd" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>void</type> <definition>void ne2kHandler</definition> <argsstring>()</argsstring> <name>ne2kHandler</name> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/isa/ne2k.c" line="187" column="6" bodyfile="C:/Dev/git/UbixOS/sys/isa/ne2k.c" bodystart="187" bodyend="217"/> </memberdef> <memberdef kind="function" id="ne2k_8c_1a45a65b2b7a15b7e7c46fd8831528c8d0" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int NICtoPC</definition> <argsstring>(struct device *dev, void *packet, int length, int nic_addr)</argsstring> <name>NICtoPC</name> <param> <type>struct <ref refid="structdevice" kindref="compound">device</ref> *</type> <declname>dev</declname> </param> <param> <type>void *</type> <declname>packet</declname> </param> <param> <type>int</type> <declname>length</declname> </param> <param> <type>int</type> <declname>nic_addr</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/isa/ne2k.c" line="162" column="5" bodyfile="C:/Dev/git/UbixOS/sys/isa/ne2k.c" bodystart="162" bodyend="185"/> <references refid="assert_8h_1ad6d5aaa966ca7424f7cb9bd01f2c838b" compoundref="assert_8h" startline="64">assert</references> <references refid="ne2k_8h_1a94ed811925b8c9a71ec0c3590a15868c" compoundref="ne2k_8h" startline="101">EN0_ISR</references> <references refid="ne2k_8h_1a13af46188f103450f08ce0346bde34af" compoundref="ne2k_8h" startline="100">EN0_RCNTHI</references> <references refid="ne2k_8h_1ab5b4b2e9eb20e5ec41e7784bf5148900" compoundref="ne2k_8h" startline="99">EN0_RCNTLO</references> <references refid="ne2k_8h_1a9834bfab75d2f822b0f684e612917281" compoundref="ne2k_8h" startline="104">EN0_RSARHI</references> <references refid="ne2k_8h_1a352cf7775b146c81c2e1cf81110c9c7e" compoundref="ne2k_8h" startline="103">EN0_RSARLO</references> <references refid="io_8h_1afb703b187feb4b92444454df6c3dd9e6" compoundref="io_8c" startline="55" endline="63">inportWord</references> <references refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" compoundref="device_8old_8h" startline="36">device::ioAddr</references> <references refid="ne2k_8h_1a5b7cdde018b5a4d42f91183d216d3f0d" compoundref="ne2k_8h" startline="125">NE_DATAPORT</references> <references refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" compoundref="io_8c" startline="72" endline="78">outportByte</references> </memberdef> <memberdef kind="function" id="ne2k_8c_1af6446fd497eb16b637ebed77c7a0aeaf" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual"> <type>int</type> <definition>int PCtoNIC</definition> <argsstring>(struct device *dev, void *packet, int length)</argsstring> <name>PCtoNIC</name> <param> <type>struct <ref refid="structdevice" kindref="compound">device</ref> *</type> <declname>dev</declname> </param> <param> <type>void *</type> <declname>packet</declname> </param> <param> <type>int</type> <declname>length</declname> </param> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <inbodydescription> </inbodydescription> <location file="C:/Dev/git/UbixOS/sys/isa/ne2k.c" line="113" column="5" bodyfile="C:/Dev/git/UbixOS/sys/isa/ne2k.c" bodystart="113" bodyend="160"/> <references refid="assert_8h_1ad6d5aaa966ca7424f7cb9bd01f2c838b" compoundref="assert_8h" startline="64">assert</references> <references refid="ne2k_8h_1a9220d4793c7d8dd1844a006713faafee" compoundref="ne2k_8h" startline="91">E8390_RWRITE</references> <references refid="ne2k_8h_1ac3d2ce0fc9cc0e4e0c6e6a1484f08ddf" compoundref="ne2k_8h" startline="89">E8390_START</references> <references refid="ne2k_8h_1a94ed811925b8c9a71ec0c3590a15868c" compoundref="ne2k_8h" startline="101">EN0_ISR</references> <references refid="ne2k_8h_1a13af46188f103450f08ce0346bde34af" compoundref="ne2k_8h" startline="100">EN0_RCNTHI</references> <references refid="ne2k_8h_1ab5b4b2e9eb20e5ec41e7784bf5148900" compoundref="ne2k_8h" startline="99">EN0_RCNTLO</references> <references refid="ne2k_8h_1a9834bfab75d2f822b0f684e612917281" compoundref="ne2k_8h" startline="104">EN0_RSARHI</references> <references refid="ne2k_8h_1a352cf7775b146c81c2e1cf81110c9c7e" compoundref="ne2k_8h" startline="103">EN0_RSARLO</references> <references refid="ne2k_8h_1a6c3f2eca9677ccb05d29d7aac3f25d4c" compoundref="ne2k_8h" startline="105">EN0_TPSR</references> <references refid="io_8h_1a77b934268de1b3ecdcf3f275413b3108" compoundref="io_8c" startline="38" endline="46">inportByte</references> <references refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" compoundref="device_8old_8h" startline="36">device::ioAddr</references> <references refid="armv6_2kpanic_8c_1adb9a182aa071791a306163d50d653deb" compoundref="armv6_2kpanic_8c" startline="41" endline="61">kpanic</references> <references refid="ne2k_8h_1a5b7cdde018b5a4d42f91183d216d3f0d" compoundref="ne2k_8h" startline="125">NE_DATAPORT</references> <references refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" compoundref="io_8c" startline="72" endline="78">outportByte</references> <references refid="io_8h_1af0c1dd5717007bf73b6c5119dfe7eaf2" compoundref="io_8c" startline="87" endline="94">outportByteP</references> <references refid="io_8h_1a243f6b6d22cc5948908b764d58efc2b0" compoundref="io_8c" startline="103" endline="109">outportWord</references> </memberdef> </sectiondef> <briefdescription> </briefdescription> <detaileddescription> </detaileddescription> <programlisting> <codeline lineno="1"><highlight class="comment">/*-</highlight></codeline> <codeline lineno="2"><highlight class="comment"><sp/>*<sp/>Copyright<sp/>(c)<sp/>2002-2018<sp/>The<sp/>UbixOS<sp/>Project.</highlight></codeline> <codeline lineno="3"><highlight class="comment"><sp/>*<sp/>All<sp/>rights<sp/>reserved.</highlight></codeline> <codeline lineno="4"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="5"><highlight class="comment"><sp/>*<sp/>This<sp/>was<sp/>developed<sp/>by<sp/>Christopher<sp/>W.<sp/>Olsen<sp/>for<sp/>the<sp/>UbixOS<sp/>Project.</highlight></codeline> <codeline lineno="6"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="7"><highlight class="comment"><sp/>*<sp/>Redistribution<sp/>and<sp/>use<sp/>in<sp/>source<sp/>and<sp/>binary<sp/>forms,<sp/>with<sp/>or<sp/>without<sp/>modification,<sp/>are<sp/>permitted</highlight></codeline> <codeline lineno="8"><highlight class="comment"><sp/>*<sp/>provided<sp/>that<sp/>the<sp/>following<sp/>conditions<sp/>are<sp/>met:</highlight></codeline> <codeline lineno="9"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="10"><highlight class="comment"><sp/>*<sp/>1)<sp/>Redistributions<sp/>of<sp/>source<sp/>code<sp/>must<sp/>retain<sp/>the<sp/>above<sp/>copyright<sp/>notice,<sp/>this<sp/>list<sp/>of</highlight></codeline> <codeline lineno="11"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>conditions,<sp/>the<sp/>following<sp/>disclaimer<sp/>and<sp/>the<sp/>list<sp/>of<sp/>authors.</highlight></codeline> <codeline lineno="12"><highlight class="comment"><sp/>*<sp/>2)<sp/>Redistributions<sp/>in<sp/>binary<sp/>form<sp/>must<sp/>reproduce<sp/>the<sp/>above<sp/>copyright<sp/>notice,<sp/>this<sp/>list<sp/>of</highlight></codeline> <codeline lineno="13"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>conditions,<sp/>the<sp/>following<sp/>disclaimer<sp/>and<sp/>the<sp/>list<sp/>of<sp/>authors<sp/>in<sp/>the<sp/>documentation<sp/>and/or</highlight></codeline> <codeline lineno="14"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>other<sp/>materials<sp/>provided<sp/>with<sp/>the<sp/>distribution.</highlight></codeline> <codeline lineno="15"><highlight class="comment"><sp/>*<sp/>3)<sp/>Neither<sp/>the<sp/>name<sp/>of<sp/>the<sp/>UbixOS<sp/>Project<sp/>nor<sp/>the<sp/>names<sp/>of<sp/>its<sp/>contributors<sp/>may<sp/>be<sp/>used<sp/>to</highlight></codeline> <codeline lineno="16"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>endorse<sp/>or<sp/>promote<sp/>products<sp/>derived<sp/>from<sp/>this<sp/>software<sp/>without<sp/>specific<sp/>prior<sp/>written</highlight></codeline> <codeline lineno="17"><highlight class="comment"><sp/>*<sp/><sp/><sp/><sp/>permission.</highlight></codeline> <codeline lineno="18"><highlight class="comment"><sp/>*</highlight></codeline> <codeline lineno="19"><highlight class="comment"><sp/>*<sp/>THIS<sp/>SOFTWARE<sp/>IS<sp/>PROVIDED<sp/>BY<sp/>THE<sp/>AUTHOR<sp/>AND<sp/>CONTRIBUTORS<sp/>"AS<sp/>IS"<sp/>AND<sp/>ANY<sp/>EXPRESS<sp/>OR<sp/>IMPLIED</highlight></codeline> <codeline lineno="20"><highlight class="comment"><sp/>*<sp/>WARRANTIES,<sp/>INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>THE<sp/>IMPLIED<sp/>WARRANTIES<sp/>OF<sp/>MERCHANTABILITY<sp/>AND<sp/>FITNESS</highlight></codeline> <codeline lineno="21"><highlight class="comment"><sp/>*<sp/>FOR<sp/>A<sp/>PARTICULAR<sp/>PURPOSE<sp/>ARE<sp/>DISCLAIMED.<sp/>IN<sp/>NO<sp/>EVENT<sp/>SHALL<sp/>THE<sp/>COPYRIGHT<sp/>OWNER<sp/>OR<sp/>CONTRIBUTORS</highlight></codeline> <codeline lineno="22"><highlight class="comment"><sp/>*<sp/>BE<sp/>LIABLE<sp/>FOR<sp/>ANY<sp/>DIRECT,<sp/>INDIRECT,<sp/>INCIDENTAL,<sp/>SPECIAL,<sp/>EXEMPLARY,<sp/>OR<sp/>CONSEQUENTIAL<sp/>DAMAGES</highlight></codeline> <codeline lineno="23"><highlight class="comment"><sp/>*<sp/>(INCLUDING,<sp/>BUT<sp/>NOT<sp/>LIMITED<sp/>TO,<sp/>PROCUREMENT<sp/>OF<sp/>SUBSTITUTE<sp/>GOODS<sp/>OR<sp/>SERVICES;<sp/>LOSS<sp/>OF<sp/>USE,<sp/>DATA,</highlight></codeline> <codeline lineno="24"><highlight class="comment"><sp/>*<sp/>OR<sp/>PROFITS;<sp/>OR<sp/>BUSINESS<sp/>INTERRUPTION)<sp/>HOWEVER<sp/>CAUSED<sp/>AND<sp/>ON<sp/>ANY<sp/>THEORY<sp/>OF<sp/>LIABILITY,<sp/>WHETHER<sp/>IN</highlight></codeline> <codeline lineno="25"><highlight class="comment"><sp/>*<sp/>CONTRACT,<sp/>STRICT<sp/>LIABILITY,<sp/>OR<sp/>TORT<sp/>(INCLUDING<sp/>NEGLIGENCE<sp/>OR<sp/>OTHERWISE)<sp/>ARISING<sp/>IN<sp/>ANY<sp/>WAY<sp/>OUT</highlight></codeline> <codeline lineno="26"><highlight class="comment"><sp/>*<sp/>OF<sp/>THE<sp/>USE<sp/>OF<sp/>THIS<sp/>SOFTWARE,<sp/>EVEN<sp/>IF<sp/>ADVISED<sp/>OF<sp/>THE<sp/>POSSIBILITY<sp/>OF<sp/>SUCH<sp/>DAMAGE.</highlight></codeline> <codeline lineno="27"><highlight class="comment"><sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="28"><highlight class="normal"></highlight></codeline> <codeline lineno="29"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="ne2k_8h" kindref="compound">isa/ne2k.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="30"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="netif_8h" kindref="compound">net/netif.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="device_8old_8h" kindref="compound">sys/device.old.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="33"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="io_8h" kindref="compound">sys/io.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="34"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="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="kmalloc_8h" kindref="compound">lib/kmalloc.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="36"><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="37"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="string_8h" kindref="compound">string.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="38"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="kpanic_8h" kindref="compound">ubixos/kpanic.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="39"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="vitals_8h" kindref="compound">ubixos/vitals.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="40"><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="41"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><<ref refid="assert_8h" kindref="compound">assert.h</ref>></highlight><highlight class="normal"></highlight></codeline> <codeline lineno="42"><highlight class="normal"></highlight></codeline> <codeline lineno="43"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structspinLock" kindref="compound">spinLock</ref><sp/>ne2k_spinLock<sp/>=<sp/><ref refid="spinlock_8h_1a0fe85a4f3642683148b25916d6c5eafd" kindref="member">SPIN_LOCK_INITIALIZER</ref>;</highlight></codeline> <codeline lineno="44"><highlight class="normal"></highlight></codeline> <codeline lineno="45"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>dp_pkt2user(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdevice" kindref="compound">device</ref><sp/>*dev,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>page,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>length);</highlight></codeline> <codeline lineno="46"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>getblock(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdevice" kindref="compound">device</ref><sp/>*dev,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>page,<sp/></highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/>offset,<sp/></highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/>size,<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*dst);</highlight></codeline> <codeline lineno="47"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>dp_recv(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdevice" kindref="compound">device</ref><sp/>*);</highlight></codeline> <codeline lineno="48"><highlight class="normal"></highlight></codeline> <codeline lineno="49"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structnicBuffer" kindref="compound">nicBuffer</ref><sp/>*ne2kBuffer<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="50"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdevice" kindref="compound">device</ref><sp/>*mDev<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="51"><highlight class="normal"></highlight></codeline> <codeline lineno="52"><highlight class="normal"></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight></codeline> <codeline lineno="53"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">".globl<sp/>ne2kISR<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="54"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"ne2kISR:<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="55"><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/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Save<sp/>all<sp/>registers<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="56"><highlight class="normal"><sp/><sp/></highlight><highlight class="stringliteral">"<sp/><sp/>call<sp/>ne2kHandler<sp/><sp/><sp/><sp/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="57"><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/><sp/>\n"</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="58"><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/><sp/>\n"</highlight><highlight class="normal"><sp/></highlight><highlight class="comment">/*<sp/>Exit<sp/>interrupt<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="59"><highlight class="normal">);</highlight></codeline> <codeline lineno="60"><highlight class="normal"></highlight></codeline> <codeline lineno="61"><highlight class="normal"></highlight><highlight class="comment">/************************************************************************</highlight></codeline> <codeline lineno="62"><highlight class="comment"></highlight></codeline> <codeline lineno="63"><highlight class="comment"><sp/>Function:<sp/>int<sp/>ne2kInit(uInt32<sp/>ioAddr)</highlight></codeline> <codeline lineno="64"><highlight class="comment"><sp/>Description:<sp/>This<sp/>Function<sp/>Will<sp/>Initialize<sp/>The<sp/>Programmable<sp/>Timer</highlight></codeline> <codeline lineno="65"><highlight class="comment"></highlight></codeline> <codeline lineno="66"><highlight class="comment"><sp/>Notes:</highlight></codeline> <codeline lineno="67"><highlight class="comment"></highlight></codeline> <codeline lineno="68" refid="ne2k_8c_1a033e069050ace667acb10ed9ffc8ac6c" refkind="member"><highlight class="comment"><sp/>************************************************************************/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="69"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ne2k_8c_1a033e069050ace667acb10ed9ffc8ac6c" kindref="member">ne2k_init</ref>()<sp/>{</highlight></codeline> <codeline lineno="70"><highlight class="normal"><sp/><sp/>mDev<sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structdevice" kindref="compound">device</ref><sp/>*)<sp/><ref refid="kmalloc_8h_1a150eab2ac4ce4553e21ca10e7f441762" 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" kindref="compound">device</ref>));</highlight></codeline> <codeline lineno="71"><highlight class="normal"><sp/><sp/>mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>=<sp/>0x280;</highlight></codeline> <codeline lineno="72"><highlight class="normal"><sp/><sp/>mDev-><ref refid="structdevice_1a893bc785f272d1fedb2b4c14e31a7f35" kindref="member">irq</ref><sp/>=<sp/>10;</highlight></codeline> <codeline lineno="73"><highlight class="normal"><sp/><sp/><ref refid="idt_8h_1a174a47ed653fc64fff6b5bb1b895c2cf" kindref="member">setVector</ref>(&<ref refid="ne2k_8h_1aa1d4735355686cbdc2d6bf145c413db3" kindref="member">ne2kISR</ref>,<sp/><ref refid="8259_8h_1a7d84962c1a1c225344a94545309f92fc" kindref="member">mVec</ref><sp/>+<sp/>10,<sp/><ref refid="gdt_8h_1abe5eb76416aff1d9114e1cdb8b0797fe" kindref="member">dPresent</ref><sp/>+<sp/><ref refid="gdt_8h_1a7eb6dc7004c613df58764da5df7d85d8" kindref="member">dInt</ref><sp/>+<sp/><ref refid="gdt_8h_1a5ee8638767e24765a2690483745d60d0" kindref="member">dDpl0</ref>);</highlight></codeline> <codeline lineno="74"><highlight class="normal"><sp/><sp/><ref refid="8259_8h_1a0ac079c4d770f02e505f4d8569a6960a" kindref="member">irqEnable</ref>(10);</highlight></codeline> <codeline lineno="75"><highlight class="normal"></highlight><highlight class="comment">//<sp/><sp/>kprintf("ne0<sp/>-<sp/>irq:<sp/>%i,<sp/>ioAddr:<sp/>0x%X<sp/>MAC:<sp/>%X:%X:%X:%X:%X:%X\n",dev->irq,dev->ioAddr,dev->net->mac[0]<sp/>&<sp/>0xFF,dev->net->mac[1]<sp/>&<sp/>0xFF,dev->net->mac[2]<sp/>&<sp/>0xFF,dev->net->mac[3]<sp/>&<sp/>0xFF,dev->net->mac[4]<sp/>&<sp/>0xFF,dev->net->mac[5]<sp/>&<sp/>0xFF);</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="76"><highlight class="normal"></highlight></codeline> <codeline lineno="77"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a55d8236fd5c94eb16a5a06c3e4b07df1" kindref="member">NE_CMD</ref>,<sp/>0x21);<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>stop<sp/>mode</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="78"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a759300669dab4522e8c261d764303a9b" kindref="member">NE_DCR</ref>,<sp/>0x29);<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>0x29<sp/>data<sp/>config<sp/>reg</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="79"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1ab8733e4b199b85891fb58c80bd65967a" kindref="member">NE_RBCR0</ref>,<sp/>0x00);<sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>LOW<sp/>byte<sp/>count<sp/>(remote)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="80"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1ac023921e5da8473a400c04b2e268c621" kindref="member">NE_RBCR1</ref>,<sp/>0x00);<sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>HIGH<sp/>byte<sp/>count<sp/>(remote)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="81"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1ae0e015081ca05ecec4bf833265485fb9" kindref="member">NE_RCR</ref>,<sp/>0x3C);<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>receive<sp/>config<sp/>reg</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="82"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1aea9754b13e450b45d0eb6d79e0a1f4aa" kindref="member">NE_TCR</ref>,<sp/>0x02);<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>LOOP<sp/>mode<sp/>(temp)</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="83"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a78aa15aa3cd9df670d1724be92b0157d" kindref="member">NE_PSTART</ref>,<sp/><ref refid="ne2k_8h_1a819b8c4fa81871ceacc1790d6fd2b2f1" kindref="member">startPage</ref>);<sp/></highlight><highlight class="comment">//<sp/>0x26<sp/>PAGE<sp/>start</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="84"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a4c97ad2e89582cb65022a052df40c04a" kindref="member">NE_BNRY</ref>,<sp/><ref refid="ne2k_8h_1a819b8c4fa81871ceacc1790d6fd2b2f1" kindref="member">startPage</ref>);<sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>0x26<sp/>BOUNDARY</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="85"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a4991431a50163bff66590bf8a7fb3c72" kindref="member">NE_PSTOP</ref>,<sp/><ref refid="ne2k_8h_1ae05994559a4ee216a39b3307b7911493" kindref="member">stopPage</ref>);<sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>0x40<sp/>PAGE<sp/>stop</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="86"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a0b931a9b3f618839c02bc888b12fad6b" kindref="member">NE_ISR</ref>,<sp/>0xFF);<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>interrupt<sp/>status<sp/>reg</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="87"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a04dfd3c3cd4a3f758cb038b78231493f" kindref="member">NE_IMR</ref>,<sp/>0x0B);</highlight></codeline> <codeline lineno="88"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a55d8236fd5c94eb16a5a06c3e4b07df1" kindref="member">NE_CMD</ref>,<sp/>0x61);<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>PAGE<sp/>1<sp/>regs</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="89"><highlight class="normal"></highlight></codeline> <codeline lineno="90"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1ab748b31fd480e8195caac541bc792c2b" kindref="member">DP_MAR0</ref>,<sp/>0xFF);</highlight></codeline> <codeline lineno="91"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a6e5cdffc808e98e09eca1efad797abf4" kindref="member">DP_MAR1</ref>,<sp/>0xFF);</highlight></codeline> <codeline lineno="92"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a6aff3543036b8ddf515d243b0e1ddf34" kindref="member">DP_MAR2</ref>,<sp/>0xFF);</highlight></codeline> <codeline lineno="93"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a1a62c9c151ca3a621f0683d0eaba12fe" kindref="member">DP_MAR3</ref>,<sp/>0xFF);</highlight></codeline> <codeline lineno="94"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1ace5a77fb812564273e5304dd138ac29f" kindref="member">DP_MAR4</ref>,<sp/>0xFF);</highlight></codeline> <codeline lineno="95"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a0ec81b4dbe6150ae308588ed7de0f686" kindref="member">DP_MAR5</ref>,<sp/>0xFF);</highlight></codeline> <codeline lineno="96"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a649d4943e589ed684b2e0faf811dc0af" kindref="member">DP_MAR6</ref>,<sp/>0xFF);</highlight></codeline> <codeline lineno="97"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1afc53aa624a738deb114bf3d20257f108" kindref="member">DP_MAR7</ref>,<sp/>0xFF);</highlight></codeline> <codeline lineno="98"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a8336bb3cb0a54a93522379477340fdec" kindref="member">DP_CURR</ref>,<sp/><ref refid="ne2k_8h_1a819b8c4fa81871ceacc1790d6fd2b2f1" kindref="member">startPage</ref><sp/>+<sp/>1);</highlight></codeline> <codeline lineno="99"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a55d8236fd5c94eb16a5a06c3e4b07df1" kindref="member">NE_CMD</ref>,<sp/>0x20);</highlight></codeline> <codeline lineno="100"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a77b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a2dcfc12834d5a417dcf43e2ca248f0cd" kindref="member">DP_CNTR0</ref>);<sp/></highlight><highlight class="comment">/*<sp/>reset<sp/>counters<sp/>by<sp/>reading<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="101"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a77b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1ae99a5201b20f9fd87b195c1074a643ec" kindref="member">DP_CNTR1</ref>);</highlight></codeline> <codeline lineno="102"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a77b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1ab56dccd8151d77ad3dbd832b65601af0" kindref="member">DP_CNTR2</ref>);</highlight></codeline> <codeline lineno="103"><highlight class="normal"></highlight></codeline> <codeline lineno="104"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1aea9754b13e450b45d0eb6d79e0a1f4aa" kindref="member">NE_TCR</ref>,<sp/>0x00);</highlight></codeline> <codeline lineno="105"><highlight class="normal"></highlight></codeline> <codeline lineno="106"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a55d8236fd5c94eb16a5a06c3e4b07df1" kindref="member">NE_CMD</ref>,<sp/>0x0);</highlight></codeline> <codeline lineno="107"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a759300669dab4522e8c261d764303a9b" kindref="member">NE_DCR</ref>,<sp/>0x29);</highlight></codeline> <codeline lineno="108"><highlight class="normal"></highlight></codeline> <codeline lineno="109"><highlight class="normal"><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"Initialized"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="110"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">/*<sp/>Return<sp/>so<sp/>we<sp/>know<sp/>everything<sp/>went<sp/>well<sp/>*/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="111"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(0x0);</highlight></codeline> <codeline lineno="112"><highlight class="normal">}</highlight></codeline> <codeline lineno="113" refid="ne2k_8c_1af6446fd497eb16b637ebed77c7a0aeaf" refkind="member"><highlight class="normal"></highlight></codeline> <codeline lineno="114"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ne2k_8c_1af6446fd497eb16b637ebed77c7a0aeaf" kindref="member">PCtoNIC</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdevice" kindref="compound">device</ref><sp/>*dev,<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*packet,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>length)<sp/>{</highlight></codeline> <codeline lineno="115"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="116"><highlight class="normal"><sp/><sp/><ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref><sp/>*packet16<sp/>=<sp/>(<ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref><sp/>*)<sp/>packet;</highlight></codeline> <codeline lineno="117"><highlight class="normal"><sp/><sp/><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/>*packet8<sp/>=<sp/>(<ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/>*)<sp/>packet;</highlight></codeline> <codeline lineno="118"><highlight class="normal"><sp/><sp/><ref refid="objgfx30_8h_1aa4e0f27a9aca905e340c06d2dcae843c" kindref="member">uInt8</ref><sp/>word16<sp/>=<sp/>0x1;</highlight></codeline> <codeline lineno="119"><highlight class="normal"></highlight></codeline> <codeline lineno="120"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((<ref refid="io_8h_1a77b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref>)<sp/>&<sp/>0x04)<sp/>==<sp/>0x04)<sp/>{</highlight></codeline> <codeline lineno="121"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="armv6_2kpanic_8c_1adb9a182aa071791a306163d50d653deb" kindref="member">kpanic</ref>(</highlight><highlight class="stringliteral">"Device<sp/>Not<sp/>Ready\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="122"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="123"><highlight class="normal"></highlight></codeline> <codeline lineno="124"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1ad6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(length);</highlight></codeline> <codeline lineno="125"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((word16<sp/>==<sp/>1)<sp/>&&<sp/>(length<sp/>&<sp/>0x01))<sp/>{</highlight></codeline> <codeline lineno="126"><highlight class="normal"><sp/><sp/><sp/><sp/>length++;</highlight></codeline> <codeline lineno="127"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="128"><highlight class="normal"></highlight></codeline> <codeline lineno="129"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1ab5b4b2e9eb20e5ec41e7784bf5148900" kindref="member">EN0_RCNTLO</ref>,<sp/>(length<sp/>&<sp/>0xFF));</highlight></codeline> <codeline lineno="130"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a13af46188f103450f08ce0346bde34af" kindref="member">EN0_RCNTHI</ref>,<sp/>(length<sp/>>><sp/>8));</highlight></codeline> <codeline lineno="131"><highlight class="normal"></highlight></codeline> <codeline lineno="132"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a352cf7775b146c81c2e1cf81110c9c7e" kindref="member">EN0_RSARLO</ref>,<sp/>0x0);</highlight></codeline> <codeline lineno="133"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a9834bfab75d2f822b0f684e612917281" kindref="member">EN0_RSARHI</ref>,<sp/>0x41);</highlight></codeline> <codeline lineno="134"><highlight class="normal"></highlight></codeline> <codeline lineno="135"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref>,<sp/><ref refid="ne2k_8h_1a9220d4793c7d8dd1844a006713faafee" kindref="member">E8390_RWRITE</ref><sp/>+<sp/><ref refid="ne2k_8h_1ac3d2ce0fc9cc0e4e0c6e6a1484f08ddf" kindref="member">E8390_START</ref>);</highlight></codeline> <codeline lineno="136"><highlight class="normal"></highlight></codeline> <codeline lineno="137"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(word16<sp/>!=<sp/>0x0)<sp/>{</highlight></codeline> <codeline lineno="138"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>0;<sp/>i<sp/><<sp/>length<sp/>/<sp/>2;<sp/>i++)<sp/>{</highlight></codeline> <codeline lineno="139"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="io_8h_1a243f6b6d22cc5948908b764d58efc2b0" kindref="member">outportWord</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a5b7cdde018b5a4d42f91183d216d3f0d" kindref="member">NE_DATAPORT</ref>,<sp/>packet16[i]);</highlight></codeline> <codeline lineno="140"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="141"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="142"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline> <codeline lineno="143"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>0;<sp/>i<sp/><<sp/>length;<sp/>i++)<sp/>{</highlight></codeline> <codeline lineno="144"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a5b7cdde018b5a4d42f91183d216d3f0d" kindref="member">NE_DATAPORT</ref>,<sp/>packet8[i]);</highlight></codeline> <codeline lineno="145"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="146"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="147"><highlight class="normal"></highlight></codeline> <codeline lineno="148"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>0;<sp/>i<sp/><=<sp/>100;<sp/>i++)<sp/>{</highlight></codeline> <codeline lineno="149"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((<ref refid="io_8h_1a77b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a94ed811925b8c9a71ec0c3590a15868c" kindref="member">EN0_ISR</ref>)<sp/>&<sp/>0x40)<sp/>==<sp/>0x40)<sp/>{</highlight></codeline> <codeline lineno="150"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="151"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="152"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="153"><highlight class="normal"></highlight></codeline> <codeline lineno="154"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a94ed811925b8c9a71ec0c3590a15868c" kindref="member">EN0_ISR</ref>,<sp/>0x40);</highlight></codeline> <codeline lineno="155"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a6c3f2eca9677ccb05d29d7aac3f25d4c" kindref="member">EN0_TPSR</ref>,<sp/>0x41);<sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//ei_local->txStartPage);</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="156"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/>0x05,<sp/>(length<sp/>&<sp/>0xFF));</highlight></codeline> <codeline lineno="157"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/>0x06,<sp/>(length<sp/>>><sp/>8));</highlight></codeline> <codeline lineno="158"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1af0c1dd5717007bf73b6c5119dfe7eaf2" kindref="member">outportByteP</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref>,<sp/>0x26);</highlight></codeline> <codeline lineno="159"><highlight class="normal"><sp/><sp/></highlight><highlight class="comment">//kprintf("SENT\n");</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="160"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(length);</highlight></codeline> <codeline lineno="161"><highlight class="normal">}</highlight></codeline> <codeline lineno="162" refid="ne2k_8c_1a45a65b2b7a15b7e7c46fd8831528c8d0" refkind="member"><highlight class="normal"></highlight></codeline> <codeline lineno="163"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="ne2k_8c_1a45a65b2b7a15b7e7c46fd8831528c8d0" kindref="member">NICtoPC</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdevice" kindref="compound">device</ref><sp/>*dev,<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*packet,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>length,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>nic_addr)<sp/>{</highlight></codeline> <codeline lineno="164"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="165"><highlight class="normal"><sp/><sp/><ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref><sp/>*packet16<sp/>=<sp/>(<ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref><sp/>*)<sp/>packet;</highlight></codeline> <codeline lineno="166"><highlight class="normal"></highlight></codeline> <codeline lineno="167"><highlight class="normal"><sp/><sp/><ref refid="assert_8h_1ad6d5aaa966ca7424f7cb9bd01f2c838b" kindref="member">assert</ref>(length);</highlight></codeline> <codeline lineno="168"><highlight class="normal"></highlight></codeline> <codeline lineno="169"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(length<sp/>&<sp/>0x01)</highlight></codeline> <codeline lineno="170"><highlight class="normal"><sp/><sp/><sp/><sp/>length++;</highlight></codeline> <codeline lineno="171"><highlight class="normal"></highlight></codeline> <codeline lineno="172"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1ab5b4b2e9eb20e5ec41e7784bf5148900" kindref="member">EN0_RCNTLO</ref>,<sp/>(length<sp/>&<sp/>0xFF));</highlight></codeline> <codeline lineno="173"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a13af46188f103450f08ce0346bde34af" kindref="member">EN0_RCNTHI</ref>,<sp/>(length<sp/>>><sp/>8));</highlight></codeline> <codeline lineno="174"><highlight class="normal"></highlight></codeline> <codeline lineno="175"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a352cf7775b146c81c2e1cf81110c9c7e" kindref="member">EN0_RSARLO</ref>,<sp/>nic_addr<sp/>&<sp/>0xFF);</highlight></codeline> <codeline lineno="176"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a9834bfab75d2f822b0f684e612917281" kindref="member">EN0_RSARHI</ref>,<sp/>nic_addr<sp/>>><sp/>8);</highlight></codeline> <codeline lineno="177"><highlight class="normal"></highlight></codeline> <codeline lineno="178"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref>,<sp/>0x0A);</highlight></codeline> <codeline lineno="179"><highlight class="normal"></highlight></codeline> <codeline lineno="180"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>0;<sp/>i<sp/><<sp/>length<sp/>/<sp/>2;<sp/>i++)<sp/>{</highlight></codeline> <codeline lineno="181"><highlight class="normal"><sp/><sp/><sp/><sp/>packet16[i]<sp/>=<sp/><ref refid="io_8h_1afb703b187feb4b92444454df6c3dd9e6" kindref="member">inportWord</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a5b7cdde018b5a4d42f91183d216d3f0d" kindref="member">NE_DATAPORT</ref>);</highlight></codeline> <codeline lineno="182"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="183"><highlight class="normal"></highlight></codeline> <codeline lineno="184"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a94ed811925b8c9a71ec0c3590a15868c" kindref="member">EN0_ISR</ref>,<sp/>0x40);</highlight></codeline> <codeline lineno="185"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(length);</highlight></codeline> <codeline lineno="186"><highlight class="normal">}</highlight></codeline> <codeline lineno="187" refid="ne2k_8c_1a1e664af4b82fdc7971db793f0e9b3ebd" refkind="member"><highlight class="normal"></highlight></codeline> <codeline lineno="188"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="ne2k_8c_1a1e664af4b82fdc7971db793f0e9b3ebd" kindref="member">ne2kHandler</ref>()<sp/>{</highlight></codeline> <codeline lineno="189"><highlight class="normal"><sp/><sp/><ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref><sp/>isr<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="190"><highlight class="normal"><sp/><sp/><ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref><sp/>status<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="191"><highlight class="normal"></highlight></codeline> <codeline lineno="192"><highlight class="normal"><sp/><sp/><ref refid="8259_8h_1a2b9ec30943ddb0a2ef3bd7ccfd2026c0" kindref="member">irqDisable</ref>(10);</highlight></codeline> <codeline lineno="193"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(<ref refid="8259_8h_1a0195451428bc646f820202dc15f25d9f" kindref="member">mPic</ref>,<sp/><ref refid="8259_8h_1a417bb9e0e5c2751570faf6d7b848f977" kindref="member">eoi</ref>);</highlight></codeline> <codeline lineno="194"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(<ref refid="8259_8h_1a7d4efc593ecc4ace3d92e1f4ee919b99" kindref="member">sPic</ref>,<sp/><ref refid="8259_8h_1a417bb9e0e5c2751570faf6d7b848f977" kindref="member">eoi</ref>);</highlight></codeline> <codeline lineno="195"><highlight class="normal"></highlight></codeline> <codeline lineno="196"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight><highlight class="stringliteral">"sti"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="197"><highlight class="normal"></highlight></codeline> <codeline lineno="198"><highlight class="normal"><sp/><sp/>isr<sp/>=<sp/><ref refid="io_8h_1a77b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a0b931a9b3f618839c02bc888b12fad6b" kindref="member">NE_ISR</ref>);</highlight></codeline> <codeline lineno="199"><highlight class="normal"></highlight></codeline> <codeline lineno="200"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((isr<sp/>&<sp/>0x02)<sp/>==<sp/>0x02)<sp/>{</highlight></codeline> <codeline lineno="201"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a0b931a9b3f618839c02bc888b12fad6b" kindref="member">NE_ISR</ref>,<sp/>0x0A);</highlight></codeline> <codeline lineno="202"><highlight class="normal"><sp/><sp/><sp/><sp/>status<sp/>=<sp/><ref refid="io_8h_1a77b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(0x280<sp/>+<sp/><ref refid="ne2k_8h_1ac9016fe03699a7b0ebea5db11ee8aa69" kindref="member">NE_TPSR</ref>);</highlight></codeline> <codeline lineno="203"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="204"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>((isr<sp/>&<sp/>0x01)<sp/>==<sp/>0x01)<sp/>{</highlight></codeline> <codeline lineno="205"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(dp_recv(mDev))<sp/>{</highlight></codeline> <codeline lineno="206"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"Error<sp/>Getting<sp/>Packet\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="207"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="208"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a0b931a9b3f618839c02bc888b12fad6b" kindref="member">NE_ISR</ref>,<sp/>0x05);</highlight></codeline> <codeline lineno="209"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="210"><highlight class="normal"></highlight></codeline> <codeline lineno="211"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a04dfd3c3cd4a3f758cb038b78231493f" kindref="member">NE_IMR</ref>,<sp/>0x0);</highlight></codeline> <codeline lineno="212"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(mDev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a04dfd3c3cd4a3f758cb038b78231493f" kindref="member">NE_IMR</ref>,<sp/>0x0B);</highlight></codeline> <codeline lineno="213"><highlight class="normal"></highlight></codeline> <codeline lineno="214"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">asm</highlight><highlight class="normal">(</highlight><highlight class="stringliteral">"cli"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="215"><highlight class="normal"><sp/><sp/><ref refid="8259_8h_1a0ac079c4d770f02e505f4d8569a6960a" kindref="member">irqEnable</ref>(10);</highlight></codeline> <codeline lineno="216"><highlight class="normal"></highlight></codeline> <codeline lineno="217"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="218"><highlight class="normal">}</highlight></codeline> <codeline lineno="219"><highlight class="normal"></highlight></codeline> <codeline lineno="220"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>dp_recv(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdevice" kindref="compound">device</ref><sp/>*dev)<sp/>{</highlight></codeline> <codeline lineno="221"><highlight class="normal"><sp/><sp/><ref refid="structdp__rcvhdr" kindref="compound">dp_rcvhdr_t</ref><sp/>header;</highlight></codeline> <codeline lineno="222"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>pageno<sp/>=<sp/>0x0,<sp/>curr<sp/>=<sp/>0x0,<sp/>next<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="223"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>packet_processed<sp/>=<sp/>0x0,<sp/>r<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="224"><highlight class="normal"><sp/><sp/><ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref><sp/><ref refid="group__ethernet_1ga4f8559808037803168499a3803900339" kindref="member">eth_type</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="225"><highlight class="normal"></highlight></codeline> <codeline lineno="226"><highlight class="normal"><sp/><sp/><ref refid="objgfx30_8h_1ada085051a6d9a8e00a2cb256d1af14ba" kindref="member">uInt32</ref><sp/>length<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="227"><highlight class="normal"></highlight></codeline> <codeline lineno="228"><highlight class="normal"><sp/><sp/>pageno<sp/>=<sp/><ref refid="io_8h_1a77b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a4c97ad2e89582cb65022a052df40c04a" kindref="member">NE_BNRY</ref>)<sp/>+<sp/>1;</highlight></codeline> <codeline lineno="229"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(pageno<sp/>==<sp/><ref refid="ne2k_8h_1ae05994559a4ee216a39b3307b7911493" kindref="member">stopPage</ref>)</highlight></codeline> <codeline lineno="230"><highlight class="normal"><sp/><sp/><sp/><sp/>pageno<sp/>=<sp/><ref refid="ne2k_8h_1a819b8c4fa81871ceacc1790d6fd2b2f1" kindref="member">startPage</ref>;</highlight></codeline> <codeline lineno="231"><highlight class="normal"></highlight></codeline> <codeline lineno="232"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">do</highlight><highlight class="normal"><sp/>{</highlight></codeline> <codeline lineno="233"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a55d8236fd5c94eb16a5a06c3e4b07df1" kindref="member">NE_CMD</ref>,<sp/>0x40);</highlight></codeline> <codeline lineno="234"><highlight class="normal"><sp/><sp/><sp/><sp/>curr<sp/>=<sp/><ref refid="io_8h_1a77b934268de1b3ecdcf3f275413b3108" kindref="member">inportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a5e30e2969b60a082d50bf3ce80d9d766" kindref="member">NE_CURRENT</ref>);</highlight></codeline> <codeline lineno="235"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref>,<sp/>0x0);</highlight></codeline> <codeline lineno="236"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(curr<sp/>==<sp/>pageno)</highlight></codeline> <codeline lineno="237"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="238"><highlight class="normal"><sp/><sp/><sp/><sp/>getblock(dev,<sp/>pageno,<sp/>(</highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal">)<sp/>0,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(header),<sp/>&header);</highlight></codeline> <codeline lineno="239"><highlight class="normal"><sp/><sp/><sp/><sp/>getblock(dev,<sp/>pageno,<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(header)<sp/>+<sp/>2<sp/>*<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(<ref refid="unionetheraddr" kindref="compound">ether_addr_t</ref>),<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(<ref refid="group__ethernet_1ga4f8559808037803168499a3803900339" kindref="member">eth_type</ref>),<sp/>&<ref refid="group__ethernet_1ga4f8559808037803168499a3803900339" kindref="member">eth_type</ref>);</highlight></codeline> <codeline lineno="240"><highlight class="normal"></highlight></codeline> <codeline lineno="241"><highlight class="normal"><sp/><sp/><sp/><sp/>length<sp/>=<sp/>(header.<ref refid="structdp__rcvhdr_1a8af6620ac2cc37aa6e5e50df90bd8ada" kindref="member">dr_rbcl</ref><sp/>|<sp/>(header.<ref refid="structdp__rcvhdr_1a860d92ae4272fa62b9bdc51f46e88e1c" kindref="member">dr_rbch</ref><sp/><<<sp/>8))<sp/>-<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(<ref refid="ne2k_8h_1aa1cf4fa85f0fb91e8c3b87dd06d9b88f" kindref="member">dp_rcvhdr_t</ref>);</highlight></codeline> <codeline lineno="242"><highlight class="normal"><sp/><sp/><sp/><sp/>next<sp/>=<sp/>header.<ref refid="structdp__rcvhdr_1aa0a5d988feb06cbcced2a0d35d55add9" kindref="member">dr_next</ref>;</highlight></codeline> <codeline lineno="243"><highlight class="normal"></highlight></codeline> <codeline lineno="244"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//kprintf("length:<sp/>[0x%X:0x%X:0x%X]\n",header.dr_next,header.dr_status,length);</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="245"><highlight class="normal"></highlight></codeline> <codeline lineno="246"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(length<sp/><<sp/>60<sp/>||<sp/>length<sp/>><sp/>1514)<sp/>{</highlight></codeline> <codeline lineno="247"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"dp8390:<sp/>packet<sp/>with<sp/>strange<sp/>length<sp/>arrived:<sp/>%d\n"</highlight><highlight class="normal">,<sp/>length);</highlight></codeline> <codeline lineno="248"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>next<sp/>=<sp/>curr;</highlight></codeline> <codeline lineno="249"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="250"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(next<sp/><<sp/>startPage<sp/>||<sp/>next<sp/>>=<sp/><ref refid="ne2k_8h_1ae05994559a4ee216a39b3307b7911493" kindref="member">stopPage</ref>)<sp/>{</highlight></codeline> <codeline lineno="251"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"dp8390:<sp/>strange<sp/>next<sp/>page\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="252"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>next<sp/>=<sp/>curr;</highlight></codeline> <codeline lineno="253"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="254"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(header.<ref refid="structdp__rcvhdr_1ac5986aa8468f04c074e1402b59c78114" kindref="member">dr_status</ref><sp/>&<sp/><ref refid="ne2k_8h_1a3e9285670345a7583ca516cc8f7aafb8" kindref="member">RSR_FO</ref>)<sp/>{</highlight></codeline> <codeline lineno="255"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="armv6_2kpanic_8c_1adb9a182aa071791a306163d50d653deb" kindref="member">kpanic</ref>(</highlight><highlight class="stringliteral">"dp8390:<sp/>fifo<sp/>overrun,<sp/>resetting<sp/>receive<sp/>buffer\n"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="256"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>next<sp/>=<sp/>curr;</highlight></codeline> <codeline lineno="257"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="258"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(header.<ref refid="structdp__rcvhdr_1ac5986aa8468f04c074e1402b59c78114" kindref="member">dr_status</ref><sp/>&<sp/><ref refid="ne2k_8h_1ac1d77583edd2eba6e96cc7633558e461" kindref="member">RSR_PRX</ref>)<sp/>{</highlight></codeline> <codeline lineno="259"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>r<sp/>=<sp/>dp_pkt2user(dev,<sp/>pageno,<sp/>length);</highlight></codeline> <codeline lineno="260"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(r<sp/>!=<sp/><ref refid="ne2k_8h_1aba51915c87d64af47fb1cc59348961c9" kindref="member">OK</ref>)<sp/>{</highlight></codeline> <codeline lineno="261"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"FRUIT"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="262"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(0x0);</highlight></codeline> <codeline lineno="263"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="264"><highlight class="normal"></highlight></codeline> <codeline lineno="265"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>packet_processed<sp/>=<sp/>0x1;</highlight></codeline> <codeline lineno="266"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline> <codeline lineno="267"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(next<sp/>==<sp/><ref refid="ne2k_8h_1a819b8c4fa81871ceacc1790d6fd2b2f1" kindref="member">startPage</ref>)</highlight></codeline> <codeline lineno="268"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a4c97ad2e89582cb65022a052df40c04a" kindref="member">NE_BNRY</ref>,<sp/><ref refid="ne2k_8h_1ae05994559a4ee216a39b3307b7911493" kindref="member">stopPage</ref><sp/>-<sp/>1);</highlight></codeline> <codeline lineno="269"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="270"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a4c97ad2e89582cb65022a052df40c04a" kindref="member">NE_BNRY</ref>,<sp/>next<sp/>-<sp/>1);</highlight></codeline> <codeline lineno="271"><highlight class="normal"></highlight></codeline> <codeline lineno="272"><highlight class="normal"><sp/><sp/><sp/><sp/>pageno<sp/>=<sp/>next;</highlight></codeline> <codeline lineno="273"><highlight class="normal"></highlight></codeline> <codeline lineno="274"><highlight class="normal"><sp/><sp/>}<sp/></highlight><highlight class="keywordflow">while</highlight><highlight class="normal"><sp/>(packet_processed<sp/>==<sp/>0x0);</highlight></codeline> <codeline lineno="275"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(0x0);</highlight></codeline> <codeline lineno="276"><highlight class="normal">}</highlight></codeline> <codeline lineno="277"><highlight class="normal"></highlight></codeline> <codeline lineno="278"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>getblock(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdevice" kindref="compound">device</ref><sp/>*dev,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>page,<sp/></highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/>offset,<sp/></highlight><highlight class="keywordtype">size_t</highlight><highlight class="normal"><sp/>size,<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>*dst)<sp/>{</highlight></codeline> <codeline lineno="279"><highlight class="normal"><sp/><sp/><ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref><sp/>*ha<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="280"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="281"><highlight class="normal"></highlight></codeline> <codeline lineno="282"><highlight class="normal"><sp/><sp/>ha<sp/>=<sp/>(<ref refid="objgfx30_8h_1a81f3b46fa4ddd984830104840a08da82" kindref="member">uInt16</ref><sp/>*)<sp/>dst;</highlight></codeline> <codeline lineno="283"><highlight class="normal"><sp/><sp/>offset<sp/>=<sp/>page<sp/>*<sp/><ref refid="ne2k_8h_1abe1b4cb2c953c25ccdc10fcb1aa7e47d" kindref="member">DP_PAGESIZE</ref><sp/>+<sp/>offset;</highlight></codeline> <codeline lineno="284"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1ab8733e4b199b85891fb58c80bd65967a" kindref="member">NE_RBCR0</ref>,<sp/>size<sp/>&<sp/>0xFF);</highlight></codeline> <codeline lineno="285"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1ac023921e5da8473a400c04b2e268c621" kindref="member">NE_RBCR1</ref>,<sp/>size<sp/>>><sp/>8);</highlight></codeline> <codeline lineno="286"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a352cf7775b146c81c2e1cf81110c9c7e" kindref="member">EN0_RSARLO</ref>,<sp/>offset<sp/>&<sp/>0xFF);</highlight></codeline> <codeline lineno="287"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a9834bfab75d2f822b0f684e612917281" kindref="member">EN0_RSARHI</ref>,<sp/>offset<sp/>>><sp/>8);</highlight></codeline> <codeline lineno="288"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a55d8236fd5c94eb16a5a06c3e4b07df1" kindref="member">NE_CMD</ref>,<sp/><ref refid="ne2k_8h_1a60b09a580fe0020e08e133cd8ec0a50d" kindref="member">E8390_RREAD</ref><sp/>|<sp/><ref refid="ne2k_8h_1ac3d2ce0fc9cc0e4e0c6e6a1484f08ddf" kindref="member">E8390_START</ref>);</highlight></codeline> <codeline lineno="289"><highlight class="normal"></highlight></codeline> <codeline lineno="290"><highlight class="normal"><sp/><sp/>size<sp/>/=<sp/>2;</highlight></codeline> <codeline lineno="291"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(i<sp/>=<sp/>0;<sp/>i<sp/><<sp/>size;<sp/>i++)</highlight></codeline> <codeline lineno="292"><highlight class="normal"><sp/><sp/><sp/><sp/>ha[i]<sp/>=<sp/><ref refid="io_8h_1afb703b187feb4b92444454df6c3dd9e6" kindref="member">inportWord</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a5b7cdde018b5a4d42f91183d216d3f0d" kindref="member">NE_DATAPORT</ref>);</highlight></codeline> <codeline lineno="293"><highlight class="normal"><sp/><sp/><ref refid="io_8h_1a8acc1a06073db2e7b92ffbd00fbd0cf1" kindref="member">outportByte</ref>(dev-><ref refid="structdevice_1a9467302b748ed3627bae8e3ecee7af87" kindref="member">ioAddr</ref><sp/>+<sp/><ref refid="ne2k_8h_1a94ed811925b8c9a71ec0c3590a15868c" kindref="member">EN0_ISR</ref>,<sp/>0x40);</highlight></codeline> <codeline lineno="294"><highlight class="normal">}</highlight></codeline> <codeline lineno="295"><highlight class="normal"></highlight></codeline> <codeline lineno="296"><highlight class="normal"></highlight><highlight class="keyword">static</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>dp_pkt2user(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structdevice" kindref="compound">device</ref><sp/>*dev,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>page,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>length)<sp/>{</highlight></codeline> <codeline lineno="297"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>last<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="298"><highlight class="normal"></highlight></codeline> <codeline lineno="299"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structnicBuffer" kindref="compound">nicBuffer</ref><sp/>*tBuf<sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="300"><highlight class="normal"></highlight></codeline> <codeline lineno="301"><highlight class="normal"><sp/><sp/>last<sp/>=<sp/>page<sp/>+<sp/>(<ref refid="structnicBuffer_1a959ee09a7a6fc875f3d5d651576f37c4" kindref="member">length</ref><sp/>-<sp/>1)<sp/>/<sp/><ref refid="ne2k_8h_1abe1b4cb2c953c25ccdc10fcb1aa7e47d" kindref="member">DP_PAGESIZE</ref>;</highlight></codeline> <codeline lineno="302"><highlight class="normal"></highlight></codeline> <codeline lineno="303"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(last<sp/>>=<sp/><ref refid="ne2k_8h_1ae05994559a4ee216a39b3307b7911493" kindref="member">stopPage</ref>)<sp/>{</highlight></codeline> <codeline lineno="304"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="kprintf_8h_1a20b56810edb62a6fe59917015c30848f" kindref="member">kprintf</ref>(</highlight><highlight class="stringliteral">"FOOK<sp/>STOP<sp/>PAGE!!!"</highlight><highlight class="normal">);</highlight></codeline> <codeline lineno="305"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="306"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline> <codeline lineno="307"><highlight class="normal"><sp/><sp/><sp/><sp/>tBuf<sp/>=<sp/><ref refid="ne2k_8c_1adae239918a8091c31abf996cee262c92" kindref="member">ne2kAllocBuffer</ref>(<ref refid="structnicBuffer_1a959ee09a7a6fc875f3d5d651576f37c4" kindref="member">length</ref>);</highlight></codeline> <codeline lineno="308"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="ne2k_8c_1a45a65b2b7a15b7e7c46fd8831528c8d0" kindref="member">NICtoPC</ref>(dev,<sp/>tBuf-><ref refid="structnicBuffer_1a9679b6c2e76a7617884e422c11aa3eac" kindref="member">buffer</ref>,<sp/><ref refid="structnicBuffer_1a959ee09a7a6fc875f3d5d651576f37c4" kindref="member">length</ref>,<sp/>page<sp/>*<sp/><ref refid="ne2k_8h_1abe1b4cb2c953c25ccdc10fcb1aa7e47d" kindref="member">DP_PAGESIZE</ref><sp/>+<sp/></highlight><highlight class="keyword">sizeof</highlight><highlight class="normal">(<ref refid="structdp__rcvhdr" kindref="compound">dp_rcvhdr_t</ref>));</highlight></codeline> <codeline lineno="309"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="310"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(<ref refid="ne2k_8h_1aba51915c87d64af47fb1cc59348961c9" kindref="member">OK</ref>);</highlight></codeline> <codeline lineno="311"><highlight class="normal">}</highlight></codeline> <codeline lineno="312" refid="ne2k_8c_1adae239918a8091c31abf996cee262c92" refkind="member"><highlight class="normal"></highlight></codeline> <codeline lineno="313"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structnicBuffer" kindref="compound">nicBuffer</ref><sp/>*<ref refid="ne2k_8c_1adae239918a8091c31abf996cee262c92" kindref="member">ne2kAllocBuffer</ref>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="structnicBuffer_1a959ee09a7a6fc875f3d5d651576f37c4" kindref="member">length</ref>)<sp/>{</highlight></codeline> <codeline lineno="314"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structnicBuffer" kindref="compound">nicBuffer</ref><sp/>*<ref refid="netif_8h_1a4a11421d92a3c6d8d9fae9db3bb9f299" kindref="member">tmpBuf</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="315"><highlight class="normal"></highlight></codeline> <codeline lineno="316"><highlight class="normal"><sp/><sp/><ref refid="armv6_2spinlock_8c_1a71f03d2ba55111c715b6068254847a53" kindref="member">spinLock</ref>(&ne2k_spinLock);</highlight></codeline> <codeline lineno="317"><highlight class="normal"></highlight></codeline> <codeline lineno="318"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(ne2kBuffer<sp/>==<sp/>0x0)<sp/>{</highlight></codeline> <codeline lineno="319"><highlight class="normal"><sp/><sp/><sp/><sp/>ne2kBuffer<sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structnicBuffer" kindref="compound">nicBuffer</ref><sp/>*)<sp/><ref refid="kmalloc_8h_1a150eab2ac4ce4553e21ca10e7f441762" 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="structnicBuffer" kindref="compound">nicBuffer</ref>));</highlight></codeline> <codeline lineno="320"><highlight class="normal"><sp/><sp/><sp/><sp/>ne2kBuffer-><ref refid="structnicBuffer_1ab019ceba7f84eddae7d6b2abc538906a" kindref="member">next</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="321"><highlight class="normal"><sp/><sp/><sp/><sp/>ne2kBuffer-><ref refid="structnicBuffer_1a959ee09a7a6fc875f3d5d651576f37c4" kindref="member">length</ref><sp/>=<sp/><ref refid="structnicBuffer_1a959ee09a7a6fc875f3d5d651576f37c4" kindref="member">length</ref>;</highlight></codeline> <codeline lineno="322"><highlight class="normal"><sp/><sp/><sp/><sp/>ne2kBuffer-><ref refid="structnicBuffer_1a9679b6c2e76a7617884e422c11aa3eac" kindref="member">buffer</ref><sp/>=<sp/>(</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*)<sp/><ref refid="kmalloc_8h_1a150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(<ref refid="structnicBuffer_1a959ee09a7a6fc875f3d5d651576f37c4" kindref="member">length</ref>);</highlight></codeline> <codeline lineno="323"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="armv6_2spinlock_8c_1ae29ab191c93f9ead066cb462dd2e7247" kindref="member">spinUnlock</ref>(&ne2k_spinLock);</highlight></codeline> <codeline lineno="324"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(ne2kBuffer);</highlight></codeline> <codeline lineno="325"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="326"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/>{</highlight></codeline> <codeline lineno="327"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(<ref refid="netif_8h_1a4a11421d92a3c6d8d9fae9db3bb9f299" kindref="member">tmpBuf</ref><sp/>=<sp/>ne2kBuffer;<sp/><ref refid="netif_8h_1a4a11421d92a3c6d8d9fae9db3bb9f299" kindref="member">tmpBuf</ref>-><ref refid="structnicBuffer_1ab019ceba7f84eddae7d6b2abc538906a" kindref="member">next</ref><sp/>!=<sp/>0x0;<sp/><ref refid="netif_8h_1a4a11421d92a3c6d8d9fae9db3bb9f299" kindref="member">tmpBuf</ref><sp/>=<sp/><ref refid="netif_8h_1a4a11421d92a3c6d8d9fae9db3bb9f299" kindref="member">tmpBuf</ref>-><ref refid="structnicBuffer_1ab019ceba7f84eddae7d6b2abc538906a" kindref="member">next</ref>)</highlight></codeline> <codeline lineno="328"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/>;</highlight></codeline> <codeline lineno="329"><highlight class="normal"></highlight></codeline> <codeline lineno="330"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="netif_8h_1a4a11421d92a3c6d8d9fae9db3bb9f299" kindref="member">tmpBuf</ref>-><ref refid="structnicBuffer_1ab019ceba7f84eddae7d6b2abc538906a" kindref="member">next</ref><sp/>=<sp/>(</highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structnicBuffer" kindref="compound">nicBuffer</ref><sp/>*)<sp/><ref refid="kmalloc_8h_1a150eab2ac4ce4553e21ca10e7f441762" 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="structnicBuffer" kindref="compound">nicBuffer</ref>));</highlight></codeline> <codeline lineno="331"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="netif_8h_1a4a11421d92a3c6d8d9fae9db3bb9f299" kindref="member">tmpBuf</ref><sp/>=<sp/><ref refid="netif_8h_1a4a11421d92a3c6d8d9fae9db3bb9f299" kindref="member">tmpBuf</ref>-><ref refid="structnicBuffer_1ab019ceba7f84eddae7d6b2abc538906a" kindref="member">next</ref>;</highlight></codeline> <codeline lineno="332"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="netif_8h_1a4a11421d92a3c6d8d9fae9db3bb9f299" kindref="member">tmpBuf</ref>-><ref refid="structnicBuffer_1ab019ceba7f84eddae7d6b2abc538906a" kindref="member">next</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="333"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="netif_8h_1a4a11421d92a3c6d8d9fae9db3bb9f299" kindref="member">tmpBuf</ref>-><ref refid="structnicBuffer_1a959ee09a7a6fc875f3d5d651576f37c4" kindref="member">length</ref><sp/>=<sp/><ref refid="structnicBuffer_1a959ee09a7a6fc875f3d5d651576f37c4" kindref="member">length</ref>;</highlight></codeline> <codeline lineno="334"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="netif_8h_1a4a11421d92a3c6d8d9fae9db3bb9f299" kindref="member">tmpBuf</ref>-><ref refid="structnicBuffer_1a9679b6c2e76a7617884e422c11aa3eac" kindref="member">buffer</ref><sp/>=<sp/>(</highlight><highlight class="keywordtype">char</highlight><highlight class="normal"><sp/>*)<sp/><ref refid="kmalloc_8h_1a150eab2ac4ce4553e21ca10e7f441762" kindref="member">kmalloc</ref>(<ref refid="structnicBuffer_1a959ee09a7a6fc875f3d5d651576f37c4" kindref="member">length</ref>);</highlight></codeline> <codeline lineno="335"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="armv6_2spinlock_8c_1ae29ab191c93f9ead066cb462dd2e7247" kindref="member">spinUnlock</ref>(&ne2k_spinLock);</highlight></codeline> <codeline lineno="336"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(<ref refid="netif_8h_1a4a11421d92a3c6d8d9fae9db3bb9f299" kindref="member">tmpBuf</ref>);</highlight></codeline> <codeline lineno="337"><highlight class="normal"><sp/><sp/>}</highlight></codeline> <codeline lineno="338"><highlight class="normal"><sp/><sp/><ref refid="armv6_2spinlock_8c_1ae29ab191c93f9ead066cb462dd2e7247" kindref="member">spinUnlock</ref>(&ne2k_spinLock);</highlight></codeline> <codeline lineno="339"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(0x0);</highlight></codeline> <codeline lineno="340"><highlight class="normal">}</highlight></codeline> <codeline lineno="341" refid="ne2k_8c_1a954f14d0270247855900254097728c57" refkind="member"><highlight class="normal"></highlight></codeline> <codeline lineno="342"><highlight class="normal"></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structnicBuffer" kindref="compound">nicBuffer</ref><sp/>*<ref refid="ne2k_8c_1a954f14d0270247855900254097728c57" kindref="member">ne2kGetBuffer</ref>()<sp/>{</highlight></codeline> <codeline lineno="343"><highlight class="normal"><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="structnicBuffer" kindref="compound">nicBuffer</ref><sp/>*<ref refid="netif_8h_1a4a11421d92a3c6d8d9fae9db3bb9f299" kindref="member">tmpBuf</ref><sp/>=<sp/>0x0;</highlight></codeline> <codeline lineno="344"><highlight class="normal"></highlight></codeline> <codeline lineno="345"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(ne2k_spinLock<sp/>==<sp/>0x1)</highlight></codeline> <codeline lineno="346"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(0x0);</highlight></codeline> <codeline lineno="347"><highlight class="normal"></highlight></codeline> <codeline lineno="348"><highlight class="normal"><sp/><sp/><ref refid="netif_8h_1a4a11421d92a3c6d8d9fae9db3bb9f299" kindref="member">tmpBuf</ref><sp/>=<sp/>ne2kBuffer;</highlight></codeline> <codeline lineno="349"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(ne2kBuffer<sp/>!=<sp/>0x0)</highlight></codeline> <codeline lineno="350"><highlight class="normal"><sp/><sp/><sp/><sp/>ne2kBuffer<sp/>=<sp/>ne2kBuffer-><ref refid="structnicBuffer_1ab019ceba7f84eddae7d6b2abc538906a" kindref="member">next</ref>;</highlight></codeline> <codeline lineno="351"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>(<ref refid="netif_8h_1a4a11421d92a3c6d8d9fae9db3bb9f299" kindref="member">tmpBuf</ref>);</highlight></codeline> <codeline lineno="352"><highlight class="normal">}</highlight></codeline> <codeline lineno="353" refid="ne2k_8c_1adeb7b37e43d9b5203408374d8d8ce586" refkind="member"><highlight class="normal"></highlight></codeline> <codeline lineno="354"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/><ref refid="ne2k_8c_1adeb7b37e43d9b5203408374d8d8ce586" kindref="member">ne2kFreeBuffer</ref>(</highlight><highlight class="keyword">struct</highlight><highlight class="normal"><sp/><ref refid="structnicBuffer" kindref="compound">nicBuffer</ref><sp/>*<ref refid="structbuf" kindref="compound">buf</ref>)<sp/>{</highlight></codeline> <codeline lineno="355"><highlight class="normal"><sp/><sp/><ref refid="kmalloc_8h_1aaa9ed6886459604cf73ccdbf6410e487" kindref="member">kfree</ref>(<ref refid="structbuf" kindref="compound">buf</ref>->buffer);</highlight></codeline> <codeline lineno="356"><highlight class="normal"><sp/><sp/><ref refid="kmalloc_8h_1aaa9ed6886459604cf73ccdbf6410e487" kindref="member">kfree</ref>(<ref refid="structbuf" kindref="compound">buf</ref>);</highlight></codeline> <codeline lineno="357"><highlight class="normal"><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal">;</highlight></codeline> <codeline lineno="358"><highlight class="normal">}</highlight></codeline> <codeline lineno="359"><highlight class="normal"></highlight></codeline> <codeline lineno="360"><highlight class="normal"></highlight><highlight class="comment">/***</highlight></codeline> <codeline lineno="361"><highlight class="comment"></highlight></codeline> <codeline lineno="362"><highlight class="comment"><sp/>$Log:<sp/>ne2k.c,v<sp/>$</highlight></codeline> <codeline lineno="363"><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="364"><highlight class="comment"><sp/>ubix2</highlight></codeline> <codeline lineno="365"><highlight class="comment"></highlight></codeline> <codeline lineno="366"><highlight class="comment"><sp/>Revision<sp/>1.2<sp/><sp/>2005/10/12<sp/>00:13:37<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="367"><highlight class="comment"><sp/>Removed</highlight></codeline> <codeline lineno="368"><highlight class="comment"></highlight></codeline> <codeline lineno="369"><highlight class="comment"><sp/>Revision<sp/>1.1.1.1<sp/><sp/>2005/09/26<sp/>17:24:02<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="370"><highlight class="comment"><sp/>no<sp/>message</highlight></codeline> <codeline lineno="371"><highlight class="comment"></highlight></codeline> <codeline lineno="372"><highlight class="comment"><sp/>Revision<sp/>1.24<sp/><sp/>2004/09/28<sp/>21:47:56<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="373"><highlight class="comment"><sp/>Fixed<sp/>deadlock<sp/>now<sp/>safe<sp/>to<sp/>use<sp/>in<sp/>bochs</highlight></codeline> <codeline lineno="374"><highlight class="comment"></highlight></codeline> <codeline lineno="375"><highlight class="comment"><sp/>Revision<sp/>1.23<sp/><sp/>2004/09/16<sp/>22:35:28<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="376"><highlight class="comment"><sp/>Demo<sp/>Release</highlight></codeline> <codeline lineno="377"><highlight class="comment"></highlight></codeline> <codeline lineno="378"><highlight class="comment"><sp/>Revision<sp/>1.22<sp/><sp/>2004/09/15<sp/>21:25:33<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="379"><highlight class="comment"><sp/>Fixens</highlight></codeline> <codeline lineno="380"><highlight class="comment"></highlight></codeline> <codeline lineno="381"><highlight class="comment"><sp/>Revision<sp/>1.21<sp/><sp/>2004/09/11<sp/>19:15:37<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="382"><highlight class="comment"><sp/>here<sp/>you<sp/>go<sp/>irq<sp/>10<sp/>io<sp/>240<sp/>for<sp/>your<sp/>ne2k<sp/>nic</highlight></codeline> <codeline lineno="383"><highlight class="comment"></highlight></codeline> <codeline lineno="384"><highlight class="comment"><sp/>Revision<sp/>1.20<sp/><sp/>2004/09/07<sp/>22:26:04<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="385"><highlight class="comment"><sp/>synced<sp/>in</highlight></codeline> <codeline lineno="386"><highlight class="comment"></highlight></codeline> <codeline lineno="387"><highlight class="comment"><sp/>Revision<sp/>1.19<sp/><sp/>2004/09/07<sp/>21:54:38<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="388"><highlight class="comment"><sp/>ok<sp/>reverted<sp/>back<sp/>to<sp/>old<sp/>scheduling<sp/>for<sp/>now....</highlight></codeline> <codeline lineno="389"><highlight class="comment"></highlight></codeline> <codeline lineno="390"><highlight class="comment"><sp/>Revision<sp/>1.18<sp/><sp/>2004/09/06<sp/>15:13:25<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="391"><highlight class="comment"><sp/>Last<sp/>commit<sp/>before<sp/>FreeBSD<sp/>6.0</highlight></codeline> <codeline lineno="392"><highlight class="comment"></highlight></codeline> <codeline lineno="393"><highlight class="comment"><sp/>Revision<sp/>1.17<sp/><sp/>2004/08/01<sp/>20:40:45<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="394"><highlight class="comment"><sp/>Net<sp/>related<sp/>fixes</highlight></codeline> <codeline lineno="395"><highlight class="comment"></highlight></codeline> <codeline lineno="396"><highlight class="comment"><sp/>Revision<sp/>1.16<sp/><sp/>2004/07/28<sp/>22:23:02<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="397"><highlight class="comment"><sp/>make<sp/>sure<sp/>it<sp/>still<sp/>works<sp/>before<sp/>I<sp/>goto<sp/>bed</highlight></codeline> <codeline lineno="398"><highlight class="comment"></highlight></codeline> <codeline lineno="399"><highlight class="comment"><sp/>Revision<sp/>1.15<sp/><sp/>2004/07/17<sp/>17:04:47<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="400"><highlight class="comment"><sp/>ne2k:<sp/>added<sp/>assert<sp/>hopefully<sp/>it<sp/>will<sp/>help<sp/>me<sp/>solve<sp/>this<sp/>dma<sp/>size<sp/>0<sp/>random<sp/>error</highlight></codeline> <codeline lineno="401"><highlight class="comment"></highlight></codeline> <codeline lineno="402"><highlight class="comment"><sp/>Revision<sp/>1.14<sp/><sp/>2004/07/14<sp/>12:03:50<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="403"><highlight class="comment"><sp/>ne2k:<sp/>ne2kInit<sp/>to<sp/>ne2k_init</highlight></codeline> <codeline lineno="404"><highlight class="comment"><sp/>Changed<sp/>Startup<sp/>Routines</highlight></codeline> <codeline lineno="405"><highlight class="comment"></highlight></codeline> <codeline lineno="406"><highlight class="comment"><sp/>Revision<sp/>1.13<sp/><sp/>2004/06/04<sp/>10:19:42<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="407"><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="408"><highlight class="comment"></highlight></codeline> <codeline lineno="409"><highlight class="comment"><sp/>Revision<sp/>1.12<sp/><sp/>2004/05/21<sp/>12:48:22<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="410"><highlight class="comment"><sp/>Cleaned<sp/>up</highlight></codeline> <codeline lineno="411"><highlight class="comment"></highlight></codeline> <codeline lineno="412"><highlight class="comment"><sp/>Revision<sp/>1.11<sp/><sp/>2004/05/19<sp/>04:07:42<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="413"><highlight class="comment"><sp/>kmalloc(size,pid)<sp/>no<sp/>more<sp/>it<sp/>is<sp/>no<sp/>kmalloc(size);<sp/>the<sp/>way<sp/>it<sp/>should<sp/>of<sp/>been</highlight></codeline> <codeline lineno="414"><highlight class="comment"></highlight></codeline> <codeline lineno="415"><highlight class="comment"><sp/>Revision<sp/>1.10<sp/><sp/>2004/05/10<sp/>02:23:24<sp/><sp/>reddawg</highlight></codeline> <codeline lineno="416"><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="417"><highlight class="comment"></highlight></codeline> <codeline lineno="418"><highlight class="comment"><sp/>END</highlight></codeline> <codeline lineno="419"><highlight class="comment"><sp/>***/</highlight><highlight class="normal"></highlight></codeline> <codeline lineno="420"><highlight class="normal"></highlight></codeline> </programlisting> <location file="C:/Dev/git/UbixOS/sys/isa/ne2k.c"/> </compounddef> </doxygen>