-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscsispec.asc
1965 lines (706 loc) · 42.9 KB
/
scsispec.asc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
IBM OS/2 2.0
OS/2 SCSI DEVICE DRIVER INTERFACE SPECIFICATION
Revision 1.31
March 22, 1991
Distributed by: Rudy Pietro (407) 982-4239
IBM Corporation
IBM Internal Zip 1434
Boca Raton, FL 33429
This document contains advance information, and is subject to change.
Copyright (C) IBM Corporation 1991, 1992.
CONTENTS:
1.0 Introduction ........................................... 2
2.0 Functional Block Diagram ............................... 3
3.0 Functional Description ................................. 4
4.0 Generic Ioctl Request .................................. 5
4.1 ABIOS Services ......................................... 5
4.1.1 Read Device Parameters ............................. 6
4.1.2 Reset / Initialize ................................. 8
4.1.3 Enable Intelligent Buffer .......................... 9
4.1.4 Disable Intelligent Buffer ........................ 10
4.1.5 Return Intelligent Buffer Status .................. 11
4.1.6 Set Device Timeout ................................ 12
4.1.7 Read Device Timeout ............................... 13
4.1.8 Transfer SCB ...................................... 14
4.1.9 Deallocate Device ................................. 16
4.1.10 Allocate Device .................................. 17
4.1.11 Return Peripheral Type Count ..................... 19
4.1.12 Send Abort ....................................... 20
5.0 Return Codes .......................................... 21
6.0 Error Recovery Procedure .............................. 24
7.0 Device-class Driver Model ............................. 25
7.1 Overview .............................................. 25
7.2 Initialization Routine ................................ 25
7.3 Strategy Routine ...................................... 27
7.4 Interrupt Handler ..................................... 27
7.5 Data Structures ....................................... 28
7.5.1 DMA Data Structures ............................... 28
8.0 Naming Conventions .................................... 29
8.1 The SCSI Driver ....................................... 29
8.2 IBM Device Class Drivers .............................. 29
8.3 Message Files ......................................... 29
Contents ii
Preface
This document describes the high level interface for the SCSI
Device Driver for Operating System/2. All functions are listed
for completeness of the document. Functions not implemented are
so indicated.
This document is derived from the SCSI Device Driver Design
Workbook by Barry Khatri and Dan Feriozi. The internal
specifications of the device driver have been removed so that
this document may be externally distributed to vendors who wish
to write device drivers to the SCSI device driver interface.
Revision History
þ Initial Release Version 1.00
þ Version 1.01 - Added Read Device Parameters support.
þ Version 1.10 - Declassified document.
þ Version 1.11 - Added naming conventions section.
þ Version 1.20 - Added Intelligent Buffer Functions support.
Added Intelligent-Buffer-Not-Supported error code. Made the
driver interruptible.
þ Version 1.30 - Added DMA data structures warning.
Page 1
1.0 INTRODUCTION:
This document describes the interface for the OS/2 SCSI device
driver. The SCSI driver is the lower half of a split model for
OS/2 SCSI device drivers. The SCSI driver drives the SCSI
adapter through the generic scsi ABIOS. At task time, the SCSI
driver receives requests from an upper-level device-class driver
through the inter-device driver communication ( IDC ) facility
of OS/2. At initialization time, the SCSI driver can be invoked
with a DosDevIoctl call.
The SCSI driver provides the generic SCSI ABIOS services in a
declarative interface. All procedural details of calling ABIOS
are hidden by the SCSI driver. The SCSI driver also takes care
of the queueing of requests, provides the SCSI interrupt
handler, and processes timeout conditions.
The split device driver model uses the principles of code
layering to facilitate development and maintenance of new SCSI
device drivers. Providing common functions in the SCSI driver
also reduces memory requirements. Performance is enhanced
because the SCSI driver centralizes control of the SCSI channel,
reducing contention. Only one interrupt handler is registered
for all of the SCSI peripheral devices.
Introduction 2
2.0 FUNCTIONAL BLOCK DIAGRAM:
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ ³
³ ³
³ OS/2 KERNEL ³
³ ³
³ ³
ÀÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
³ ³ ³
³ ³ ³
³ ³ ³
ÚÄÄÄÄÄÄÁÄÄÄÄÄÄÄ¿ ÚÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄ¿ ÚÄÄÄÄÄÄÄÁÄÄÄÄÄÄ¿
³ CDROM CLASS ³ ³ OPTICAL CLASS ³ ³ OTHER CLASS ³ ....
³ DRIVER ³ ³ DRIVER ³ ³ DRIVER ³
ÀÄÄÄÄÄÄÂÄÄÄÄÄÄÄÙ ÀÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÙ ÀÄÄÄÄÄÄÄÂÄÄÄÄÄÄÙ
³ ³ ³
³ ³ ³
ÚÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ ³
³ SCSI DRIVER ³
³ ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
³
³
³
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ SCSI ABIOS ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
³
³
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ SCSI ADAPTER ³
ÀÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÂÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
³ ³ ³
³ ³ ³
ÚÄÄÄÄÄÄÁÄÄÄÄÄÄÄ¿ ÚÄÄÄÄÄÄÄÁÄÄÄÄÄÄÄÄ¿ ÚÄÄÄÄÄÄÄÁÄÄÄÄÄÄ¿
³ CDROM SCSI ³ ³ OPTICAL SCSI ³ ³ OTHER SCSI ³ ....
³ DEVICE ³ ³ DEVICE ³ ³ DEVICE ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
SPLIT DEVICE DRIVER MODEL FOR OS/2
Functional Block Diagram 3
3.0 FUNCTIONAL DESCRIPTION:
The chart illustrates the relationship between the device
drivers and their interaction with other components of the
system.
A split device driver model is used for the SCSI devices other
than the SCSI fixed disks, which use the OS/2 base disk device
driver. The device-class driver is the upper-level driver and
the SCSI driver is the lower level driver. The device-class
driver does not interact directly with the SCSI adapter or the
SCSI device. The device-class driver sends commands to the SCSI
driver, which in turn sends commands to the device using the
generic SCSI ABIOS.
The device-class driver looks very much like a DOS device
driver. The device-class driver simply maps an OS/2 request
into an SCB or a chain of SCBs, and passes the request
immediately to the SCSI driver. The SCSI driver handles all
queueing and interrupts. The SCSI driver insulates the
device-class driver from the procedural details of calling
ABIOS. The device-class driver requests an ABIOS service, like
Transfer SCB, from the SCSI driver. When control is returned to
the device-class driver, the ABIOS service has been completed.
If an error occurred, the TSB may contain error information. In
addition, sense data may have been returned.
Functional Description 4
4.0 GENERIC IOCTL REQUEST:
4.1 ABIOS SERVICES
This routine receives requests from the device-class driver.
The function category for ABIOS services is 80h. The SCSI
driver supports the following SCSI ABIOS requests:
þ Read Device Parameters
þ Reset/Initialization
þ Enable Intelligent Buffer
þ Disable Intelligent Buffer
þ Return Intelligent Buffer Status
þ Set Device Timeout
þ Read Device Timeout
þ Transfer SCB
þ Deallocate Device
þ Allocate Device
þ Return Peripheral Type Count
þ Abort
The input to the SCSI driver is a generic ioctl request packet
pointed to by the ES:BX register pair. The function category
defined for ABIOS Services is 80h and function code will be 40h
plus the value for the ABIOS function being requested.
Generic Ioctl Request 5
4.1.1 READ DEVICE PARAMETERS
This function returns some information about the device which is
maintained by ABIOS. Of particular interest is the LUN which is
required if a SCSI Send Other command is sent to a bridge
controller.
4.1.1.1 Input Parameter Structure
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Field Length ³
ÆÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͵
³ Device Handle WORD ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
FUNCTION CATEGORY : 80H
FUNCTION CODE : 43H
This request requires a device handle to be passed in the
request. The device must be allocated by the device-class driver
before calling this function. The function category and function
code are to be set up as shown above.
4.1.1.2 Data Buffer
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Field Length ³
ÆÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͵
³ Device Key Index WORD ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ SCB Architecture Card Comp. Level BYTE ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ Adapter Index BYTE ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ Device Flags WORD ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ Logical Unit Number ( LUN ) BYTE ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ Physical Unit Number ( PUN ) BYTE ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
Generic Ioctl Request 6
þ Adapter Index
Contains the adapter number for the SCSI adapter. The valid
range is from 0 to 3.
þ Device Flags
- Bit 4 0 = Intelligent Buffer not supported
- 1 = Intelligent Buffer supported
- Bit 1 0 = Device Power On
- 1 = Device Power Off
- Bit 0 0 = Device is not defective
- 1 = Device is defective
Generic Ioctl Request 7
4.1.2 RESET / INITIALIZE
This function results in a reset message being issued to the
physical device.
4.1.2.1 Input Parameter Structure
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Field Length ³
ÆÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͵
³ Device Handle WORD ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ Sense Data Size WORD ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
FUNCTION CATEGORY : 80H
FUNCTION CODE : 45H
This request requires a device handle to be passed in the
request. The device must be allocated by the device-class driver
before calling this function. The function category and function
code are to be set up as shown above.
4.1.2.2 Data Buffer
This function does not require a data buffer. Status is returned
in the status field of the request packet.
Generic Ioctl Request 8
4.1.3 ENABLE INTELLIGENT BUFFER
This function enables the intelligent buffer capability for all
subsequent commands to this device.
4.1.3.1 Input Parameter Structure
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Field Length ³
ÆÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͵
³ Device Handle WORD ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
FUNCTION CATEGORY : 80H
FUNCTION CODE : 4DH
This request requires a device handle to be passed in the
request. The device must be allocated by the device-class driver
before calling this function. The function category and function
code are to be set up as shown above.
4.1.3.2 Data Buffer
This function does not require a data buffer. Status is returned
in the status field of the request packet.
Generic Ioctl Request 9
4.1.4 DISABLE INTELLIGENT BUFFER
This function disables the intelligent buffer capability for
subsequent commands to the specified device.
4.1.4.1 Input Parameter Structure
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Field Length ³
ÆÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͵
³ Device Handle WORD ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
FUNCTION CATEGORY : 80H
FUNCTION CODE : 4EH
This request requires a device handle to be passed in the
request. The device must be allocated by the device-class driver
before calling this function. The function category and function
code are to be set up as shown above.
4.1.4.2 Data Buffer
This function does not require a data buffer. Status is returned
in the status field of the request packet.
Generic Ioctl Request 10
4.1.5 RETURN INTELLIGENT BUFFER STATUS
This function returns the intelligent buffer status for the
specified device.
4.1.5.1 Input Parameter Structure
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Field Length ³
ÆÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͵
³ Device Handle WORD ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
FUNCTION CATEGORY : 80H
FUNCTION CODE : 4FH
This request requires a device handle to be passed in the
request. The device must be allocated by the device-class driver
before calling this function. The function category and function
code are to be set up as shown above.
4.1.5.2 Data Buffer
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Field Length ³
ÆÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͵
³ Intelligent Buffer Status BYTE ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
Intelligent Buffer Status : 00H Enabled
01H Disabled
Generic Ioctl Request 11
4.1.6 SET DEVICE TIMEOUT
This function sets the timeout value for this device.
4.1.6.1 Input Parameter Structure
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Field Length ³
ÆÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͵
³ Device Handle WORD ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ Timeout Value DWORD ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
FUNCTION CATEGORY : 80H
FUNCTION CODE : 50H
This request requires a device handle and a timeout value to be
passed in the request. The timeout value is in milliseconds.
The device must be allocated by the device-class driver before
calling this function. The function category and function code
are to be set up as shown above.
4.1.6.2 Data Buffer
This function does not require a data buffer. Status is returned
in the status field of the request packet.
Generic Ioctl Request 12
4.1.7 READ DEVICE TIMEOUT
This function returns the current timeout value for this device.
4.1.7.1 Input Parameter Structure
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Field Length ³
ÆÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͵
³ Device Handle WORD ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
FUNCTION CATEGORY : 80H
FUNCTION CODE : 51H
This request requires a device handle to be passed in the
request. The device must be allocated by the device-class driver
before calling this function. The function category and function
code are to be set up as shown above.
4.1.7.2 Data Buffer
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Field Length ³
ÆÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͵
³ Timeout Value DWORD ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
þ The timeout value is in milliseconds.
Generic Ioctl Request 13
4.1.8 TRANSFER SCB
This function causes an SCB or a chain of SCBs to be sent to the
adapter.
4.1.8.1 Input Parameter Structure
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Field Length ³
ÆÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ͵
³ Device Handle WORD ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ Sense Data Size WORD ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ Physical Pointer to SCB DWORD ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ Logical Pointer to SCB Chain Header DWORD ³
ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ Flags BYTE ³
ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
FUNCTION CATEGORY : 80H
FUNCTION CODE : 52H
This request requires a device handle to be passed in the
request. The device must be allocated by the device-class driver
before calling this function. The function category and function
code are to be set up as shown above.
þ Flags Bit 0 = 0 Normal Length SCB
1 Long SCB
A normal length SCB is used to send generic SCSI commands to a
device. The long SCB is used to send a vendor unique SCSI
command embeded in the SCB.
4.1.8.2 Data Buffer
If an error occurred, the data buffer may contain sense data.
The return code indicates whether sense data is valid. A
termination status block may also have been returned.
Generic Ioctl Request 14
4.1.8.3 SCB Chain Header
+00H ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
³ Reserved ³
+02H ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ Logical Pointer to next ³
ÃÄ SCB Chain Header Ä´
³ ³
+06H ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ Reserved ³
+08H ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ Reserved ³
+0AH ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ Logical Pointer to TSB ³
ÃÄ Ä´
³ ³
+0EH ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ Reserved ³
+10H ÃÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ´
³ ³
³ ³