summaryrefslogtreecommitdiffstats
path: root/sys/dev/digi
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2003-08-05 20:11:50 +0000
committerbde <bde@FreeBSD.org>2003-08-05 20:11:50 +0000
commite6b31b28140188d90a9dd49e4543af529f64843f (patch)
tree14a44882470d4b79fe3c927933ed33762017650b /sys/dev/digi
parent52bff5229a998fce244a92247317fb6536b7a8d8 (diff)
downloadFreeBSD-src-e6b31b28140188d90a9dd49e4543af529f64843f.zip
FreeBSD-src-e6b31b28140188d90a9dd49e4543af529f64843f.tar.gz
Don't use pessimal (u_short) types for i/o ports. This is mainly for
completenss. The pessimization is tiny compared with i/o port slowness except on very old machines, but code that used signed short types for i/o ports was unpessimized long ago, and the macro that detected it recently started working for u_short types too. Use of bus space should have made this moot long ago. Not tested at runtime by: bde
Diffstat (limited to 'sys/dev/digi')
-rw-r--r--sys/dev/digi/digi.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/digi/digi.h b/sys/dev/digi/digi.h
index e8f9e0f..c5c1a4c 100644
--- a/sys/dev/digi/digi.h
+++ b/sys/dev/digi/digi.h
@@ -152,8 +152,8 @@ struct digi_softc {
const char *name;
enum digi_board_status status;
ushort numports; /* number of ports on card */
- ushort port; /* I/O port */
- ushort wport; /* window select I/O port */
+ u_int port; /* I/O port */
+ u_int wport; /* window select I/O port */
struct {
struct resource *mem;
OpenPOWER on IntegriCloud