diff options
author | mdodd <mdodd@FreeBSD.org> | 2000-11-28 06:17:32 +0000 |
---|---|---|
committer | mdodd <mdodd@FreeBSD.org> | 2000-11-28 06:17:32 +0000 |
commit | 67b4379f04a36c31ca81b79bacd6649857bbb563 (patch) | |
tree | 2efe53028a9cf8d4d861067fcd389493d9866598 /sys/dev/mlx/mlxvar.h | |
parent | 51f405ec6ea3c70e9e867604bf429307817cb25c (diff) | |
download | FreeBSD-src-67b4379f04a36c31ca81b79bacd6649857bbb563.zip FreeBSD-src-67b4379f04a36c31ca81b79bacd6649857bbb563.tar.gz |
Avoid hardcoding the 'rid' and 'type' of the MEM/IOPORT resource.
Store the 'rid' and 'type' in the softc and use them in mlx.c:mlx_free().
EISA and MCA front ends will require this.
Approved by: msmith
Diffstat (limited to 'sys/dev/mlx/mlxvar.h')
-rw-r--r-- | sys/dev/mlx/mlxvar.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/mlx/mlxvar.h b/sys/dev/mlx/mlxvar.h index edb1a85..06b0ffa 100644 --- a/sys/dev/mlx/mlxvar.h +++ b/sys/dev/mlx/mlxvar.h @@ -109,6 +109,8 @@ struct mlx_softc device_t mlx_dev; dev_t mlx_dev_t; struct resource *mlx_mem; /* mailbox interface window */ + int mlx_mem_rid; + int mlx_mem_type; bus_space_handle_t mlx_bhandle; /* bus space handle */ bus_space_tag_t mlx_btag; /* bus space tag */ bus_dma_tag_t mlx_parent_dmat;/* parent DMA tag */ |