Date: Wed, 23 Sep 1998 22:14:18 +0200 (CEST) From: Michael Reifenberger <root@nihil.plaut.de> To: Brian Jenkins <b_jenkins@yahoo.com> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: PCMCIA Controller Not Found Message-ID: <Pine.BSF.4.02A.9809232208050.229-100000@nihil.plaut.de> In-Reply-To: <19980923173613.16462.rocketmail@send103.yahoomail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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... <CRUDE_HACKALARM> 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 { </CRUDE_HACKALARM> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.02A.9809232208050.229-100000>