From owner-freebsd-hackers Thu Nov 12 07:07:24 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA15582 for freebsd-hackers-outgoing; Thu, 12 Nov 1998 07:07:24 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from heathers.stdio.com (heathers.stdio.com [199.89.192.5]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA15575 for ; Thu, 12 Nov 1998 07:07:22 -0800 (PST) (envelope-from lile@stdio.com) Received: from localhost (lile@localhost) by heathers.stdio.com (8.8.8/8.8.8) with SMTP id KAA24869 for ; Thu, 12 Nov 1998 10:10:30 -0500 (EST) (envelope-from lile@heathers.stdio.com) Date: Thu, 12 Nov 1998 10:10:30 -0500 (EST) From: "Larry S. Lile" To: hackers@FreeBSD.ORG Subject: PCI device question 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 I am working on PCI support for the Olicom token-ring driver, the ISA cards are working fine now. I need one little bit of info for the PCI devices that I do not know how to get at. >4.1.3 PCI configuration > >For PCI adapters the configuration is retrieved by the driver through PCI >BIOS calls (or their equivalents in the OS in question). The PCI ID to >look for is 108D0001 for OC-3136 and OC-3137. To set-up the complete >configuration, retrieve the 64 byte configuration space header and pass >this to TRlld: > > int TRlldPCIConfig(TRlldDriver_t * driver, > TRlldAdapterConfig_t * config, > char * PCIConfiguration) > > driver the driver definition block. > > config the configuration structure to set-up. > > PCIConfiguration pointer to the 64 byte PCI configuration space > header. What is the "64 byte PCI configuration space header" and where do I get that from (what pci_* call) I already know the io-base address, dma-level, csn, pci slot, ... from another call. Thanks Larry Lile lile@stdio.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message