diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2007-03-30 04:50:55 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2007-03-30 04:50:55 +0000 |
commit | f5fef1bd75714be116ca4531c3200ebfc25afa3f (patch) | |
tree | 916cd7754ed6bbbdd6957b6b08f9e02d6e08ebc1 /sys/dev/ic/silivar.h | |
parent | e5c56117056e7b33082e3589da9a0de65a61d2c1 (diff) |
start filling out stuff for managing each port. this allocates it, set a
register window up, and provides access to the port registers.
Diffstat (limited to 'sys/dev/ic/silivar.h')
-rw-r--r-- | sys/dev/ic/silivar.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/dev/ic/silivar.h b/sys/dev/ic/silivar.h index 35ffb0f45a1..5d7704b3ffa 100644 --- a/sys/dev/ic/silivar.h +++ b/sys/dev/ic/silivar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: silivar.h,v 1.2 2007/03/22 06:32:14 dlg Exp $ */ +/* $OpenBSD: silivar.h,v 1.3 2007/03/30 04:50:54 dlg Exp $ */ /* * Copyright (c) 2007 David Gwynne <dlg@openbsd.org> @@ -16,6 +16,8 @@ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ +struct sili_port; + struct sili_softc { struct device sc_dev; @@ -28,6 +30,10 @@ struct sili_softc { bus_space_tag_t sc_iot_port; bus_space_handle_t sc_ioh_port; bus_size_t sc_ios_port; + + u_int sc_nports; + struct sili_port *sc_ports; + }; #define DEVNAME(_sc) ((_sc)->sc_dev.dv_xname) |