From owner-freebsd-current Sun Aug 23 18:46:11 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id SAA24320 for freebsd-current-outgoing; Sun, 23 Aug 1998 18:46:11 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from skynet.ctr.columbia.edu (skynet.ctr.columbia.edu [128.59.64.70]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id SAA24257 for ; Sun, 23 Aug 1998 18:45:45 -0700 (PDT) (envelope-from wpaul@skynet.ctr.columbia.edu) Received: (from wpaul@localhost) by skynet.ctr.columbia.edu (8.6.12/8.6.9) id VAA19462; Sun, 23 Aug 1998 21:47:59 -0400 From: Bill Paul Message-Id: <199808240147.VAA19462@skynet.ctr.columbia.edu> Subject: Re: pciconf To: chuckr@glue.umd.edu (Chuck Robey) Date: Sun, 23 Aug 1998 21:47:58 -0400 (EDT) Cc: current@FreeBSD.ORG In-Reply-To: from "Chuck Robey" at Aug 23, 98 07:58:31 pm X-Mailer: ELM [version 2.4 PL24] Content-Type: text Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Of all the gin joints in all the towns in all the world, Chuck Robey had to walk into mine and say: > While investigating pci stuff (for an audio driver) I saw a man page for > pciconf. It says that there's a -l option, so I tried that, as both a > regular user and root, and both times I got: > > picnic:/usr2/chuckr:55 >pciconf -l > pciconf: ioctl(PCIOCGETCONF): Operation not supported by device It looks like somebody put a nice bit #ifdef NOTYET around the PCIOCGETCONF case in the ioctl routine in /sys/pci/pci.c. The CAM snapshot that I've been using doesn't have this. I don't know why the code is turned off. It looks as though the other cases should work though. -Bill -- ============================================================================= -Bill Paul (212) 854-6020 | System Manager, Master of Unix-Fu Work: wpaul@ctr.columbia.edu | Center for Telecommunications Research Home: wpaul@skynet.ctr.columbia.edu | Columbia University, New York City ============================================================================= "It is not I who am crazy; it is I who am mad!" - Ren Hoek, "Space Madness" ============================================================================= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message