diff options
author | Per Fogelstrom <pefo@cvs.openbsd.org> | 2004-10-20 12:40:15 +0000 |
---|---|---|
committer | Per Fogelstrom <pefo@cvs.openbsd.org> | 2004-10-20 12:40:15 +0000 |
commit | 739696eb39583689f2b47fac0c0acbe5dd9958b3 (patch) | |
tree | 11d485a65a4a0172406e45aee53eb11adaa49bf0 /sys | |
parent | e16906c17fcc943203ec7784b619a5ec2345e640 (diff) |
Use bus_addr_t instead of int for port address/offset, ok mickey
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/ic/com.c | 10 | ||||
-rw-r--r-- | sys/dev/ic/comvar.h | 8 |
2 files changed, 9 insertions, 9 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c index abb85b7278e..decf4d058ee 100644 --- a/sys/dev/ic/com.c +++ b/sys/dev/ic/com.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com.c,v 1.98 2004/08/09 22:24:29 pefo Exp $ */ +/* $OpenBSD: com.c,v 1.99 2004/10/20 12:40:14 pefo Exp $ */ /* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */ /* @@ -107,7 +107,7 @@ struct cfdriver com_cd = { int comdefaultrate = TTYDEF_SPEED; int comconsinit; -int comconsaddr; +bus_addr_t comconsaddr; int comconsattached; bus_space_tag_t comconsiot; bus_space_handle_t comconsioh; @@ -118,7 +118,7 @@ int commajor; #ifdef KGDB #include <sys/kgdb.h> -int com_kgdb_addr; +bus_addr_t com_kgdb_addr; bus_space_tag_t com_kgdb_iot; bus_space_handle_t com_kgdb_ioh; @@ -1520,7 +1520,7 @@ comcninit(cp) int comcnattach(iot, iobase, rate, frequency, cflag) bus_space_tag_t iot; - int iobase; + bus_addr_t iobase; int rate, frequency; tcflag_t cflag; { @@ -1575,7 +1575,7 @@ comcnpollc(dev, on) int com_kgdb_attach(iot, iobase, rate, frequency, cflag) bus_space_tag_t iot; - int iobase; + bus_addr_t iobase; int rate, frequency; tcflag_t cflag; { diff --git a/sys/dev/ic/comvar.h b/sys/dev/ic/comvar.h index fa1e2e34b19..10f3a6dda85 100644 --- a/sys/dev/ic/comvar.h +++ b/sys/dev/ic/comvar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: comvar.h,v 1.34 2003/09/23 16:51:12 millert Exp $ */ +/* $OpenBSD: comvar.h,v 1.35 2004/10/20 12:40:14 pefo Exp $ */ /* $NetBSD: comvar.h,v 1.5 1996/05/05 19:50:47 christos Exp $ */ /* @@ -88,7 +88,7 @@ struct com_softc { int sc_halt; - int sc_iobase; + bus_addr_t sc_iobase; int sc_frequency; bus_space_handle_t sc_ioh; @@ -147,7 +147,7 @@ void comstart(struct tty *); void comsoft(void *); struct consdev; -int comcnattach(bus_space_tag_t, int, int, int, tcflag_t); +int comcnattach(bus_space_tag_t, bus_addr_t, int, int, tcflag_t); void comcnprobe(struct consdev *); void comcninit(struct consdev *); int comcngetc(dev_t); @@ -165,7 +165,7 @@ int kgdbintr(void *); void com_attach_subr(struct com_softc *); extern int comdefaultrate; -extern int comconsaddr; +extern bus_addr_t comconsaddr; extern int comconsinit; extern int comconsattached; extern bus_space_tag_t comconsiot; |