From owner-freebsd-mobile@FreeBSD.ORG Sun May 25 04:33:25 2003 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7E5C637B401 for ; Sun, 25 May 2003 04:33:23 -0700 (PDT) Received: from dangermouse.pod4.org (dangermouse.pod4.org [213.253.1.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id B745D43F93 for ; Sun, 25 May 2003 04:33:22 -0700 (PDT) (envelope-from stu@ipng.org.uk) Received: from cry0gen by dangermouse.pod4.org with local (Exim 4.10) id 19Jtkf-0001uK-00 for freebsd-mobile@freebsd.org; Sun, 25 May 2003 12:33:21 +0100 Date: Sun, 25 May 2003 12:33:21 +0100 From: Stuart Walsh To: freebsd-mobile@freebsd.org Message-ID: <20030525113321.GC6978@dangermouse.pod4.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i Subject: pccard CIS reading problems X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 May 2003 11:33:26 -0000 Hi folks, There has been one or two mentions of the atmel chipset wireless cards on this list before, but nothing much said, so I decided I would try and port the linux driver, or at least attempt to. Using a fresh checkout of -current, when you insert the card it causes a page fault which I tracked down to a runaway loop in pccard_scan_cis. I added the sanity check that NetBSD has in this function and that stopped the panic. However, the CIS info that is being read is obviosuly garbage and mostly zeros. This leads me to believe that the card's attribute memory isnt being mapped properly or something. This thing is, under NetBSD, the pcmcia driver _can_ read the CIS, and it comes up with the proper info. Can anyone shed any light on this or point me in a direction to go from here? Thanks, Stuart -- Stuart Walsh - stu@ipng.org.uk IPng UK - info@ipng.org.uk - http://ipng.org.uk