summaryrefslogtreecommitdiffstats
path: root/sys/dev/pci/pcib_if.m
diff options
context:
space:
mode:
authorgallatin <gallatin@FreeBSD.org>2000-12-01 15:27:48 +0000
committergallatin <gallatin@FreeBSD.org>2000-12-01 15:27:48 +0000
commitf3693740f3994723ae463b65c2ca1ba2bd1f063c (patch)
treeb64996992392b03927ef23bbc7f9eb5e698a61f2 /sys/dev/pci/pcib_if.m
parent700fece2f363b189cbf2531a212f9895b1394808 (diff)
downloadFreeBSD-src-f3693740f3994723ae463b65c2ca1ba2bd1f063c.zip
FreeBSD-src-f3693740f3994723ae463b65c2ca1ba2bd1f063c.tar.gz
Convert the pcib_{read,write}_config args from signed to unsigned,
like the args to the config space accessors these functions replaced. This reduces the likelyhood of overflow when the args are used in macros on the alpha. This prevents memory management faults when probing the pci bus on sables, multias and nonames. Approved by: dfr Tested by: Bernd Walter <ticso@cicely8.cicely.de>
Diffstat (limited to 'sys/dev/pci/pcib_if.m')
-rw-r--r--sys/dev/pci/pcib_if.m16
1 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/pci/pcib_if.m b/sys/dev/pci/pcib_if.m
index 2b38ef7..5224778 100644
--- a/sys/dev/pci/pcib_if.m
+++ b/sys/dev/pci/pcib_if.m
@@ -46,10 +46,10 @@ METHOD int maxslots {
#
METHOD u_int32_t read_config {
device_t dev;
- int bus;
- int slot;
- int func;
- int reg;
+ u_int bus;
+ u_int slot;
+ u_int func;
+ u_int reg;
int width;
};
@@ -62,10 +62,10 @@ METHOD u_int32_t read_config {
#
METHOD void write_config {
device_t dev;
- int bus;
- int slot;
- int func;
- int reg;
+ u_int bus;
+ u_int slot;
+ u_int func;
+ u_int reg;
u_int32_t value;
int width;
};
OpenPOWER on IntegriCloud