Date: Wed, 3 Sep 2008 11:41:11 +0300 From: "Andrey Slusar" <anrays@gmail.com> To: freebsd-questions@freebsd.org Subject: FreeBSD7 and realtek 8111C Message-ID: <47e01da70809030141r2cd45f54n4407fd8fde0860d9@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
------=_Part_14162_14398329.1220431271246 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hello! I have the motherboard with realtek 8111C LAN Card. On FreeBSD6.3 it's card is work fine with driver from realtek wesite - rtl_bsd_drv_v175.tgz archive. Build this driver on 7.0-STABLE is not work. I'm hacked this and driver is compile without problems, but LAN card works is very unstable - system hang, when i'm downoad file ~10 seconds. Maybe there are people who can bring to mind my hack? I'm attached driver and patch. -- Regards, Andrey. ------=_Part_14162_14398329.1220431271246 Content-Type: application/octet-stream; name=rtl_bsd_drv_v176.diff Content-Transfer-Encoding: base64 X-Attachment-Id: f_fknp6wlg1 Content-Disposition: attachment; filename=rtl_bsd_drv_v176.diff ZGlmZiAtdSBydGxfYnNkX2Rydl92MTc1L2lmX3JsLmMgcnRsX2JzZF9kcnZfdjE3Ni9pZl9ybC5j Ci0tLSBydGxfYnNkX2Rydl92MTc1L2lmX3JsLmMJMjAwOC0wMy0wMyAwNDoxMDoxMi4wMDAwMDAw MDAgKzAwMDAKKysrIHJ0bF9ic2RfZHJ2X3YxNzYvaWZfcmwuYwkyMDA4LTA5LTAxIDEyOjQ4OjQy LjAwMDAwMDAwMCArMDAwMApAQCAtMTUyLDggKzE1Miw4IEBACiB9OwogCiBzdGF0aWMgaW50CXJs X3Byb2JlCQkJX19QKChkZXZpY2VfdCkpOwotc3RhdGljIGludAlybF9hdHRhY2gJCQlfX1AoKGRl dmljZV90KSk7Ci1zdGF0aWMgaW50CXJsX2RldGFjaAkJCV9fUCgoZGV2aWNlX3QpKTsKK3N0YXRp YyBpbnQJcmxfYXR0YWNoCQkJKGRldmljZV90KTsKK3N0YXRpYyBpbnQJcmxfZGV0Y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zE6MjQuMDAwMDAwMDAwICsw MDAwCkBAIC01MDgsNiArNTA4LDggQEAKICNkZWZpbmUgTUFDRkdfMjgJMHgyOAogI2RlZmluZSBN QUNGR18yOQkweDI5CiAKKyNkZWZpbmUgUkxfTVNJX01FU1NBR0VTIDIKKwogc3RydWN0IHJsX3Nv ZnRjIHsKICNpZiBPU19WRVI8VkVSU0lPTig2LDApCiAJc3RydWN0IGFycGNvbQkJYXJwY29tOwkJ CS8qIGludGVyZmFjZSBpbmZvICovCkBAIC01MjEsOCArNTIzLDggQEAKIAlidXNfc3BhY2VfaGFu ZGxlX3QJcmxfYmhhbmRsZTsJCS8qIGJ1cyBzcGFjZSBoYW5kbGUgKi8KIAlidXNfc3BhY2VfdGFn X3QJCXJsX2J0YWc7CQkJLyogYnVzIHNwYWNlIHRhZyAqLwogCXN0cnVjdCByZXNvdXJjZQkJKnJs X3JlczsKLQlzdHJ1Y3QgcmVzb3VyY2UJCSpybF9pcnE7Ci0Jdm9pZAkJCSpybF9pbnRyaGFuZDsK KwlzdHJ1Y3QgcmVzb3VyY2UJCSpybF9pcnFbUkxfTVNJX01FU1NBR0VTXTsKKwl2b2lkCQkJKnJs X2ludHJoYW5kW1JMX01TSV9NRVNTQUdFU107CiAJc3RydWN0IGlmbWVkaWEJCW1lZGlhOwkJCS8q IFl2ZXM6IHVzZWQgdG8gaW5zdGVhZCBvZiBNSUkgKi8KIAogCXVfaW50OF90CQlybF91bml0OwkJ CS8qIGludGVyZmFjZSBudW1iZXIgKi8K ------=_Part_14162_14398329.1220431271246--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47e01da70809030141r2cd45f54n4407fd8fde0860d9>