xref: /reactos/drivers/storage/ide/uniata/id_queue.h (revision 0c2cdcae)
1 #ifndef __UNIATA_COMMAND_QUEUE_SUPPORT__H__
2 #define __UNIATA_COMMAND_QUEUE_SUPPORT__H__
3 
4 /*
5     Insert command to proper place of command queue
6     Perform reorder if necessary
7  */
8 VOID
9 NTAPI
10 UniataQueueRequest(
11     IN PHW_CHANNEL chan,
12     IN PSCSI_REQUEST_BLOCK Srb
13     );
14 
15 /*
16     Remove request from queue and get next request
17  */
18 VOID
19 NTAPI
20 UniataRemoveRequest(
21     IN PHW_CHANNEL chan,
22     IN PSCSI_REQUEST_BLOCK Srb
23     );
24 
25 /*
26     Get currently processed request
27     (from head of the queue)
28  */
29 PSCSI_REQUEST_BLOCK
30 NTAPI
31 UniataGetCurRequest(
32     IN PHW_CHANNEL chan
33     );
34 
35 /*
36     Get next channel to be serviced
37     (used in simplex mode only)
38  */
39 PHW_CHANNEL
40 NTAPI
41 UniataGetNextChannel(
42     IN PHW_CHANNEL chan
43     );
44 
45 #endif //__UNIATA_COMMAND_QUEUE_SUPPORT__H__
46