From owner-freebsd-mobile Sat Sep 18 8:56: 2 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from tele-post-20.mail.demon.net (tele-post-20.mail.demon.net [194.217.242.20]) by hub.freebsd.org (Postfix) with ESMTP id F15B414E23 for ; Sat, 18 Sep 1999 08:55:58 -0700 (PDT) (envelope-from dmlb@ragnet.demon.co.uk) Received: from ragnet.demon.co.uk ([158.152.46.40]) by tele-post-20.mail.demon.net with esmtp (Exim 2.12 #2) id 11SMqD-00036G-0K; Sat, 18 Sep 1999 15:55:57 +0000 Received: from dmlb by ragnet.demon.co.uk with local (Exim 2.12 #1) id 11SMjy-000JcF-00; Sat, 18 Sep 1999 16:49:30 +0100 Content-Length: 1125 Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Date: Sat, 18 Sep 1999 16:49:30 +0100 (BST) From: Duncan Barclay To: freebsd-mobile@freebsd.org, freebsd-xircom@lovett.com Subject: Patch for RealPort re-insertion Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi I managed to get my RealPort (Ethernet) to work over re-insertions! The patch below just calls the RealPort hack from xe_card_init if the card has already been initialised. The patch is against 1.20 downloaded from Scott's site. --- if_xe.c~ Sun Jun 13 20:17:41 1999 +++ if_xe.c Sat Sep 18 16:39:45 1999 @@ -505,6 +505,13 @@ /* Re-attach an existing device */ if (scp->gone) { scp->gone = 0; + + /* Hack RealPorts into submission */ + if (scp->dingo && xe_cem56fix(scp) < 0) { + printf( "xe%d: Unable to fix your RealPort\n", unit ); + return ENODEV; + } + return 0; } Duncan PS. I really like this mobile computing lark. I debugged this waiting for my wife to finish wanderering around a garden centre. I tend to invoke fatal DNA crashes in plants whenever I try to get them to work... --- ________________________________________________________________________ Duncan Barclay | God smiles upon the little children, dmlb@ragnet.demon.co.uk | the alcoholics, and the permanently stoned. ________________________________________________________________________ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message