summaryrefslogtreecommitdiffstats
path: root/sys/pci/pci.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-05-30 16:53:49 +0000
committerphk <phk@FreeBSD.org>1999-05-30 16:53:49 +0000
commit7e4a9dced9acd97789b37c32063ee7a8aa133f6d (patch)
tree407469b3581129f6442306683b28d6b54126baad /sys/pci/pci.c
parentdfa3967ffa4d84ed0b1691fac89ba3e73b8544e0 (diff)
downloadFreeBSD-src-7e4a9dced9acd97789b37c32063ee7a8aa133f6d.zip
FreeBSD-src-7e4a9dced9acd97789b37c32063ee7a8aa133f6d.tar.gz
This commit should be a extensive NO-OP:
Reformat and initialize correctly all "struct cdevsw". Initialize the d_maj and d_bmaj fields. The d_reset field was not removed, although it is never used. I used a program to do most of this, so all the files now use the same consistent format. Please keep it that way. Vinum and i4b not modified, patches emailed to respective authors.
Diffstat (limited to 'sys/pci/pci.c')
-rw-r--r--sys/pci/pci.c23
1 files changed, 20 insertions, 3 deletions
diff --git a/sys/pci/pci.c b/sys/pci/pci.c
index 552e202..bf5e657 100644
--- a/sys/pci/pci.c
+++ b/sys/pci/pci.c
@@ -23,7 +23,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: pci.c,v 1.104 1999/05/20 15:33:31 gallatin Exp $
+ * $Id: pci.c,v 1.105 1999/05/30 10:54:31 dfr Exp $
*
*/
@@ -847,8 +847,25 @@ pci_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p)
#define PCI_CDEV 78
static struct cdevsw pcicdev = {
- pci_open, pci_close, noread, nowrite, pci_ioctl, nostop, noreset,
- nodevtotty, seltrue, nommap, nostrategy, "pci", 0, PCI_CDEV
+ /* open */ pci_open,
+ /* close */ pci_close,
+ /* read */ noread,
+ /* write */ nowrite,
+ /* ioctl */ pci_ioctl,
+ /* stop */ nostop,
+ /* reset */ noreset,
+ /* devtotty */ nodevtotty,
+ /* poll */ nopoll,
+ /* mmap */ nommap,
+ /* strategy */ nostrategy,
+ /* name */ "pci",
+ /* parms */ noparms,
+ /* maj */ PCI_CDEV,
+ /* dump */ nodump,
+ /* psize */ nopsize,
+ /* flags */ 0,
+ /* maxio */ 0,
+ /* bmaj */ -1
};
#ifdef DEVFS
OpenPOWER on IntegriCloud