public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Newbie question
@ 2001-05-24 17:29 Pedro Miguel Semeano
  0 siblings, 0 replies; only message in thread
From: Pedro Miguel Semeano @ 2001-05-24 17:29 UTC (permalink / raw)
  To: linux-kernel

Hello all,

I'm doing a project in linux, and I'm changing the driver of sym53c8xx (a 
SCSI board) to support Target mode. 

To receive data, we need 2 interrupts. One is for initializing all of the 
structures needed, and the second to send the data to the SCSI layer. What 
happens is that bettwen that two interrupts i can't start sending data, but 
in some cases that happen, and is beyond my control. To start sending data I 
set a bit in a certain register of the chip. 

What i would like to know is how can i to a kind of lock so that I set a 
variable in the first interrupt, and unset it in the second. If the SCSI 
layer trys to send data, I whant to stop before I set the bit of the chip. 
But I don't know how...

Can anybody tel me how to do it?

Pedro Semeano

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-05-24 17:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-24 17:29 Newbie question Pedro Miguel Semeano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox