diff options
author | 2006-06-10 13:27:58 +0000 | |
---|---|---|
committer | 2006-06-10 13:27:58 +0000 | |
commit | a27f0cf54569da8cd9785fe495fc51a2bf37b964 (patch) | |
tree | deadc60d5895b8db78731457c1e889a8149d9c9f | |
parent | the rest of the spi-port configuration pages. (diff) | |
download | wireguard-openbsd-a27f0cf54569da8cd9785fe495fc51a2bf37b964.tar.xz wireguard-openbsd-a27f0cf54569da8cd9785fe495fc51a2bf37b964.zip |
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; |