From 23e1f11c4eed283a178d30ac8680b4e9420ba702 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Wed, 28 Dec 2005 17:12:42 +0000 Subject: [PATCH] Added some missing registers used by ai commands to m_series_stc_writew(). --- comedi/drivers/ni_pcimio.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/comedi/drivers/ni_pcimio.c b/comedi/drivers/ni_pcimio.c index f0f65492..1482ec17 100644 --- a/comedi/drivers/ni_pcimio.c +++ b/comedi/drivers/ni_pcimio.c @@ -1033,6 +1033,9 @@ static void m_series_stc_writew(comedi_device *dev, uint16_t data, int reg) case AI_Command_1_Register: offset = M_Offset_AI_Command_1; break; + case AI_Command_2_Register: + offset = M_Offset_AI_Command_2; + break; case AI_Mode_1_Register: offset = M_Offset_AI_Mode_1; break; @@ -1048,6 +1051,22 @@ static void m_series_stc_writew(comedi_device *dev, uint16_t data, int reg) case AI_Personal_Register: offset = M_Offset_AI_Personal; break; + case AI_SI2_Load_A_Register: + // this is actually a 32 bit register on m series boards + ni_writel(data, M_Offset_AI_SI2_Load_A); + return; + break; + case AI_SI2_Load_B_Register: + // this is actually a 32 bit register on m series boards + ni_writel(data, M_Offset_AI_SI2_Load_B); + return; + break; + case AI_START_STOP_Select_Register: + offset = M_Offset_AI_START_STOP_Select; + break; + case AI_Trigger_Select_Register: + offset = M_Offset_AI_Trigger_Select; + break; case AO_Command_1_Register: offset = M_Offset_AO_Command_1; break; -- 2.26.2