From owner-freebsd-mobile Mon May 8 10:30: 5 2000 Delivered-To: freebsd-mobile@freebsd.org Received: from fleming.cs.strath.ac.uk (fleming.cs.strath.ac.uk [130.159.196.126]) by hub.freebsd.org (Postfix) with ESMTP id 119A437B90E; Mon, 8 May 2000 10:29:51 -0700 (PDT) (envelope-from roger@cs.strath.ac.uk) Received: from cs.strath.ac.uk (posh.dmem.strath.ac.uk [130.159.202.3]) by fleming.cs.strath.ac.uk (8.8.8/8.8.8) with ESMTP id SAA09751 Mon, 8 May 2000 18:29:36 +0100 (BST) Message-ID: <3916F954.BD03F092@cs.strath.ac.uk> Date: Mon, 08 May 2000 18:28:52 +0100 From: Roger Hardiman Organization: University of Strathclyde X-Mailer: Mozilla 4.72 [en] (X11; I; Linux 2.2.12 i386) X-Accept-Language: en MIME-Version: 1.0 To: bsd-nomads@clave.gr.jp, roger@freebsd.org, mobile@freebsd.org Subject: Bug fix for PAO3 for Nokia Card Phone 2.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I have attached a patch to make PAO3 work with the Nokia Card Phone 2.0. Currently PAO will panic the kernel due to a bad CIS tuple. I'll explain more later but the fix is to card.c in pccardd. Look for } else if (cio) { sio->addr = cio->addr; sio->size = cio->size; for (i = sio->addr; i < sio->addr + sio->size - 1; i++) if (!bit_test(io_kern, i)) return (-3); and change the IF statement to } else if ((cio)&&(cio->addr != 0)) { There is a entry in the Configuration Entry tuple like this Card decodes 4 address lines, 8 Bit I/O only I/O address # 1: block length = 0x10 IRQ modes: Level IRQs: 4 5 8 9 10 11 12 13 14 15 There is a I/O address #1 entry but there is no start_address. This causes PAO to Panic or hang (it does this randomly) because it passes the iobase address of '0' to the sio driver. Please can you work this into the PAO source please Thanks Roger -- Roger Hardiman roger@freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message