From owner-freebsd-hackers Wed Sep 23 13:15:22 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA05151 for freebsd-hackers-outgoing; Wed, 23 Sep 1998 13:15:22 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from ns.plaut.de (ns.plaut.de [194.39.177.166]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA05146 for ; Wed, 23 Sep 1998 13:15:16 -0700 (PDT) (envelope-from root@nihil.plaut.de) Received: from totum.plaut.de (totum.plaut.de [194.39.177.9]) by ns.plaut.de (8.8.8/8.8.7) with ESMTP id WAA14496; Wed, 23 Sep 1998 22:15:04 +0200 (CEST) (envelope-from root@nihil.plaut.de) Received: (from uucp@localhost) by totum.plaut.de (8.8.7/8.7.3) with UUCP id WAA04680; Wed, 23 Sep 1998 22:15:04 +0200 (MET DST) Received: from localhost (root@localhost) by nihil.plaut.de (8.9.1/8.8.8) with SMTP id WAA00817; Wed, 23 Sep 1998 22:14:31 +0200 (CEST) (envelope-from root@nihil.plaut.de) Date: Wed, 23 Sep 1998 22:14:18 +0200 (CEST) From: Michael Reifenberger To: Brian Jenkins cc: freebsd-hackers@FreeBSD.ORG Subject: Re: PCMCIA Controller Not Found In-Reply-To: <19980923173613.16462.rocketmail@send103.yahoomail.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 23 Sep 1998, Brian Jenkins wrote: ... > Cirrus Logic CL-PD6730, but the PCI code is not finding it. I have > included the dmesg output below. How can I change the PCI code or my > configuration to get it working? The first patch is in fact a noop to print the current ioaddr which gets hardcoded into the second one. Was too lazy... Index: pci/pcic_p.c =================================================================== RCS file: /mnt/CVS/src/sys/pci/pcic_p.c,v retrieving revision 1.6 diff -u -1 -r1.6 pcic_p.c --- pcic_p.c 1998/08/18 00:32:48 1.6 +++ pcic_p.c 1998/08/21 20:24:53 @@ -92,4 +92,8 @@ u_long pcic_type; /* The vendor id of the PCI pcic */ +u_long pcic_pci_ioaddr; pcic_type = pci_conf_read(config_id, PCI_ID_REG); + pcic_pci_ioaddr = pci_conf_read( config_id, PCI_MAP_REG_START) & ~PCI_MAP_IO; + pci_conf_write( config_id, PCI_COMMAND_STATUS_REG, 0x00ff00ff); +printf("ioaddr:%x\n",pcic_pci_ioaddr); Index: pccard/pcic.c =================================================================== RCS file: /mnt/CVS/src/sys/pccard/pcic.c,v retrieving revision 1.62 diff -u -1 -r1.62 pcic.c --- pcic.c 1998/08/25 22:46:44 1.62 +++ pcic.c 1998/08/30 21:28:46 @@ -55,2 +55,3 @@ +static u_long pcic_pci_ioaddr = 0x3000; /* @@ -591,2 +592,8 @@ sp->offset = slotnum * PCIC_SLOT_SIZE; +printf("\nIOADDR:%x\n", pcic_pci_ioaddr); + if (pcic_pci_ioaddr) { + sp->index = pcic_pci_ioaddr; + sp->data = pcic_pci_ioaddr +1; + sp->offset = slotnum * PCIC_SLOT_SIZE; + } } else { Bye! ---- Michael Reifenberger Plaut Software GmbH, R/3 Basis To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message