From owner-freebsd-hardware@FreeBSD.ORG Wed Apr 2 05:49:44 2003 Return-Path: Delivered-To: freebsd-hardware@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F090237B401 for ; Wed, 2 Apr 2003 05:49:44 -0800 (PST) Received: from critchley.biz (pc2-flit1-2-cust182.lutn.cable.ntl.com [62.255.182.182]) by mx1.FreeBSD.org (Postfix) with SMTP id 9BD9A43F75 for ; Wed, 2 Apr 2003 05:49:43 -0800 (PST) (envelope-from john@critchley.biz) To: freebsd-hardware@freebsd.org Date: Wed, 2 Apr 2003 14:49:41 +0100 (BST) In-Reply-To: <20030329133114.A16353@neurosoft.org> from "Zachariah P Garner" at Mar 29, 2003 01:31:14 PM X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: john@critchley.biz Sender: john@critchley.biz Message-ID: <200304021449.aa13687@banana.critchley.biz> Subject: Linksys WMP11 card X-BeenThere: freebsd-hardware@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: General discussion of FreeBSD hardware List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Apr 2003 13:49:45 -0000 Hi, I'd like to get this going under FreeBSD. It seems to have the same Prism hardware as the PCMCIA cards made by Linksys, so I thought I'd try getting it working. I added {0x14e4, 0x4301, WI_BUS_PCI_NATIVE, "Linksys WMP11"}, to the pci_ids in the /usr/src/sys/dev/wi/if_wi_pci.c file. It didn't work: wi0: wi_pci_attach() failed to enable pci! I added debugging 139 command = pci_read_config(dev, PCIR_COMMAND, 4); 140 wanted = PCIM_CMD_PORTEN|PCIM_CMD_MEMEN; 141 command |= wanted; 142 pci_write_config(dev, PCIR_COMMAND, command, 4); 143 command = pci_read_config(dev, PCIR_COMMAND, 4); 144 if ((command & wanted) != wanted) { 145 device_printf(dev, "wi_pci_attach() failed to enable pci!\n"); 146 /* BEGIN -jc */ 147 printf("Command state=%x Wanted to add=%x\n", command, wanted); 148 if(!(command&PCIM_CMD_PORTEN)) 149 printf("PCIM_CMD_PORTEN failed to happen\n"); 150 if(!(command&PCIM_CMD_MEMEN)) 151 printf("PCIM_CMD_MEMEN failed to happen\n"); 152 /* END -jc */ 153 return (ENXIO); 154 } 155 and found that "PCIM_CMD_PORTEN failed to happen" Am I on the right track? Does this card work on any other BSD? -jc