Problem with SCSI Miniport Driver

Hi all,
We are developing SCSI Miniport Driver.here while adding the Offset of the
registers to the baseaddress & reading by using the
“ScsiPortWriteUshort((baseaddress+Offset),Value)”,here we are facing
trouble like getting the value of (baseaddress+Offset) as doubled with
respect to Offset.
(i.e.)if we send it as 10 it gets value of 20,but the baseaddress value
will be proper.
NOTE:If we right shift the value of offset,then it works fine.

so any answers welcome.

Thanks in advance.

With regards,
Vishwanath M.


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com

Looks like a casting problem to me. BaseAddress should have a (UCHAR) in
front of it.

-----Original Message-----
From: xxxxx@rediffmail.com [mailto:xxxxx@rediffmail.com]
Sent: Tuesday, July 03, 2001 5:52 AM
To: NT Developers Interest List
Subject: [ntdev] Problem with SCSI Miniport Driver

Hi all,
We are developing SCSI Miniport Driver.here while adding the Offset of the
registers to the baseaddress & reading by using the
“ScsiPortWriteUshort((baseaddress+Offset),Value)”,here we are facing
trouble like getting the value of (baseaddress+Offset) as doubled with
respect to Offset.
(i.e.)if we send it as 10 it gets value of 20,but the baseaddress value
will be proper.
NOTE:If we right shift the value of offset,then it works fine.

so any answers welcome.

Thanks in advance.

With regards,
Vishwanath M.


You are currently subscribed to ntdev as: xxxxx@osr.com
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com


You are currently subscribed to ntdev as: $subst(‘Recip.EmailAddr’)
To unsubscribe send a blank email to leave-ntdev-$subst(‘Recip.MemberIDChar’)@lists.osr.com