summaryrefslogtreecommitdiffstats
path: root/sys/alpha/pci/lcavar.h
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/alpha/pci/lcavar.h
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/alpha/pci/lcavar.h')
-rw-r--r--sys/alpha/pci/lcavar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/alpha/pci/lcavar.h b/sys/alpha/pci/lcavar.h
index 2f22ade..ee53b75 100644
--- a/sys/alpha/pci/lcavar.h
+++ b/sys/alpha/pci/lcavar.h
@@ -29,5 +29,5 @@
struct device;
extern void lca_init(void);
-u_int32_t lca_pcib_read_config(struct device *dev, int b, int s, int f,
- int reg, int width);
+u_int32_t lca_pcib_read_config(struct device *dev, u_int b, u_int s, u_int f,
+ u_int reg, int width);
OpenPOWER on IntegriCloud