Date: Mon, 18 Aug 2003 22:05:23 +0000 From: "hGPG GPG" <gpg__gpg@hotmail.com> To: questions@FreeBSD.org Subject: troubleshooting with SafeWay network drivers Message-ID: <BAY1-F40W1MsB5ReKQt000473c2@hotmail.com>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. ------=_NextPart_000_6671_3eb_241d Content-Type: text/plain; charset=iso-8859-1; format=flowed j'ai installer FreeBSD 5.1 sur une machine PII 300 MHz qui dispose d'une carte réseau de marque SafeWay (chip us_bc001). inclus avec ce mail, le drivers (.c et .h) et l'expliquations fournie par le SafeWay (qui ne correspond a rien). pouvez-vous m'aider a resoudre ce problême, a faire fonctionner cette carte réseau? merci _________________________________________________________________ Hotmail: votre e-mail gratuit ! http://www.fr.msn.be/hotmail ------=_NextPart_000_6671_3eb_241d Content-Type: application/octet-stream; name="IF_FET.C" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="IF_FET.C" LyoKICogZmFzdCBldGhlcm5ldCBQQ0kgTklDIGRyaXZlcgogKi8KCiNpbmNs dWRlICJicGZpbHRlci5oIgoKI2luY2x1ZGUgPHN5cy9wYXJhbS5oPgojaW5j bHVkZSA8c3lzL3N5c3RtLmg+CiNpbmNsdWRlIDxzeXMvc29ja2lvLmg+CiNp bmNsdWRlIDxzeXMvbWJ1Zi5oPgojaW5jbHVkZSA8c3lzL21hbGxvYy5oPgoj aW5jbHVkZSA8c3lzL2tlcm5lbC5oPgojaW5jbHVkZSA8c3lzL3NvY2tldC5o PgoKI2luY2x1ZGUgPG5ldC9pZi5oPgojaW5jbHVkZSA8bmV0L2lmX2FycC5o PgojaW5jbHVkZSA8bmV0L2V0aGVybmV0Lmg+CiNpbmNsdWRlIDxuZXQvaWZf ZGwuaD4KI2luY2x1ZGUgPG5ldC9pZl9tZWRpYS5oPgoKI2lmIE5CUEZJTFRF UiA+IDAKI2luY2x1ZGUgPG5ldC9icGYuaD4KI2VuZGlmCgojaW5jbHVkZSA8 dm0vdm0uaD4gICAgICA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wogICAgICAv KiBoaWdoIE1EQyAqLwogICAgICBtaWlyfD1GRVRfTUFTS19NSUlSX01JSV9N REM7CiAgICAgIENTUl9XUklURV80KHNjLCBGRVRfTUFOQUdFTUVOVCwgbWlp cik7CiAgICAgIERFTEFZKDMwKTsKCiAgICAgIC8qIG5leHQgKi8KICAgICAg bWFzaz4+PTE7CiAgICAgIGlmIChtYXNrPT0weDIgJiYgb3Bjb2RlPT1GRVRf T1BfUkVBRCkKICAgICAgICBtaWlyJj1+RkVUX01BU0tfTUlJUl9NSUlfV1JJ VEU7CiAgIH0KICAgcmV0dXJuIG1paXI7Cn0KCgpzdGF0aWMgdV9pbnQxNl90 IGZldF9waHlfcmVhZHJlZyhzYywgcmVnKQpzdHJ1Y3QgZmV0X3NvZnRjICpz YzsKaW50IHJlZzsKewogICBsb25nIG1paXI7CiAgIGludCBtYXNrLCBkYXRh OwoKICAgaWYgKHNjLT5mZXRfaW5mby0+ZmV0X2RpZCA9PSBJRDEpCiAgICAg ZGF0YSA9IENTUl9SRUFEXzIoc2MsIEZFVF9QSFlCQVNFK3JlZyoyKTsKICAg ZWxzZQogICB7CiAgICAgIG1paXI9ZmV0X3NlbmRfY21kX3RvX3BoeShzYywg RkVUX09QX1JFQUQsIHJlZyk7CgogICAgICAvKiByZWFkIGRhdGEgKi8KICAg ICAgbWFzaz0weDgwMDA7CiAgICAgIGRhdGE9MDsKICAgICAgd2hpbGUgKG1h c2spCiAgICAgIHsKICAgICAgICAgLyogbG93IE1EQyAqLwogICAgICAgICBt aWlyJj1+RkVUX01BU0tfTUlJUl9NSUlfTURDOwogICAgICAgICBDU1JfV1JJ VEVfNChzYywgRkVUX01BTkFHRU1FTlQsIG1paXIpOwoKICAgICAgICAgLyog cmVhZCBNREkgKi8KICAgICAgICAgbWlpcj1DU1JfUkVBRF80KHNjLCBGRVRf TUFOQUdFTUVOVCk7CiAgICAgICAgIGlmIChtaWlyICYgRkVUX01BU0tfTUlJ Ul9NSUlfTURJKQogICAgICAgICAgIGRhdGF8PW1hc2s7CgogICAgICAgICAv KiBoaWdoIE1EQywgYW5kIHdhaXQgKi8KICAgICAgICAgbWlpcnw9RkVUX01B U0tfTUlJUl9NSUlfTURDOwogICAgICAgICBDU1JfV1JJVEVfNChzYywgRkVU X01BTkFHRU1FTlQsIG1paXIpOwogICAgICAgICBERUxBWSgzMCk7CgogICAg ICAgICAvKiBuZXh0ICovCiAgICAgICAgIG1hc2s+Pj0xOwogICAgICB9Cgog ICAgICAvKiBsb3cgTURDICovCiAgICAgIG1paXImPX5GRVRfTUFTS19NSUlS X01JSV9NREM7CiAgICAgIENTUl9XUklURV80KHNjLCBGRVRfTUFOQUdFTUVO VCwgbWlpcik7CiAgIH0KCiAgIHJldHVybiAodV9pbnQxNl90KWRhdGE7Cn0K CgpzdGF0aWMgdm9pZCBmZXRfcGh5X3dyaXRlcmVnKHNjLCByZWcsIGRhdGEp CnN0cnVjdCBmZXRfc29mdGMgKnNjOwppbnQgcmVnOwppbnQgZGF0YTsKewog ICBsb25nIG1paXI7CiAgIGludCBtYXNrOwoKICAgaWYgKHNjLT5mZXRfaW5m by0+ZmV0X2RpZCA9PSBJRDEpCiAgICAgQ1NSX1dSSVRFXzIoc2MsIEZFVF9Q SFlCQVNFK3JlZyoyLCBkYXRhKTsKICAgZWxzZQogICB7CiAgICAgIG1paXI9 ZmV0X3NlbmRfY21kX3RvX3BoeShzYywgRkVUX09QX1dSSVRFLCByZWcpOwoK ICAgICAgLyogd3JpdGUgZGF0YSAqLwogICAgICBtYXNrPTB4ODAwMDsKICAg ICAgd2hpbGUgKG1hc2spCiAgICAgIHsKICAgICAgICAgLyogbG93IE1EQywg cHJlcGFyZSBNRE8gKi8KICAgICAgICAgbWlpciY9fihGRVRfTUFTS19NSUlS X01JSV9NREMrRkVUX01BU0tfTUlJUl9NSUlfTURPKTsKICAgICAgICAgaWYg KG1hc2smZGF0YSkKICAgICAgICAgICBtaWlyfD1GRVRfTUFTS19NSUlSX01J SV9NRE87CiAgICAgICAgIENTUl9XUklURV80KHNjLCBGRVRfTUFOQUdFTUVO VCwgbWlpcik7CgogICAgICAgICAvKiBoaWdoIE1EQyAqLwogICAgICAgICBt aWlyfD1GRVRfTUFTS19NSUlSX01JSV9NREM7CiAgICAgICAgIENTUl9XUklU RV80KHNjLCBGRVRfTUFOQUdFTUVOVCwgbWlpcik7CgogICAgICAgICAvKiBu ZXh0ICovCiAgICAgICAgIG1hc2s+Pj0xOwogICAgICB9CgogICAgICAvKiBs b3cgTURDICovCiAgICAgIG1paXImPX5GRVRfTUFTS19NSUlSX01JSV9NREM7 CiAgICAgIENTUl9XUklURV80KHNjLCBGRVRfTUFOQUdFTUVOVCwgbWlpcik7 CiAgIH0KCiAgIHJldHVybjsKfQoKCnN0YXRpYyB1X2ludDhfdCBmZXRfY2Fs Y2hhc2goYWRkcikKY2FkZHJfdCBhZGRyOwp7CiAgIHVfaW50MzJfdCBjcmMs IGNhcnJ5OwogICBpbnQgaSwgajsKICAgdV9pbnQ4X3QgYzsKCiAgIC8qIENv bXB1dGUgQ1JDIGZvciB0aGUgYWRkcmVzcyB2YWx1ZS4gKi8KICAgY3JjID0g MHhGRkZGRkZGRjsgLyogaW5pdGlhbCB2YWx1ZSAqLwoKICAgZm9yIChpID0g MDsgaSA8IDY7IGkrKykKICAgewogICAgICBjID0gKihhZGRyICsgaSk7CiAg ICAgIGZvciAoaiA9IDA7IGogPCA4OyBqKyspCiAgICAgIHsKICAgICAgICAg Y2FycnkgPSAoKGNyYyAmIDB4ODAwMDAwMDApID8gMSA6IDApIF4gKGMgJiAw eDAxKTsKICAgICAgICAgY3JjIDw8PSAxOwogICAgICAgICBjID4+PSAxOwog ICAgICAgICBpZiAoY2FycnkpCiAgICAgICAgICAgY3JjID0gKGNyYyBeIDB4 MDRjMTFkYjYpIHwgY2Fycnk7CiAgICAgIH0KICAgfQoKICAgLyoKICAgICog cmV0dXJuIHRoZSBmaWx0ZXIgYml0IHBvc2l0aW9uCiAgICAqIE5vdGU6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xvdyB0cmFuc21pc3Npb24KICAgICAgICAgKiBkdXJp bmcgYW4gYXV0b25lZyBzZXNzaW9uIHNpbmNlIHRoYXQgY2FuIHNjcmV3IGl0 IHVwLgogICAgICAgICAqLwogICAgICAgIGlmIChzYy0+ZmV0X2NkYXRhLmZl dF90eF9oZWFkICE9IE5VTEwpCiAgICAgICAgewogICAgICAgICAgIHNjLT5m ZXRfd2FudF9hdXRvID0gMTsKICAgICAgICAgICByZXR1cm47CiAgICAgICAg fQogICAgICAgIGZldF9hdXRvbmVnX3htaXQoc2MpOwogICAgICAgIGlmcC0+ aWZfdGltZXIgPSA1OwogICAgICAgIHNjLT5mZXRfYXV0b25lZyA9IDE7CiAg ICAgICAgc2MtPmZldF93YW50X2F1dG8gPSAwOwogICAgICAgIHJldHVybjsK ICAgICAgY2FzZSBGRVRfRkxBR19ERUxBWVRJTUVPOgogICAgICAgIGlmcC0+ aWZfdGltZXIgPSAwOwogICAgICAgIHNjLT5mZXRfYXV0b25lZyA9IDA7CiAg ICAgICAgYnJlYWs7CiAgICAgIGRlZmF1bHQ6CiAgICAgICAgcHJpbnRmKCJm ZXQlZDogaW52YWxpZCBhdXRvbmVnIGZsYWc6ICVkXG4iLCBzYy0+ZmV0X3Vu aXQsIGZsYWcpOwogICAgICAgIHJldHVybjsKICAgfQoKICAgaWYgKGZldF9w aHlfcmVhZHJlZyhzYywgUEhZX0JNU1IpICYgUEhZX0JNU1JfQVVUT05FR0NP TVApCiAgIHsKICAgICAgaWYgKHZlcmJvc2UpCiAgICAgICAgcHJpbnRmKCJm ZXQlZDogYXV0b25lZyBjb21wbGV0ZSwgIiwgc2MtPmZldF91bml0KTsKCiAg ICAgIHBoeV9zdHMgPSBmZXRfcGh5X3JlYWRyZWcoc2MsIFBIWV9CTVNSKTsK ICAgfQogICBlbHNlCiAgIHsKICAgICAgaWYgKHZlcmJvc2UpCiAgICAgICAg cHJpbnRmKCJmZXQlZDogYXV0b25lZyBub3QgY29tcGxldGUsICIsIHNj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WV9ERVZJRCk7CiAgICAgICAgIGlmIChib290dmVyYm9zZSkKICAgICAgICAg ewogICAgICAgICAgICBwcmludGYoImZldCVkOiBmb3VuZCBQSFkgYXQgYWRk cmVzcyAlZCwgIiwKICAgICAgICAgICAgICAgICAgICBzYy0+ZmV0X3VuaXQs IHNjLT5mZXRfcGh5X2FkZHIpOwogICAgICAgICAgICBwcmludGYoInZlbmRv ciBpZDogJXggZGV2aWNlIGlkOiAleFxuIiwgcGh5X3ZpZCwgcGh5X2RpZCk7 CiAgICAgICAgIH0KCiAgICAgICAgIHAgPSBmZXRfcGh5czsKICAgICAgICAg d2hpbGUocC0+ZmV0X3ZpZCkKICAgICAgICAgewogICAgICAgICAgICBpZiAo cGh5X3ZpZCA9PSBwLT5mZXRfdmlkKQogICAgICAgICAgICB7CiAgICAgICAg ICAgICAgIHNjLT5mZXRfcGluZm8gPSBwOwogICAgICAgICAgICAgICBicmVh azsKICAgICAgICAgICAgfQogICAgICAgICAgICBwKys7CiAgICAgICAgIH0K ICAgICAgICAgaWYgKHNjLT5mZXRfcGluZm8gPT0gTlVMTCkKICAgICAgICAg ICBzYy0+ZmV0X3BpbmZvID0gJmZldF9waHlzW1BIWV9VTktOT1dOXTsKICAg ICAgICAgaWYgKGJvb3R2ZXJib3NlKQogICAgICAgICAgIHByaW50ZigiZmV0 JWQ6IFBIWSB0eXBlOiAlc1xuIiwKICAgICAgICAgICAgICAgICAgIHNjLT5m ZXRfdW5pdCwgc2MtPmZldF9waW5mby0+ZmV0X25hbWUpOwogICAgICB9CiAg ICAgIGVsc2UKICAgICAgewogICAgICAgICBwcmludGYoImZldCVkOiBNSUkg d2l0aG91dCBhbnkgcGh5IVxuIiwgc2MtPmZldF91bml0KTsKICAgICAgICAg Z290byBmYWlsOwogICAgICB9CiAgIH0KCiAgIC8qCiAgICAqIERvIGlmbWVk aWEgc2V0dXAuCiAgICAqLwogICBpZm1lZGlhX2luaXQoJnNjLT5pZm1lZGlh LCAwLCBmZXRfaWZt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gIHsKICAg ICAgY3VyX3J4ID0gc2MtPmZldF9jZGF0YS5mZXRfcnhfaGVhZDsKICAgICAg c2MtPmZldF9jZGF0YS5mZXRfcnhfaGVhZCA9IGN1cl9yeC0+ZmV0X25leHRk ZXNjOwoKICAgICAgaWYgKHJ4c3RhdCAmIEZFVF9FUykgICAgICAgLyogZXJy b3Igc3VtbWFyeSAqLwogICAgICB7ICAvKiBnaXZlIHVwIHRoaXMgcnggcGt0 ICovCiAgICAgICAgIGlmcC0+aWZfaWVycm9ycysrOwogICAgICAgICBjdXJf cngtPmZldF9wdHItPmZldF9zdGF0dXMgPSBGRVRfT1dOQnlOSUM7CiAgICAg ICAgIGNvbnRpbnVlOwogICAgICB9CgogICAgICAvKiBObyBlcnJvcnM7IHJl Y2VpdmUgdGhlIHBhY2tldC4gKi8KICAgICAgdG90YWxfbGVuID0gKHJ4c3Rh dCAmIEZFVF9GTE5HTUFTSykgPj4gRkVUX0ZMTkdTaGlmdDsKICAgICAgdG90 YWxfbGVuIC09IEVUSEVSX0NSQ19MRU47CgogICAgICBpZiAodG90YWxfbGVu IDwgTUlOQ0xTSVpFKQogICAgICB7CiAgICAgICAgIG0gPSBtX2RldmdldCht dG9kKGN1cl9yeC0+ZmV0X21idWYsIGNoYXIgKiksIHRvdGFsX2xlbiwgMCwg aWZwLCBOVUxMKTsKICAgICAgICAgY3VyX3J4LT5mZXRfcHRyLT5mZXRfc3Rh dHVzID0gRkVUX09XTkJ5TklDOwogICAgICAgICBpZiAobSA9PSBOVUxMKQog ICAgICAgICB7CiAgICAgICAgICAgIGlmcC0+aWZfaWVycm9ycysrOwogICAg ICAgICAgICBjb250aW51ZTsKICAgICAgICAgfQogICAgICB9CiAgICAgIGVs c2UKICAgICAgewogICAgICAgICBtID0gY3VyX3J4LT5mZXRfbWJ1ZjsKCiAg ICAgICAgIC8qCiAgICAgICAgICAqIFRyeSB0byBjb25qdXJlIHVwIGEgbmV3 IG1idWYgY2x1c3Rlci4gSWYgdGhhdAog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XQgKmlmcDsKdV9sb25nIGNvbW1hbmQ7CmNhZGRyX3Qg ZGF0YTsKewogICBzdHJ1Y3QgZmV0X3NvZnRjICpzYyA9IGlmcC0+aWZfc29m dGM7CiAgIHN0cnVjdCBpZnJlcSAqaWZyID0gKHN0cnVjdCBpZnJlcSAqKWRh dGE7CiAgIGludCBzLCBlcnJvciA9IDA7CgogICBzID0gc3BsaW1wKCk7Cgog ICBzd2l0Y2goY29tbWFuZCkKICAgewogICAgICBjYXNlIFNJT0NTSUZBRERS OgogICAgICBjYXNlIFNJT0NHSUZBRERSOgogICAgICBjYXNlIFNJT0NTSUZN VFU6CiAgICAgICAgZXJyb3IgPSBldGhlcl9pb2N0bChpZnAsIGNvbW1hbmQs IGRhdGEpOwogICAgICAgIGJyZWFrOwogICAgICBjYXNlIFNJT0NTSUZGTEFH UzoKICAgICAgICBpZiAoaWZwLT5pZl9mbGFncyAmIElGRl9VUCkKICAgICAg ICAgIGZldF9pbml0KHNjKTsKICAgICAgICBlbHNlIGlmIChpZnAtPmlmX2Zs YWdzICYgSUZGX1JVTk5JTkcpCiAgICAgICAgICBmZXRfc3RvcChzYyk7CiAg ICAgICAgZXJyb3IgPSAwOwogICAgICAgIGJyZWFrOwogICAgICBjYXNlIFNJ T0NBRERNVUxUSToKICAgICAgY2FzZSBTSU9DREVMTVVMVEk6CiAgICAgICAg ZmV0X3NldG11bHRpKHNjKTsKICAgICAgICBlcnJvciA9IDA7CiAgICAgICAg YnJlYWs7CiAgICAgIGNhc2UgU0lPQ0dJRk1FRElBOgogICAgICBjYXNlIFNJ T0NTSUZNRURJQToKICAgICAgICBlcnJvciA9IGlmbWVkaWFfaW9jdGwoaWZw LCBpZnIsICZzYy0+aWZtZWRpYSwgY29tbWFuZCk7CiAgICAgICAgYnJlYWs7 CiAgICAgIGRlZmF1bHQ6CiAgICAgICAgZXJyb3IgPSBFSU5WQUw7CiAgICAg ICAgYnJlYWs7CiAgIH0KCiAgICh2b2lkKXNwbHgocyk7Cgog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ZXJv KChjaGFyICopJnNjLT5mZXRfbGRhdGEtPmZldF90eF9saXN0LCBzaXplb2Yo c2MtPmZldF9sZGF0YS0+ZmV0X3R4X2xpc3QpKTsKCiAgIGlmcC0+aWZfZmxh Z3MgJj0gfihJRkZfUlVOTklORyB8IElGRl9PQUNUSVZFKTsKCiAgIHJldHVy bjsKfQoKCi8qCiAqIFN0b3AgYWxsIGNoaXAgSS9PIHNvIHRoYXQgdGhlIGtl cm5lbCdzIHByb2JlIHJvdXRpbmVzIGRvbid0CiAqIGdldCBjb25mdXNlZCBi eSBlcnJhbnQgRE1BcyB3aGVuIHJlYm9vdGluZy4KICovCnN0YXRpYyB2b2lk IGZldF9zaHV0ZG93bihob3d0bywgYXJnKQppbnQgaG93dG87CnZvaWQgKmFy ZzsKewogICBzdHJ1Y3QgZmV0X3NvZnRjICpzYyA9IChzdHJ1Y3QgZmV0X3Nv ZnRjICopYXJnOwoKICAgZmV0X3N0b3Aoc2MpOwoKICAgcmV0dXJuOwp9CgoK c3RhdGljIHN0cnVjdCBwY2lfZGV2aWNlIGZldF9kZXZpY2UgPSB7CiAgICAg ICAgImZldCIsCiAgICAgICAgZmV0X3Byb2JlLAogICAgICAgIGZldF9hdHRh Y2gsCiAgICAgICAgJmZldF9jb3VudCwKICAgICAgICBOVUxMCn07CkRBVEFf U0VUKHBjaWRldmljZV9zZXQsIGZldF9kZXZpY2UpOwo= ------=_NextPart_000_6671_3eb_241d Content-Type: application/octet-stream; name="IFFETreg.H" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="IFFETreg.H" LyoKICogcmVnaXN0ZXIgZGVmaW5pdGlvbnMuCiAqLwojZGVmaW5lIEZFVF9Q QVIwICAgICAgICAgMHgwICAgICAvKiBwaHlzaWNhbCBhZGRyZXNzIDAtMyAq LwojZGVmaW5lIEZFVF9QQVIxICAgICAgICAgMHgwNCAgICAvKiBwaHlzaWNh bCBhZGRyZXNzIDQtNSAqLwojZGVmaW5lIEZFVF9NQVIwICAgIC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lVOICAgICAgICAweDA0 MDAwMDAwICAgICAgLyogdHJhbnNtaXQgcnVubmluZyBzdGF0dXMgKi8KI2Rl ZmluZSBGRVRfRW5oYW5jZWQgICAgIDB4MDIwMDAwMDAgICAgICAvKiB0cmFu c21pdCBlbmhhbmNlZCBtb2RlICovCiNkZWZpbmUgRkVUX1RGQ0VOICAgICAg ICAweDAxMDAwMDAwICAgICAgLyogdHggZmxvdyBjb250cm9sIHBhY2tldCBl bmFibGUgKi8KI2RlZmluZSBGRVRfVEZUNjQgICAgICAgIDB4MDAwMDAwMDAg ICAgICAvKiA2NCBieXRlcyAqLwojZGVmaW5lIEZFVF9URlQzMiAgICAgICAg MHgwMDIwMDAwMCAgICAgIC8qIDMyIGJ5dGVzICovCiNkZWZpbmUgRkVUX1RG VDEyOCAgICAgICAweDAwNDAwMDAwICAgICAgLyogMTI4IGJ5dGVzICovCiNk ZWZpbmUgRkVUX1RGVDI1NiAgICAgICAweDAwNjAwMDAwICAgICAgLyogMjU2 IGJ5dGVzICovCiNkZWZpbmUgRkVUX1RGVDUxMiAgICAgICAweDAwODAwMDAw ICAgICAgLyogNTEyIGJ5dGVzICovCiNkZWZpbmUgRkVUX1RGVDc2OCAgICAg ICAweDAwQTAwMDAwICAgICAgLyogNzY4IGJ5dGVzICovCiNkZWZpbmUgRkVU X1RGVDEwMjQgICAgICAweDAwQzAwMDAwICAgICAgLyogMTAyNCBieXRlcyAq LwojZGVmaW5lIEZFVF9URlRTRiAgICAgICAgMHgwMEUwMDAwMCAgICAgIC8q IHN0b3JlIGFuZCBmb3J3YXJkICovCiNkZWZpbmUgRkVUX0ZEICAgICAgICAg ICAweDAwMTAwMDAwICAgICAgLyogZnVsbCBkdXBsZXggbW9kZSAqLwojZGVm aW5lIEZFVF9QUzEwICAgICAgICAgMHgwMDA4MDAwMCAgICAgIC8qIHBvcnQg c3BlZWQgaXMgMTBNICovCiNkZWZpbmUgRkVUX1RFICAgICAgICAgICAweDAw MDQwMDAwICAgICAgLyog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ckVy ciAgICAweDAwMDAwODAwICAgICAgLyogbWFzdGVyIGVycm9yICovCiNkZWZp bmUgRkVUX1RhcmdldEVyciAgICAweDAwMDAxMDAwICAgICAgLyogdGFyZ2V0 IGFib3J0ICovCiNkZWZpbmUgRkVUX1RVTkYgICAgICAgICAweDAwMDAwNDAw ICAgICAgLyogdHJhbnNtaXQgdW5kZXJmbG93ICovCiNkZWZpbmUgRkVUX1JP VkYgICAgICAgICAweDAwMDAwMjAwICAgICAgLyogcmVjZWl2ZSBvdmVyZmxv dyAqLwojZGVmaW5lIEZFVF9FVEkgICAgICAgICAgMHgwMDAwMDEwMCAgICAg IC8qIHRyYW5zbWl0IGVhcmx5IGludCAqLwojZGVmaW5lIEZFVF9FUkkgICAg ICAgICAgMHgwMDAwMDA4MCAgICAgIC8qIHJlY2VpdmUgZWFybHkgaW50ICov CiNkZWZpbmUgRkVUX0NOVE9WRiAgICAgICAweDAwMDAwMDQwICAgICAgLyog Y291bnRlciBvdmVyZmxvdyAqLwojZGVmaW5lIEZFVF9SQlUgICAgICAgICAg MHgwMDAwMDAyMCAgICAgIC8qIHJlY2VpdmUgYnVmZmVyIHVuYXZhaWxhYmxl ICovCiNkZWZpbmUgRkVUX1RCVSAgICAgICAgICAweDAwMDAwMDEwICAgICAg LyogdHJhbnNtaXQgYnVmZmVyIHVuYXZpbGFibGUgKi8KI2RlZmluZSBGRVRf VEkgICAgICAgICAgIDB4MDAwMDAwMDggICAgICAvKiB0cmFuc21pdCBpbnRl cnJ1cHQgKi8KI2RlZmluZSBGRVRfUkkgICAgICAgICAgIDB4MDAwMDAwMDQg ICAgICAvKiByZWNlaXZlIGludGVycnVwdCAqLwojZGVmaW5lIEZFVF9SeEVy ciAgICAgICAgMHgwMDAwMDAwMiAgICAgIC8qIHJlY2VpdmUgZXJyb3IgKi8K Ci8qCiAqIEludGVycnVwdCBNYXNrIFJlZ2lzdGVyCiAqLwojZGVmaW5lIEZF VF9NUkZDT04gICAgICAgMHgwMDAyMDAw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jAgICAgICAvKiBsb25nIHBhY2tldCByZWNlaXZlZCAqLwojZGVmaW5lIEZF VF9GQUUgICAgICAgICAgMHgwMDAwMDAxMCAgICAgIC8qIGZyYW1lIGFsaWdu IGVycm9yICovCiNkZWZpbmUgRkVUX0NSQyAgICAgICAgICAweDAwMDAwMDA4 ICAgICAgLyogY3JjIGVycm9yICovCiNkZWZpbmUgRkVUX1JYRVIgICAgICAg ICAweDAwMDAwMDA0ICAgICAgLyogcmVjZWl2ZSBlcnJvciAqLwojZGVmaW5l IEZFVF9SREVTMENIRUNLICAgMHgwMDAwNzhmYyAgICAgIC8qIG9ubHkgY2hl Y2sgTUFSLCBCQVIsIFBIWSwgRVMsIFJVTlQsCiAgICAgICAgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgICAgICBMT05HLCBGQUUsIENSQyBhbmQg UlhFUiBiaXRzICovCgovKgogKiByZWNlaXZlIGRlc2NyaXB0b3IgMQogKi8K I2RlZmluZSBGRVRfUlhJQyAgICAgICAgIDB4MDA4MDAwMDAgICAgICAvKiBp bnRlcnJ1cHQgY29udHJvbCAqLwojZGVmaW5lIEZFVF9SQlNNQVNLICAgICAg MHgwMDAwMDdmZiAgICAgIC8qIHJlY2VpdmUgYnVmZmVyIHNpemUgKi8KI2Rl ZmluZSBGRVRfUkJTU2hpZnQgICAgIDAKCi8qCiAqIHRyYW5zbWl0IGRlc2Ny aXB0b3IgMAogKi8KI2RlZmluZSBGRVRfVFhFUlIgICAgICAgIDB4MDAwMDgw MDAgICAgICAvKiB0cmFuc21pdCBlcnJvciAqLwojZGVmaW5lIEZFVF9KQUJU TyAgICAgICAgMHgwMDAwNDAwMCAgICAgIC8qIGphYmJlciB0aW1lb3V0ICov CiNkZWZpbmUgRkVUX0NTTCAgICAgICAgICAweDAwMDAyMDAwICAgICAgLyog Y2FycmllciBzZW5zZSBsb3N0ICovCiNkZWZpbmUgRkVUX0xDICAgICAgICAg ICAweDAwMDAxMDAwICAgICAgLyogbGF0ZSBjb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gICAgZmV0X3R4X2xpc3RbRkVUX1RYX0xJU1RfQ05UXTsK fTsKCnN0cnVjdCBmZXRfY2hhaW4gewogICAgICAgIHN0cnVjdCBmZXRfdHhk ZXNjICAgICAgICAqZmV0X3B0cjsKICAgICAgICBzdHJ1Y3QgbWJ1ZiAgICAg ICAgICAgICAqZmV0X21idWY7CiAgICAgICAgc3RydWN0IGZldF9jaGFpbiAg ICAgICAgICpmZXRfbmV4dGRlc2M7CiAgICAgICAgdV9pbnQ4X3QgICAgICAg ICAgICAgICAgZmV0X2xhc3RkZXNjOwp9OwoKc3RydWN0IGZldF9jaGFpbl9v bmVmcmFnIHsKICAgICAgICBzdHJ1Y3QgZmV0X2Rlc2MgICAgICAgICAgKmZl dF9wdHI7CiAgICAgICAgc3RydWN0IG1idWYgICAgICAgICAgICAgKmZldF9t YnVmOwogICAgICAgIHN0cnVjdCBmZXRfY2hhaW5fb25lZnJhZyAqZmV0X25l eHRkZXNjOwogICAgICAgIHVfaW50OF90ICAgICAgICAgICAgICAgIGZldF9y bGFzdDsKfTsKCnN0cnVjdCBmZXRfY2hhaW5fZGF0YSB7CiAgICAgICAgc3Ry dWN0IGZldF9jaGFpbl9vbmVmcmFnIGZldF9yeF9jaGFpbltGRVRfUlhfTElT VF9DTlRdOwogICAgICAgIHN0cnVjdCBmZXRfY2hhaW4gICAgICAgICBmZXRf dHhfY2hhaW5bRkVUX1RYX0xJU1RfQ05UXTsKCiAgICAgICAgc3RydWN0IGZl dF9jaGFpbl9vbmVmcmFnICpmZXRfcnhfaGVhZDsKCiAgICAgICAgc3RydWN0 IGZldF9jaGFpbiAgICAgICAgICpmZXRfdHhfaGVhZDsKICAgICAgICBzdHJ1 Y3QgZmV0X2NoYWluICAgICAgICAgKmZldF90eF90YWlsOwogICAgICAgIHN0 cnVjdCBmZXRfY2hhaW4gICAgICAgICAqZmV0X3R4X2ZyZWU7Cn07CgpzdHJ1 Y3QgZmV0X3R5cGUgewogICAgICAgIHVfaW50MTZfdCAgICAgICAgICAgICAg IGZldF92aWQ7CiAgICAgICAgdV9pbnQxNl90ICAgICAgICAgICAgICAgZmV0 X2RpZDsKICAgICAgICBjaGFyICAgICAgICAgICAgICAgICAgICAqZmV0X25h bWU7Cn07CgojZGVmaW5lIEZFVF9GTEFHX0ZPUkNFREVMQVkgICAgICAxCiNk ZWZpbmUgRkVUX0ZMQUdfU0NIRURERUxBWSAgICAgIDIKI2RlZmluZSBGRVRf RkxBR19ERUxBWVRJTUVPICAgICAgMwoKc3RydWN0IGZldF9zb2Z0YyB7CiAg ICAgICAgc3RydWN0IGFycGNvbSAgICAgICAgICAgYXJwY29tOyAgICAgICAg IC8qIGludGVyZmFjZSBpbmZvICovCiAgICAgICAgc3RydWN0IGlmbWVkaWEg ICAgICAgICAgaWZtZWRpYTsgICAgICAgIC8qIG1lZGlhIGluZm8gKi8KICAg ICAgICBidXNfc3BhY2VfaGFuZGxlX3QgICAgICBmZXRfYmhhbmRsZTsKICAg ICAgICBidXNfc3BhY2VfdGFnX3QgICAgICAgICBmZXRfYnRhZzsKICAgICAg ICBzdHJ1Y3QgZmV0X3R5cGUgICAgICAgICAgKmZldF9pbmZvOyAgICAgICAv KiBhZGFwdGVyIGluZm8gKi8KICAgICAgICBzdHJ1Y3QgZmV0X3R5cGUgICAg ICAgICAgKmZldF9waW5mbzsgICAgICAvKiBwaHkgaW5mbyAqLwogICAgICAg IHVfaW50OF90ICAgICAgICAgICAgICAgIGZldF91bml0OyAgICAgICAgLyog aW50ZXJmYWNlIG51bWJlciAqLwogICAgICAgIHVfaW50OF90ICAgICAgICAg ICAgICAgIGZldF90eXBlOwogICAgICAgIHVfaW50OF90ICAgICAgICAgICAg ICAgIGZldF9waHlfYWRkcjsgICAgLyogUEhZIGFkZHJlc3MgKi8KICAgICAg ICB1X2ludDhfdCAgICAgICAgICAgICAgICBmZXRfdHhfcGVuZDsgICAgIC8q IFRYIHBlbmRpbmcgKi8KICAgICAgICB1X2ludDhfdCAgICAgICAgICAgICAg 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BFICAgICAg MHgwRQojZGVmaW5lIEZFVF9QQ0lfTE9JTyAgICAgICAgICAgICAweDEwCiNk ZWZpbmUgRkVUX1BDSV9MT01FTSAgICAgICAgICAgIDB4MTQKI2RlZmluZSBG RVRfUENJX0JJT1NST00gICAgICAgICAgMHgzMAojZGVmaW5lIEZFVF9QQ0lf SU5UTElORSAgICAgICAgICAweDNDCiNkZWZpbmUgRkVUX1BDSV9JTlRQSU4g ICAgICAgICAgIDB4M0QKI2RlZmluZSBGRVRfUENJX01JTkdOVCAgICAgICAg ICAgMHgzRQojZGVmaW5lIEZFVF9QQ0lfTUlOTEFUICAgICAgICAgICAweDBG CiNkZWZpbmUgRkVUX1BDSV9SRVNFVE9QVCAgICAgICAgIDB4NDgKI2RlZmlu ZSBGRVRfUENJX0VFUFJPTV9EQVRBICAgICAgMHg0QwoKI2RlZmluZSBQSFlf VU5LTk9XTiAgICAgICAgICAgICAzCgojZGVmaW5lIEZFVF9QSFlBRERSX01J TiAgICAgICAgICAweDAwCiNkZWZpbmUgRkVUX1BIWUFERFJfTUFYICAgICAg ICAgIDB4MUYKCiNkZWZpbmUgUEhZX0JNQ1IgICAgICAgICAgICAgICAgMHgw MAojZGVmaW5lIFBIWV9CTVNSICAgICAgICAgICAgICAgIDB4MDEKI2RlZmlu ZSBQSFlfVkVOSUQgICAgICAgICAgICAgICAweDAyCiNkZWZpbmUgUEhZX0RF VklEICAgICAgICAgICAgICAgMHgwMwojZGVmaW5lIFBIWV9BTkFSICAgICAg ICAgICAgICAgIDB4MDQKI2RlZmluZSBQSFlfTFBBUiAgICAgICAgICAgICAg ICAweDA1CiNkZWZpbmUgUEhZX0FORVhQICAgICAgICAgICAgICAgMHgwNgoj ZGVmaW5lIFBIWV9OUFRSICAgICAgICAgICAgICAgIDB4MDcKI2RlZmluZSBQ SFlfTFBOUFIgICAgICAgICAgICAgICAweDA4CiNkZWZpbmUgUEhZXzEwMDBD UiAgICAgICAgICAgICAgMHgwOQojZGVmaW5lIFBIW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ZpbmUgUEhZX0JNU1JfUlNWRDMgICAgICAgICAgICAg ICAgICAweDAxMDAgIC8qIHdyaXRlIGFzIHplcm8sIGRvbid0IGNhcmUgKi8K I2RlZmluZSBQSFlfQk1TUl9SU1ZENCAgICAgICAgICAgICAgICAgIDB4MDA4 MCAgLyogd3JpdGUgYXMgemVybywgZG9uJ3QgY2FyZSAqLwojZGVmaW5lIFBI WV9CTVNSX01GUFJFU1VQICAgICAgICAgICAgICAgMHgwMDQwCiNkZWZpbmUg UEhZX0JNU1JfQVVUT05FR0NPTVAgICAgICAgICAgICAweDAwMjAKI2RlZmlu ZSBQSFlfQk1TUl9SRU1GQVVMVCAgICAgICAgICAgICAgIDB4MDAxMAojZGVm aW5lIFBIWV9CTVNSX0NBTkFVVE9ORUcgICAgICAgICAgICAgMHgwMDA4CiNk ZWZpbmUgUEhZX0JNU1JfTElOS1NUQVQgICAgICAgICAgICAgICAweDAwMDQK I2RlZmluZSBQSFlfQk1TUl9KQUJCRVIgICAgICAgICAgICAgICAgIDB4MDAw MgojZGVmaW5lIFBIWV9CTVNSX0VYVEVOREVEICAgICAgICAgICAgICAgMHgw MDAxCg== ------=_NextPart_000_6671_3eb_241d Content-Type: text/plain; name="README.TXT"; format=flowed Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="README.TXT" Installation: 1. copy the source codes if_fet.c and iffetreg.h to /sys/pci directory, #cp if_fet.c /sys/pci #cp iffetreg.h /sys/pci 2. modify /sys/conf/files, add the following line pci/if_fet.c optional fet device-driver 3. modify /usr/src/sys/i386/conf/GENERIC, add the following line device my0 4. compile the kernel, #cd /usr/src/sys/i386/conf #cp GENERIC MYKERNEL #/usr/sbin/config MYKERNEL #cd /usr/src/sys/compile/MYKERNEL #make depend #make #make install 5. reboot the system, #reboot 6. bind your card to an IP address #ifconfig my0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK} 7. now, you should be able to ping local network. ------=_NextPart_000_6671_3eb_241d--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY1-F40W1MsB5ReKQt000473c2>