From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <89f6cbca4e61c27f3d6bf448bda411cb@plan9.bell-labs.com> To: 9fans@cse.psu.edu Subject: Re: [9fans] RTL 8139 driver From: "rob pike, esq." MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-xskcaflvrpnpgfyqxpzwdilflm" Date: Sun, 28 Apr 2002 08:54:14 -0400 Topicbox-Message-UUID: 7cd589a6-eaca-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-xskcaflvrpnpgfyqxpzwdilflm Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Oops. Yes, 'Timer' is now a defined type so can't be used as an enumerated constant. Looks like we didn't try compiling this driver recently. I changed 'Timer' to 'Timerbit' and it compiled. /n/emelieother/plan9//sys/src/9/pc/ether8139.c:76 c /sys/src/9/pc/ether8139.c:76 < Timer = 0x4000, /* Timer */ --- > Timerbit = 0x4000, /* Timer */ /n/emelieother/plan9//sys/src/9/pc/ether8139.c:355 c /sys/src/9/pc/ether8139.c:355 < csr16w(ctlr, Imr, Serr|Timer|Fovw|PunLc|Rxovw|Ter|Tok|Rer|Rok); --- > csr16w(ctlr, Imr, Serr|Timerbit|Fovw|PunLc|Rxovw|Ter|Tok|Rer|Rok); /n/emelieother/plan9//sys/src/9/pc/ether8139.c:588 c /sys/src/9/pc/ether8139.c:588 < if(isr & Timer) --- > if(isr & Timerbit) --upas-xskcaflvrpnpgfyqxpzwdilflm Content-Type: message/rfc822 Content-Disposition: inline Received: from plan9.cs.bell-labs.com ([135.104.9.2]) by plan9; Sun Apr 28 08:37:16 EDT 2002 Received: from mail.cse.psu.edu ([130.203.4.6]) by plan9; Sun Apr 28 08:37:15 EDT 2002 Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.16.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 83BF6199BB; Sun, 28 Apr 2002 08:37:09 -0400 (EDT) Delivered-To: 9fans@cse.psu.edu Received: from cpu0.itic.ca (cust230.209.188.66.dsl.accessv.com [209.188.66.230]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id 702271998C for <9fans@cse.psu.edu>; Sun, 28 Apr 2002 08:36:44 -0400 (EDT) Received: from cpq1700 ([192.168.255.253]) by cpu0; Sun Apr 28 03:37:38 EDT 2002 From: To: <9fans@cse.psu.edu> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Importance: Normal Subject: [9fans] RTL 8139 driver Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.9 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Sun, 28 Apr 2002 08:36:18 -0500 I wanted to try rtl8139 under r4 I added in plan9.ini ether0=3Dtype=3Drtl8139 but binding claims that : no free devices Then I tried with 3 <> models having RTL8139 same problem... Finally, I added a line=20 ether8139 pci in the /sys/src/9/pc/pcdisk file but now compilation claims that : 8c -FVw ether8139.c ether8139.c:76 syntax error, last name Timer Any idea ? --upas-xskcaflvrpnpgfyqxpzwdilflm--