Module Name:    src
Committed By:   dyoung
Date:           Wed Feb 24 21:24:20 UTC 2010

Modified Files:
        src/sys/arch/x86/include: pci_machdep.h

Log Message:
Change 'typedef void *pci_chipset_tag_t' to 'typedef struct
pci_chipset_tag *pci_chipset_tag_t' for an improvement in type safety.
(Back when I did the same for cardbus_chipset_tag_t, it helped to turn
up some bugs!)


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/arch/x86/include/pci_machdep.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/include/pci_machdep.h
diff -u src/sys/arch/x86/include/pci_machdep.h:1.9 src/sys/arch/x86/include/pci_machdep.h:1.10
--- src/sys/arch/x86/include/pci_machdep.h:1.9	Tue Feb 16 00:03:47 2010
+++ src/sys/arch/x86/include/pci_machdep.h	Wed Feb 24 21:24:20 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: pci_machdep.h,v 1.9 2010/02/16 00:03:47 dyoung Exp $	*/
+/*	$NetBSD: pci_machdep.h,v 1.10 2010/02/24 21:24:20 dyoung Exp $	*/
 
 /*
  * Copyright (c) 1996 Christopher G. Demetriou.  All rights reserved.
@@ -71,10 +71,14 @@
 extern struct x86_bus_dma_tag pci_bus_dma64_tag;
 #endif
 
+struct {
+        int dummy;
+} pci_chipset_tag;
+
 /*
  * Types provided to machine-independent PCI code
  */
-typedef void *pci_chipset_tag_t;
+typedef struct pci_chipset_tag *pci_chipset_tag_t;
 typedef union x86_pci_tag_u pcitag_t;
 typedef int pci_intr_handle_t;
 

Reply via email to