Date: Mon, 24 Aug 1998 02:52:21 -0400 From: "Gary Palmer" <gpalmer@FreeBSD.ORG> To: Bill Paul <wpaul@skynet.ctr.columbia.edu> Cc: chuckr@glue.umd.edu (Chuck Robey), current@FreeBSD.ORG Subject: Re: pciconf Message-ID: <14169.903941541@gjp.erols.com> In-Reply-To: Your message of "Sun, 23 Aug 1998 21:47:58 EDT." <199808240147.VAA19462@skynet.ctr.columbia.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
Bill Paul wrote in message ID
<199808240147.VAA19462@skynet.ctr.columbia.edu>:
> I don't know why the code is turned off. It looks as though the
> other cases should work though.
To quote the code:
case PCIOCGETCONF:
#ifdef NOTYET
static struct pci_conf *pci_dev_list;
static unsigned pci_dev_list_count;
static unsigned pci_dev_list_size;
cio = (struct pci_conf_io *)data;
iolen = min(cio->pci_len,
pci_dev_list_count * sizeof(struct pci_conf));
cio->pci_len = pci_dev_list_count * sizeof(struct pci_conf);
error = copyout(pci_dev_list, cio->pci_buf, iolen);
Spot that (even if you move the variable decls to the proper location),
that pci_dev_list_count and pci_dev_list_size are never calculated. My
guess is that there is meant to be code elsewhere to initialize those,
but its not written yet.
Gary
--
Gary Palmer FreeBSD Core Team Member
FreeBSD: Turning PC's into workstations. See http://www.FreeBSD.ORG/ for info
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14169.903941541>
