Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Jun 2009 17:06:32 +0000 (UTC)
From:      Andriy Gapon <avg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r194018 - in head/sys/i386: include pci
Message-ID:  <200906111706.n5BH6W0P054067@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: avg
Date: Thu Jun 11 17:06:31 2009
New Revision: 194018
URL: http://svn.freebsd.org/changeset/base/194018

Log:
  strict kobj signatures: fix legacy i386 pcib_write_config impl
  
  Reviewed by:	imp, current@
  Approved by:	jhb (mentor)

Modified:
  head/sys/i386/include/legacyvar.h
  head/sys/i386/pci/pci_bus.c

Modified: head/sys/i386/include/legacyvar.h
==============================================================================
--- head/sys/i386/include/legacyvar.h	Thu Jun 11 17:06:07 2009	(r194017)
+++ head/sys/i386/include/legacyvar.h	Thu Jun 11 17:06:31 2009	(r194018)
@@ -43,12 +43,12 @@ LEGACY_ACCESSOR(pcibus,			PCIBUS,		uint3
 #undef LEGACY_ACCESSOR
 
 int	legacy_pcib_maxslots(device_t dev);
-uint32_t legacy_pcib_read_config(device_t dev, int bus, int slot, int func,
-    int reg, int bytes);
+uint32_t legacy_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func,
+    u_int reg, int bytes);
 int	legacy_pcib_read_ivar(device_t dev, device_t child, int which,
     uintptr_t *result);
-void	legacy_pcib_write_config(device_t dev, int bus, int slot, int func,
-    int reg, u_int32_t data, int bytes);
+void	legacy_pcib_write_config(device_t dev, u_int bus, u_int slot, u_int func,
+    u_int reg, u_int32_t data, int bytes);
 int	legacy_pcib_write_ivar(device_t dev, device_t child, int which,
     uintptr_t value);
 struct resource *legacy_pcib_alloc_resource(device_t dev, device_t child,

Modified: head/sys/i386/pci/pci_bus.c
==============================================================================
--- head/sys/i386/pci/pci_bus.c	Thu Jun 11 17:06:07 2009	(r194017)
+++ head/sys/i386/pci/pci_bus.c	Thu Jun 11 17:06:31 2009	(r194018)
@@ -62,8 +62,8 @@ legacy_pcib_maxslots(device_t dev)
 /* read configuration space register */
 
 u_int32_t
-legacy_pcib_read_config(device_t dev, int bus, int slot, int func,
-			int reg, int bytes)
+legacy_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func,
+			u_int reg, int bytes)
 {
 	return(pci_cfgregread(bus, slot, func, reg, bytes));
 }
@@ -71,8 +71,8 @@ legacy_pcib_read_config(device_t dev, in
 /* write configuration space register */
 
 void
-legacy_pcib_write_config(device_t dev, int bus, int slot, int func,
-			 int reg, u_int32_t data, int bytes)
+legacy_pcib_write_config(device_t dev, u_int bus, u_int slot, u_int func,
+			 u_int reg, u_int32_t data, int bytes)
 {
 	pci_cfgregwrite(bus, slot, func, reg, data, bytes);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906111706.n5BH6W0P054067>