diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2006-06-10 13:27:59 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2006-06-10 13:27:59 +0000 |
commit | cf7c9c20ca1b780d7b62bc96fcf27e5e99c61f62 (patch) | |
tree | 4779428f2ca21e6d70182015b7bf0bc4ee7484fb | |
parent | a4d20f59ad012d673c3d23410f153dca99f8e3dc (diff) |
the rest of the spi-device configuration pages
-rw-r--r-- | sys/dev/ic/mpireg.h | 33 |
1 files changed, 32 insertions, 1 deletions
diff --git a/sys/dev/ic/mpireg.h b/sys/dev/ic/mpireg.h index bafb99e427d..a8d61b9266e 100644 --- a/sys/dev/ic/mpireg.h +++ b/sys/dev/ic/mpireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mpireg.h,v 1.9 2006/06/10 13:12:33 dlg Exp $ */ +/* $OpenBSD: mpireg.h,v 1.10 2006/06/10 13:27:58 dlg Exp $ */ /* * Copyright (c) 2005 David Gwynne <dlg@openbsd.org> @@ -964,6 +964,37 @@ struct mpi_cfg_spi_dev_pg1 { #define MPI_CFG_SPI_DEV_1_CONF_FORCE_PPR (1<<4) } __packed; +struct mpi_cfg_spi_dev_pg2 { + struct mpi_cfg_hdr config_header; + + u_int32_t domain_validation; +#define MPI_CFG_SPI_DEV_2_DV_ISI_ENABLED (1<<4) +#define MPI_CFG_SPI_DEV_2_DV_SECONDARY_DRV_EN (1<<5) +#define MPI_CFG_SPI_DEV_2_DV_SLEW_RATE_CTL (0x7<<7) +#define MPI_CFG_SPI_DEV_2_DV_PRIMARY_DRV_STRENGTH (0x7<<10) +#define MPI_CFG_SPI_DEV_2_DV_XCLKH_ST (1<<28) +#define MPI_CFG_SPI_DEV_2_DV_XCLKS_ST (1<<29) +#define MPI_CFG_SPI_DEV_2_DV_XCLKH_DT (1<<30) +#define MPI_CFG_SPI_DEV_2_DV_XCLKS_DT (1<<31) + + u_int32_t parity_pipe_select; +#define MPI_CFG_SPI_DEV_2_PARITY_PIPE_SELECT (0x3) + + u_int32_t data_pipe_select; +#define MPI_CFG_SPI_DEV_2_DATA_PIPE_SELECT(x) (0x3<<((x)*2)) + +} __packed; + +struct mpi_cfg_spi_dev_pg3 { + struct mpi_cfg_hdr config_header; + + u_int16_t msg_reject_count; + u_int16_t phase_error_count; + + u_int16_t parity_error_count; + u_int16_t reserved; +} __packed; + struct mpi_cfg_manufacturing_pg0 { struct mpi_cfg_hdr config_header; |