[SCSI] Small cleanups for scsi_host.h

Small cleanups in scsi_host.h. Few #defines make me wonder if their
description is still up to date..?

Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

authored by

Pavel Machek and committed by
James Bottomley
d850bd34 8144f213

+25 -19
+25 -19
include/scsi/scsi_host.h
··· 280 * If the host wants to be called before the scan starts, but 281 * after the midlayer has set up ready for the scan, it can fill 282 * in this function. 283 */ 284 void (* scan_start)(struct Scsi_Host *); 285 286 /* 287 - * fill in this function to allow the queue depth of this host 288 - * to be changeable (on a per device basis). returns either 289 * the current queue depth setting (may be different from what 290 * was passed in) or an error. An error should only be 291 * returned if the requested depth is legal but the driver was 292 * unable to set it. If the requested depth is illegal, the 293 * driver should set and return the closest legal queue depth. 294 * 295 */ 296 int (* change_queue_depth)(struct scsi_device *, int); 297 298 /* 299 - * fill in this function to allow the changing of tag types 300 * (this also allows the enabling/disabling of tag command 301 * queueing). An error should only be returned if something 302 * went wrong in the driver while trying to set the tag type. 303 * If the driver doesn't support the requested tag type, then 304 * it should set the closest type it does support without 305 * returning an error. Returns the actual tag type set. 306 */ 307 int (* change_queue_type)(struct scsi_device *, int); 308 309 /* 310 - * This function determines the bios parameters for a given 311 * harddisk. These tend to be numbers that are made up by 312 * the host adapter. Parameters: 313 * size, device, list (heads, sectors, cylinders) 314 * 315 - * Status: OPTIONAL */ 316 int (* bios_param)(struct scsi_device *, struct block_device *, 317 sector_t, int []); 318 ··· 357 358 /* 359 * This determines if we will use a non-interrupt driven 360 - * or an interrupt driven scheme, It is set to the maximum number 361 * of simultaneous commands a given host adapter will accept. 362 */ 363 int can_queue; ··· 378 unsigned short sg_tablesize; 379 380 /* 381 - * If the host adapter has limitations beside segment count 382 */ 383 unsigned short max_sectors; 384 385 /* 386 - * dma scatter gather segment boundary limit. a segment crossing this 387 * boundary will be split in two. 388 */ 389 unsigned long dma_boundary; ··· 392 * This specifies "machine infinity" for host templates which don't 393 * limit the transfer size. Note this limit represents an absolute 394 * maximum, and may be over the transfer limits allowed for 395 - * individual devices (e.g. 256 for SCSI-1) 396 */ 397 #define SCSI_DEFAULT_MAX_SECTORS 1024 398 ··· 419 unsigned supported_mode:2; 420 421 /* 422 - * true if this host adapter uses unchecked DMA onto an ISA bus. 423 */ 424 unsigned unchecked_isa_dma:1; 425 426 /* 427 - * true if this host adapter can make good use of clustering. 428 * I originally thought that if the tablesize was large that it 429 * was a waste of CPU cycles to prepare a cluster list, but 430 * it works out that the Buslogic is faster if you use a smaller ··· 434 unsigned use_clustering:1; 435 436 /* 437 - * True for emulated SCSI host adapters (e.g. ATAPI) 438 */ 439 unsigned emulated:1; 440 ··· 444 unsigned skip_settle_delay:1; 445 446 /* 447 - * ordered write support 448 */ 449 unsigned ordered_tag:1; 450 451 /* 452 - * Countdown for host blocking with no commands outstanding 453 */ 454 unsigned int max_host_blocked; 455 ··· 528 struct scsi_transport_template *transportt; 529 530 /* 531 - * area to keep a shared tag map (if needed, will be 532 - * NULL if not) 533 */ 534 struct blk_queue_tag *bqt; 535 ··· 602 /* 603 * Host uses correct SCSI ordering not PC ordering. The bit is 604 * set for the minority of drivers whose authors actually read 605 - * the spec ;) 606 */ 607 unsigned reverse_ordering:1; 608 609 /* 610 - * ordered write support 611 */ 612 unsigned ordered_tag:1; 613 614 - /* task mgmt function in progress */ 615 unsigned tmf_in_progress:1; 616 617 /* Asynchronous scan in progress */
··· 280 * If the host wants to be called before the scan starts, but 281 * after the midlayer has set up ready for the scan, it can fill 282 * in this function. 283 + * 284 + * Status: OPTIONAL 285 */ 286 void (* scan_start)(struct Scsi_Host *); 287 288 /* 289 + * Fill in this function to allow the queue depth of this host 290 + * to be changeable (on a per device basis). Returns either 291 * the current queue depth setting (may be different from what 292 * was passed in) or an error. An error should only be 293 * returned if the requested depth is legal but the driver was 294 * unable to set it. If the requested depth is illegal, the 295 * driver should set and return the closest legal queue depth. 296 * 297 + * Status: OPTIONAL 298 */ 299 int (* change_queue_depth)(struct scsi_device *, int); 300 301 /* 302 + * Fill in this function to allow the changing of tag types 303 * (this also allows the enabling/disabling of tag command 304 * queueing). An error should only be returned if something 305 * went wrong in the driver while trying to set the tag type. 306 * If the driver doesn't support the requested tag type, then 307 * it should set the closest type it does support without 308 * returning an error. Returns the actual tag type set. 309 + * 310 + * Status: OPTIONAL 311 */ 312 int (* change_queue_type)(struct scsi_device *, int); 313 314 /* 315 + * This function determines the BIOS parameters for a given 316 * harddisk. These tend to be numbers that are made up by 317 * the host adapter. Parameters: 318 * size, device, list (heads, sectors, cylinders) 319 * 320 + * Status: OPTIONAL 321 + */ 322 int (* bios_param)(struct scsi_device *, struct block_device *, 323 sector_t, int []); 324 ··· 351 352 /* 353 * This determines if we will use a non-interrupt driven 354 + * or an interrupt driven scheme. It is set to the maximum number 355 * of simultaneous commands a given host adapter will accept. 356 */ 357 int can_queue; ··· 372 unsigned short sg_tablesize; 373 374 /* 375 + * Set this if the host adapter has limitations beside segment count. 376 */ 377 unsigned short max_sectors; 378 379 /* 380 + * DMA scatter gather segment boundary limit. A segment crossing this 381 * boundary will be split in two. 382 */ 383 unsigned long dma_boundary; ··· 386 * This specifies "machine infinity" for host templates which don't 387 * limit the transfer size. Note this limit represents an absolute 388 * maximum, and may be over the transfer limits allowed for 389 + * individual devices (e.g. 256 for SCSI-1). 390 */ 391 #define SCSI_DEFAULT_MAX_SECTORS 1024 392 ··· 413 unsigned supported_mode:2; 414 415 /* 416 + * True if this host adapter uses unchecked DMA onto an ISA bus. 417 */ 418 unsigned unchecked_isa_dma:1; 419 420 /* 421 + * True if this host adapter can make good use of clustering. 422 * I originally thought that if the tablesize was large that it 423 * was a waste of CPU cycles to prepare a cluster list, but 424 * it works out that the Buslogic is faster if you use a smaller ··· 428 unsigned use_clustering:1; 429 430 /* 431 + * True for emulated SCSI host adapters (e.g. ATAPI). 432 */ 433 unsigned emulated:1; 434 ··· 438 unsigned skip_settle_delay:1; 439 440 /* 441 + * True if we are using ordered write support. 442 */ 443 unsigned ordered_tag:1; 444 445 /* 446 + * Countdown for host blocking with no commands outstanding. 447 */ 448 unsigned int max_host_blocked; 449 ··· 522 struct scsi_transport_template *transportt; 523 524 /* 525 + * Area to keep a shared tag map (if needed, will be 526 + * NULL if not). 527 */ 528 struct blk_queue_tag *bqt; 529 ··· 596 /* 597 * Host uses correct SCSI ordering not PC ordering. The bit is 598 * set for the minority of drivers whose authors actually read 599 + * the spec ;). 600 */ 601 unsigned reverse_ordering:1; 602 603 /* 604 + * Ordered write support 605 */ 606 unsigned ordered_tag:1; 607 608 + /* Task mgmt function in progress */ 609 unsigned tmf_in_progress:1; 610 611 /* Asynchronous scan in progress */