summaryrefslogtreecommitdiffstats
path: root/sys/dev/mlx/mlxvar.h
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1999-10-14 02:54:06 +0000
committermsmith <msmith@FreeBSD.org>1999-10-14 02:54:06 +0000
commit23b1a2234e799a3404b63d76dc2b5c549533c1e9 (patch)
tree4e9b3943aae84bc20e5074d80ee1f299ed15a0fa /sys/dev/mlx/mlxvar.h
parent3274954f706557bb6eb3a421fd5029764b1cd2f3 (diff)
downloadFreeBSD-src-23b1a2234e799a3404b63d76dc2b5c549533c1e9.zip
FreeBSD-src-23b1a2234e799a3404b63d76dc2b5c549533c1e9.tar.gz
Add support for the version 4 firmware interface and the DAC960 PG and
PJ cards. This will probably also support the AcceleRAID and eXtremeRAID cards, but nobody has volunteered one for testing, so I haven't enabled their PCI device IDs. Slightly clean up communication between the disk devices and the controller device as per new practice, and move some more register- related items int mlxreg.h from mlxvar.h. Remove some unnecessary read-modify-write operations to the card control registers; they don't behave like that. Increase the status polling interval to 10 seconds. It's still possible to load the card up to the point where a status poll will find the previous poll still running, but this will reduce the incidence of complaints.
Diffstat (limited to 'sys/dev/mlx/mlxvar.h')
-rw-r--r--sys/dev/mlx/mlxvar.h27
1 files changed, 0 insertions, 27 deletions
diff --git a/sys/dev/mlx/mlxvar.h b/sys/dev/mlx/mlxvar.h
index 7679dbb..ec69b25 100644
--- a/sys/dev/mlx/mlxvar.h
+++ b/sys/dev/mlx/mlxvar.h
@@ -159,8 +159,6 @@ struct mlx_softc
void (* mlx_intaction)(struct mlx_softc *sc, int action);
#define MLX_INTACTION_DISABLE 0
#define MLX_INTACTION_ENABLE 1
-#define MLX_INTACTION_ACKNOWLEDGE 2
-
};
/*
@@ -205,31 +203,6 @@ extern int mlx_submit_ioctl(struct mlx_softc *sc, struct mlx_sysdrive *drive, u_
extern void mlxd_intr(void *data);
/*
- * Accessor defines for the V3 interface.
- */
-#define MLX_V3_MAILBOX 0x00
-#define MLX_V3_STATUS_IDENT 0x0d
-#define MLX_V3_STATUS 0x0e
-#define MLX_V3_IDBR 0x40
-#define MLX_V3_ODBR 0x41
-#define MLX_V3_IER 0x43
-
-#define MLX_V3_PUT_MAILBOX(sc, idx, val) bus_space_write_1(sc->mlx_btag, sc->mlx_bhandle, MLX_V3_MAILBOX + idx, val)
-#define MLX_V3_GET_STATUS_IDENT(sc) bus_space_read_1 (sc->mlx_btag, sc->mlx_bhandle, MLX_V3_STATUS_IDENT)
-#define MLX_V3_GET_STATUS(sc) bus_space_read_2 (sc->mlx_btag, sc->mlx_bhandle, MLX_V3_STATUS)
-#define MLX_V3_GET_IDBR(sc) bus_space_read_1 (sc->mlx_btag, sc->mlx_bhandle, MLX_V3_IDBR)
-#define MLX_V3_PUT_IDBR(sc, val) bus_space_write_1(sc->mlx_btag, sc->mlx_bhandle, MLX_V3_IDBR, val)
-#define MLX_V3_GET_ODBR(sc) bus_space_read_1 (sc->mlx_btag, sc->mlx_bhandle, MLX_V3_ODBR)
-#define MLX_V3_PUT_ODBR(sc, val) bus_space_write_1(sc->mlx_btag, sc->mlx_bhandle, MLX_V3_ODBR, val)
-#define MLX_V3_PUT_IER(sc, val) bus_space_write_1(sc->mlx_btag, sc->mlx_bhandle, MLX_V3_IER, val)
-
-#define MLX_V3_IDB_FULL (1<<0) /* mailbox is full */
-#define MLX_V3_IDB_SACK (1<<1) /* acknowledge status read */
-#define MLX_V3_IDB_RESET (1<<3) /* request soft reset */
-
-#define MLX_V3_ODB_SAVAIL (1<<0) /* status is available */
-
-/*
* Inlines to build various command structures
*/
static __inline void
OpenPOWER on IntegriCloud