From owner-cvs-src-old@FreeBSD.ORG Thu Apr 2 17:09:04 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AF6710656CB for ; Thu, 2 Apr 2009 17:09:04 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 61B998FC08 for ; Thu, 2 Apr 2009 17:09:04 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n32H94QT074219 for ; Thu, 2 Apr 2009 17:09:04 GMT (envelope-from imp@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n32H94vG074218 for cvs-src-old@freebsd.org; Thu, 2 Apr 2009 17:09:04 GMT (envelope-from imp@repoman.freebsd.org) Message-Id: <200904021709.n32H94vG074218@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to imp@repoman.freebsd.org using -f From: Warner Losh Date: Thu, 2 Apr 2009 17:08:54 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/ed if_ed_pccard.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Apr 2009 17:09:08 -0000 imp 2009-04-02 17:08:54 UTC FreeBSD src repository Modified files: sys/dev/ed if_ed_pccard.c Log: SVN rev 190644 on 2009-04-02 17:08:54Z by imp The AX88190 has 64k of external SRAM, of which 62k can be used for packet data. However, the AX88190A moves this on-chip and reduces it to the more traditional 16k from 16k-32k. The AX88790 follows the '190A. Probe memory above 32k to see which flavor of the '190 we have and use the extra memory if we have it. Eliminate the kludgy read eeprom for the ID code. It really is just a memory read at location 0x400, so just use that instead. Makes the code easier to understand as well as eliminates some magic numbers. Revision Changes Path 1.127 +29 -50 src/sys/dev/ed/if_ed_pccard.c