diff options
Diffstat (limited to 'drivers/scsi/qla1280.h')
-rw-r--r-- | drivers/scsi/qla1280.h | 336 |
1 files changed, 156 insertions, 180 deletions
diff --git a/drivers/scsi/qla1280.h b/drivers/scsi/qla1280.h index d245ae07518e..59915fb70301 100644 --- a/drivers/scsi/qla1280.h +++ b/drivers/scsi/qla1280.h | |||
@@ -94,9 +94,6 @@ | |||
94 | #define REQUEST_ENTRY_CNT 256 /* Number of request entries. */ | 94 | #define REQUEST_ENTRY_CNT 256 /* Number of request entries. */ |
95 | #define RESPONSE_ENTRY_CNT 16 /* Number of response entries. */ | 95 | #define RESPONSE_ENTRY_CNT 16 /* Number of response entries. */ |
96 | 96 | ||
97 | /* Number of segments 1 - 65535 */ | ||
98 | #define SG_SEGMENTS 32 /* Cmd entry + 6 continuations */ | ||
99 | |||
100 | /* | 97 | /* |
101 | * SCSI Request Block structure (sp) that is placed | 98 | * SCSI Request Block structure (sp) that is placed |
102 | * on cmd->SCp location of every I/O | 99 | * on cmd->SCp location of every I/O |
@@ -378,29 +375,23 @@ struct nvram { | |||
378 | uint16_t unused_12; /* 12, 13 */ | 375 | uint16_t unused_12; /* 12, 13 */ |
379 | uint16_t unused_14; /* 14, 15 */ | 376 | uint16_t unused_14; /* 14, 15 */ |
380 | 377 | ||
381 | union { | 378 | struct { |
382 | uint8_t c; | 379 | uint8_t reserved:2; |
383 | struct { | 380 | uint8_t burst_enable:1; |
384 | uint8_t reserved:2; | 381 | uint8_t reserved_1:1; |
385 | uint8_t burst_enable:1; | 382 | uint8_t fifo_threshold:4; |
386 | uint8_t reserved_1:1; | ||
387 | uint8_t fifo_threshold:4; | ||
388 | } f; | ||
389 | } isp_config; /* 16 */ | 383 | } isp_config; /* 16 */ |
390 | 384 | ||
391 | /* Termination | 385 | /* Termination |
392 | * 0 = Disable, 1 = high only, 3 = Auto term | 386 | * 0 = Disable, 1 = high only, 3 = Auto term |
393 | */ | 387 | */ |
394 | union { | 388 | struct { |
395 | uint8_t c; | 389 | uint8_t scsi_bus_1_control:2; |
396 | struct { | 390 | uint8_t scsi_bus_0_control:2; |
397 | uint8_t scsi_bus_1_control:2; | 391 | uint8_t unused_0:1; |
398 | uint8_t scsi_bus_0_control:2; | 392 | uint8_t unused_1:1; |
399 | uint8_t unused_0:1; | 393 | uint8_t unused_2:1; |
400 | uint8_t unused_1:1; | 394 | uint8_t auto_term_support:1; |
401 | uint8_t unused_2:1; | ||
402 | uint8_t auto_term_support:1; | ||
403 | } f; | ||
404 | } termination; /* 17 */ | 395 | } termination; /* 17 */ |
405 | 396 | ||
406 | uint16_t isp_parameter; /* 18, 19 */ | 397 | uint16_t isp_parameter; /* 18, 19 */ |
@@ -460,18 +451,15 @@ struct nvram { | |||
460 | uint16_t unused_38; /* 38, 39 */ | 451 | uint16_t unused_38; /* 38, 39 */ |
461 | 452 | ||
462 | struct { | 453 | struct { |
463 | union { | 454 | struct { |
464 | uint8_t c; | 455 | uint8_t renegotiate_on_error:1; |
465 | struct { | 456 | uint8_t stop_queue_on_check:1; |
466 | uint8_t renegotiate_on_error:1; | 457 | uint8_t auto_request_sense:1; |
467 | uint8_t stop_queue_on_check:1; | 458 | uint8_t tag_queuing:1; |
468 | uint8_t auto_request_sense:1; | 459 | uint8_t enable_sync:1; |
469 | uint8_t tag_queuing:1; | 460 | uint8_t enable_wide:1; |
470 | uint8_t enable_sync:1; | 461 | uint8_t parity_checking:1; |
471 | uint8_t enable_wide:1; | 462 | uint8_t disconnect_allowed:1; |
472 | uint8_t parity_checking:1; | ||
473 | uint8_t disconnect_allowed:1; | ||
474 | } f; | ||
475 | } parameter; /* 40 */ | 463 | } parameter; /* 40 */ |
476 | 464 | ||
477 | uint8_t execution_throttle; /* 41 */ | 465 | uint8_t execution_throttle; /* 41 */ |
@@ -528,23 +516,23 @@ struct cmd_entry { | |||
528 | uint8_t entry_count; /* Entry count. */ | 516 | uint8_t entry_count; /* Entry count. */ |
529 | uint8_t sys_define; /* System defined. */ | 517 | uint8_t sys_define; /* System defined. */ |
530 | uint8_t entry_status; /* Entry Status. */ | 518 | uint8_t entry_status; /* Entry Status. */ |
531 | uint32_t handle; /* System handle. */ | 519 | __le32 handle; /* System handle. */ |
532 | uint8_t lun; /* SCSI LUN */ | 520 | uint8_t lun; /* SCSI LUN */ |
533 | uint8_t target; /* SCSI ID */ | 521 | uint8_t target; /* SCSI ID */ |
534 | uint16_t cdb_len; /* SCSI command length. */ | 522 | __le16 cdb_len; /* SCSI command length. */ |
535 | uint16_t control_flags; /* Control flags. */ | 523 | __le16 control_flags; /* Control flags. */ |
536 | uint16_t reserved; | 524 | __le16 reserved; |
537 | uint16_t timeout; /* Command timeout. */ | 525 | __le16 timeout; /* Command timeout. */ |
538 | uint16_t dseg_count; /* Data segment count. */ | 526 | __le16 dseg_count; /* Data segment count. */ |
539 | uint8_t scsi_cdb[MAX_CMDSZ]; /* SCSI command words. */ | 527 | uint8_t scsi_cdb[MAX_CMDSZ]; /* SCSI command words. */ |
540 | uint32_t dseg_0_address; /* Data segment 0 address. */ | 528 | __le32 dseg_0_address; /* Data segment 0 address. */ |
541 | uint32_t dseg_0_length; /* Data segment 0 length. */ | 529 | __le32 dseg_0_length; /* Data segment 0 length. */ |
542 | uint32_t dseg_1_address; /* Data segment 1 address. */ | 530 | __le32 dseg_1_address; /* Data segment 1 address. */ |
543 | uint32_t dseg_1_length; /* Data segment 1 length. */ | 531 | __le32 dseg_1_length; /* Data segment 1 length. */ |
544 | uint32_t dseg_2_address; /* Data segment 2 address. */ | 532 | __le32 dseg_2_address; /* Data segment 2 address. */ |
545 | uint32_t dseg_2_length; /* Data segment 2 length. */ | 533 | __le32 dseg_2_length; /* Data segment 2 length. */ |
546 | uint32_t dseg_3_address; /* Data segment 3 address. */ | 534 | __le32 dseg_3_address; /* Data segment 3 address. */ |
547 | uint32_t dseg_3_length; /* Data segment 3 length. */ | 535 | __le32 dseg_3_length; /* Data segment 3 length. */ |
548 | }; | 536 | }; |
549 | 537 | ||
550 | /* | 538 | /* |
@@ -556,21 +544,21 @@ struct cont_entry { | |||
556 | uint8_t entry_count; /* Entry count. */ | 544 | uint8_t entry_count; /* Entry count. */ |
557 | uint8_t sys_define; /* System defined. */ | 545 | uint8_t sys_define; /* System defined. */ |
558 | uint8_t entry_status; /* Entry Status. */ | 546 | uint8_t entry_status; /* Entry Status. */ |
559 | uint32_t reserved; /* Reserved */ | 547 | __le32 reserved; /* Reserved */ |
560 | uint32_t dseg_0_address; /* Data segment 0 address. */ | 548 | __le32 dseg_0_address; /* Data segment 0 address. */ |
561 | uint32_t dseg_0_length; /* Data segment 0 length. */ | 549 | __le32 dseg_0_length; /* Data segment 0 length. */ |
562 | uint32_t dseg_1_address; /* Data segment 1 address. */ | 550 | __le32 dseg_1_address; /* Data segment 1 address. */ |
563 | uint32_t dseg_1_length; /* Data segment 1 length. */ | 551 | __le32 dseg_1_length; /* Data segment 1 length. */ |
564 | uint32_t dseg_2_address; /* Data segment 2 address. */ | 552 | __le32 dseg_2_address; /* Data segment 2 address. */ |
565 | uint32_t dseg_2_length; /* Data segment 2 length. */ | 553 | __le32 dseg_2_length; /* Data segment 2 length. */ |
566 | uint32_t dseg_3_address; /* Data segment 3 address. */ | 554 | __le32 dseg_3_address; /* Data segment 3 address. */ |
567 | uint32_t dseg_3_length; /* Data segment 3 length. */ | 555 | __le32 dseg_3_length; /* Data segment 3 length. */ |
568 | uint32_t dseg_4_address; /* Data segment 4 address. */ | 556 | __le32 dseg_4_address; /* Data segment 4 address. */ |
569 | uint32_t dseg_4_length; /* Data segment 4 length. */ | 557 | __le32 dseg_4_length; /* Data segment 4 length. */ |
570 | uint32_t dseg_5_address; /* Data segment 5 address. */ | 558 | __le32 dseg_5_address; /* Data segment 5 address. */ |
571 | uint32_t dseg_5_length; /* Data segment 5 length. */ | 559 | __le32 dseg_5_length; /* Data segment 5 length. */ |
572 | uint32_t dseg_6_address; /* Data segment 6 address. */ | 560 | __le32 dseg_6_address; /* Data segment 6 address. */ |
573 | uint32_t dseg_6_length; /* Data segment 6 length. */ | 561 | __le32 dseg_6_length; /* Data segment 6 length. */ |
574 | }; | 562 | }; |
575 | 563 | ||
576 | /* | 564 | /* |
@@ -586,22 +574,22 @@ struct response { | |||
586 | #define RF_FULL BIT_1 /* Full */ | 574 | #define RF_FULL BIT_1 /* Full */ |
587 | #define RF_BAD_HEADER BIT_2 /* Bad header. */ | 575 | #define RF_BAD_HEADER BIT_2 /* Bad header. */ |
588 | #define RF_BAD_PAYLOAD BIT_3 /* Bad payload. */ | 576 | #define RF_BAD_PAYLOAD BIT_3 /* Bad payload. */ |
589 | uint32_t handle; /* System handle. */ | 577 | __le32 handle; /* System handle. */ |
590 | uint16_t scsi_status; /* SCSI status. */ | 578 | __le16 scsi_status; /* SCSI status. */ |
591 | uint16_t comp_status; /* Completion status. */ | 579 | __le16 comp_status; /* Completion status. */ |
592 | uint16_t state_flags; /* State flags. */ | 580 | __le16 state_flags; /* State flags. */ |
593 | #define SF_TRANSFER_CMPL BIT_14 /* Transfer Complete. */ | 581 | #define SF_TRANSFER_CMPL BIT_14 /* Transfer Complete. */ |
594 | #define SF_GOT_SENSE BIT_13 /* Got Sense */ | 582 | #define SF_GOT_SENSE BIT_13 /* Got Sense */ |
595 | #define SF_GOT_STATUS BIT_12 /* Got Status */ | 583 | #define SF_GOT_STATUS BIT_12 /* Got Status */ |
596 | #define SF_TRANSFERRED_DATA BIT_11 /* Transferred data */ | 584 | #define SF_TRANSFERRED_DATA BIT_11 /* Transferred data */ |
597 | #define SF_SENT_CDB BIT_10 /* Send CDB */ | 585 | #define SF_SENT_CDB BIT_10 /* Send CDB */ |
598 | #define SF_GOT_TARGET BIT_9 /* */ | 586 | #define SF_GOT_TARGET BIT_9 /* */ |
599 | #define SF_GOT_BUS BIT_8 /* */ | 587 | #define SF_GOT_BUS BIT_8 /* */ |
600 | uint16_t status_flags; /* Status flags. */ | 588 | __le16 status_flags; /* Status flags. */ |
601 | uint16_t time; /* Time. */ | 589 | __le16 time; /* Time. */ |
602 | uint16_t req_sense_length; /* Request sense data length. */ | 590 | __le16 req_sense_length;/* Request sense data length. */ |
603 | uint32_t residual_length; /* Residual transfer length. */ | 591 | __le32 residual_length; /* Residual transfer length. */ |
604 | uint16_t reserved[4]; | 592 | __le16 reserved[4]; |
605 | uint8_t req_sense_data[32]; /* Request sense data. */ | 593 | uint8_t req_sense_data[32]; /* Request sense data. */ |
606 | }; | 594 | }; |
607 | 595 | ||
@@ -614,7 +602,7 @@ struct mrk_entry { | |||
614 | uint8_t entry_count; /* Entry count. */ | 602 | uint8_t entry_count; /* Entry count. */ |
615 | uint8_t sys_define; /* System defined. */ | 603 | uint8_t sys_define; /* System defined. */ |
616 | uint8_t entry_status; /* Entry Status. */ | 604 | uint8_t entry_status; /* Entry Status. */ |
617 | uint32_t reserved; | 605 | __le32 reserved; |
618 | uint8_t lun; /* SCSI LUN */ | 606 | uint8_t lun; /* SCSI LUN */ |
619 | uint8_t target; /* SCSI ID */ | 607 | uint8_t target; /* SCSI ID */ |
620 | uint8_t modifier; /* Modifier (7-0). */ | 608 | uint8_t modifier; /* Modifier (7-0). */ |
@@ -638,11 +626,11 @@ struct ecmd_entry { | |||
638 | uint32_t handle; /* System handle. */ | 626 | uint32_t handle; /* System handle. */ |
639 | uint8_t lun; /* SCSI LUN */ | 627 | uint8_t lun; /* SCSI LUN */ |
640 | uint8_t target; /* SCSI ID */ | 628 | uint8_t target; /* SCSI ID */ |
641 | uint16_t cdb_len; /* SCSI command length. */ | 629 | __le16 cdb_len; /* SCSI command length. */ |
642 | uint16_t control_flags; /* Control flags. */ | 630 | __le16 control_flags; /* Control flags. */ |
643 | uint16_t reserved; | 631 | __le16 reserved; |
644 | uint16_t timeout; /* Command timeout. */ | 632 | __le16 timeout; /* Command timeout. */ |
645 | uint16_t dseg_count; /* Data segment count. */ | 633 | __le16 dseg_count; /* Data segment count. */ |
646 | uint8_t scsi_cdb[88]; /* SCSI command words. */ | 634 | uint8_t scsi_cdb[88]; /* SCSI command words. */ |
647 | }; | 635 | }; |
648 | 636 | ||
@@ -655,20 +643,20 @@ typedef struct { | |||
655 | uint8_t entry_count; /* Entry count. */ | 643 | uint8_t entry_count; /* Entry count. */ |
656 | uint8_t sys_define; /* System defined. */ | 644 | uint8_t sys_define; /* System defined. */ |
657 | uint8_t entry_status; /* Entry Status. */ | 645 | uint8_t entry_status; /* Entry Status. */ |
658 | uint32_t handle; /* System handle. */ | 646 | __le32 handle; /* System handle. */ |
659 | uint8_t lun; /* SCSI LUN */ | 647 | uint8_t lun; /* SCSI LUN */ |
660 | uint8_t target; /* SCSI ID */ | 648 | uint8_t target; /* SCSI ID */ |
661 | uint16_t cdb_len; /* SCSI command length. */ | 649 | __le16 cdb_len; /* SCSI command length. */ |
662 | uint16_t control_flags; /* Control flags. */ | 650 | __le16 control_flags; /* Control flags. */ |
663 | uint16_t reserved; | 651 | __le16 reserved; |
664 | uint16_t timeout; /* Command timeout. */ | 652 | __le16 timeout; /* Command timeout. */ |
665 | uint16_t dseg_count; /* Data segment count. */ | 653 | __le16 dseg_count; /* Data segment count. */ |
666 | uint8_t scsi_cdb[MAX_CMDSZ]; /* SCSI command words. */ | 654 | uint8_t scsi_cdb[MAX_CMDSZ]; /* SCSI command words. */ |
667 | uint32_t reserved_1[2]; /* unused */ | 655 | __le32 reserved_1[2]; /* unused */ |
668 | uint32_t dseg_0_address[2]; /* Data segment 0 address. */ | 656 | __le32 dseg_0_address[2]; /* Data segment 0 address. */ |
669 | uint32_t dseg_0_length; /* Data segment 0 length. */ | 657 | __le32 dseg_0_length; /* Data segment 0 length. */ |
670 | uint32_t dseg_1_address[2]; /* Data segment 1 address. */ | 658 | __le32 dseg_1_address[2]; /* Data segment 1 address. */ |
671 | uint32_t dseg_1_length; /* Data segment 1 length. */ | 659 | __le32 dseg_1_length; /* Data segment 1 length. */ |
672 | } cmd_a64_entry_t, request_t; | 660 | } cmd_a64_entry_t, request_t; |
673 | 661 | ||
674 | /* | 662 | /* |
@@ -680,16 +668,16 @@ struct cont_a64_entry { | |||
680 | uint8_t entry_count; /* Entry count. */ | 668 | uint8_t entry_count; /* Entry count. */ |
681 | uint8_t sys_define; /* System defined. */ | 669 | uint8_t sys_define; /* System defined. */ |
682 | uint8_t entry_status; /* Entry Status. */ | 670 | uint8_t entry_status; /* Entry Status. */ |
683 | uint32_t dseg_0_address[2]; /* Data segment 0 address. */ | 671 | __le32 dseg_0_address[2]; /* Data segment 0 address. */ |
684 | uint32_t dseg_0_length; /* Data segment 0 length. */ | 672 | __le32 dseg_0_length; /* Data segment 0 length. */ |
685 | uint32_t dseg_1_address[2]; /* Data segment 1 address. */ | 673 | __le32 dseg_1_address[2]; /* Data segment 1 address. */ |
686 | uint32_t dseg_1_length; /* Data segment 1 length. */ | 674 | __le32 dseg_1_length; /* Data segment 1 length. */ |
687 | uint32_t dseg_2_address[2]; /* Data segment 2 address. */ | 675 | __le32 dseg_2_address[2]; /* Data segment 2 address. */ |
688 | uint32_t dseg_2_length; /* Data segment 2 length. */ | 676 | __le32 dseg_2_length; /* Data segment 2 length. */ |
689 | uint32_t dseg_3_address[2]; /* Data segment 3 address. */ | 677 | __le32 dseg_3_address[2]; /* Data segment 3 address. */ |
690 | uint32_t dseg_3_length; /* Data segment 3 length. */ | 678 | __le32 dseg_3_length; /* Data segment 3 length. */ |
691 | uint32_t dseg_4_address[2]; /* Data segment 4 address. */ | 679 | __le32 dseg_4_address[2]; /* Data segment 4 address. */ |
692 | uint32_t dseg_4_length; /* Data segment 4 length. */ | 680 | __le32 dseg_4_length; /* Data segment 4 length. */ |
693 | }; | 681 | }; |
694 | 682 | ||
695 | /* | 683 | /* |
@@ -701,10 +689,10 @@ struct elun_entry { | |||
701 | uint8_t entry_count; /* Entry count. */ | 689 | uint8_t entry_count; /* Entry count. */ |
702 | uint8_t reserved_1; | 690 | uint8_t reserved_1; |
703 | uint8_t entry_status; /* Entry Status not used. */ | 691 | uint8_t entry_status; /* Entry Status not used. */ |
704 | uint32_t reserved_2; | 692 | __le32 reserved_2; |
705 | uint16_t lun; /* Bit 15 is bus number. */ | 693 | __le16 lun; /* Bit 15 is bus number. */ |
706 | uint16_t reserved_4; | 694 | __le16 reserved_4; |
707 | uint32_t option_flags; | 695 | __le32 option_flags; |
708 | uint8_t status; | 696 | uint8_t status; |
709 | uint8_t reserved_5; | 697 | uint8_t reserved_5; |
710 | uint8_t command_count; /* Number of ATIOs allocated. */ | 698 | uint8_t command_count; /* Number of ATIOs allocated. */ |
@@ -714,8 +702,8 @@ struct elun_entry { | |||
714 | /* commands (2-26). */ | 702 | /* commands (2-26). */ |
715 | uint8_t group_7_length; /* SCSI CDB length for group 7 */ | 703 | uint8_t group_7_length; /* SCSI CDB length for group 7 */ |
716 | /* commands (2-26). */ | 704 | /* commands (2-26). */ |
717 | uint16_t timeout; /* 0 = 30 seconds, 0xFFFF = disable */ | 705 | __le16 timeout; /* 0 = 30 seconds, 0xFFFF = disable */ |
718 | uint16_t reserved_6[20]; | 706 | __le16 reserved_6[20]; |
719 | }; | 707 | }; |
720 | 708 | ||
721 | /* | 709 | /* |
@@ -729,20 +717,20 @@ struct modify_lun_entry { | |||
729 | uint8_t entry_count; /* Entry count. */ | 717 | uint8_t entry_count; /* Entry count. */ |
730 | uint8_t reserved_1; | 718 | uint8_t reserved_1; |
731 | uint8_t entry_status; /* Entry Status. */ | 719 | uint8_t entry_status; /* Entry Status. */ |
732 | uint32_t reserved_2; | 720 | __le32 reserved_2; |
733 | uint8_t lun; /* SCSI LUN */ | 721 | uint8_t lun; /* SCSI LUN */ |
734 | uint8_t reserved_3; | 722 | uint8_t reserved_3; |
735 | uint8_t operators; | 723 | uint8_t operators; |
736 | uint8_t reserved_4; | 724 | uint8_t reserved_4; |
737 | uint32_t option_flags; | 725 | __le32 option_flags; |
738 | uint8_t status; | 726 | uint8_t status; |
739 | uint8_t reserved_5; | 727 | uint8_t reserved_5; |
740 | uint8_t command_count; /* Number of ATIOs allocated. */ | 728 | uint8_t command_count; /* Number of ATIOs allocated. */ |
741 | uint8_t immed_notify_count; /* Number of Immediate Notify */ | 729 | uint8_t immed_notify_count; /* Number of Immediate Notify */ |
742 | /* entries allocated. */ | 730 | /* entries allocated. */ |
743 | uint16_t reserved_6; | 731 | __le16 reserved_6; |
744 | uint16_t timeout; /* 0 = 30 seconds, 0xFFFF = disable */ | 732 | __le16 timeout; /* 0 = 30 seconds, 0xFFFF = disable */ |
745 | uint16_t reserved_7[20]; | 733 | __le16 reserved_7[20]; |
746 | }; | 734 | }; |
747 | 735 | ||
748 | /* | 736 | /* |
@@ -754,20 +742,20 @@ struct notify_entry { | |||
754 | uint8_t entry_count; /* Entry count. */ | 742 | uint8_t entry_count; /* Entry count. */ |
755 | uint8_t reserved_1; | 743 | uint8_t reserved_1; |
756 | uint8_t entry_status; /* Entry Status. */ | 744 | uint8_t entry_status; /* Entry Status. */ |
757 | uint32_t reserved_2; | 745 | __le32 reserved_2; |
758 | uint8_t lun; | 746 | uint8_t lun; |
759 | uint8_t initiator_id; | 747 | uint8_t initiator_id; |
760 | uint8_t reserved_3; | 748 | uint8_t reserved_3; |
761 | uint8_t target_id; | 749 | uint8_t target_id; |
762 | uint32_t option_flags; | 750 | __le32 option_flags; |
763 | uint8_t status; | 751 | uint8_t status; |
764 | uint8_t reserved_4; | 752 | uint8_t reserved_4; |
765 | uint8_t tag_value; /* Received queue tag message value */ | 753 | uint8_t tag_value; /* Received queue tag message value */ |
766 | uint8_t tag_type; /* Received queue tag message type */ | 754 | uint8_t tag_type; /* Received queue tag message type */ |
767 | /* entries allocated. */ | 755 | /* entries allocated. */ |
768 | uint16_t seq_id; | 756 | __le16 seq_id; |
769 | uint8_t scsi_msg[8]; /* SCSI message not handled by ISP */ | 757 | uint8_t scsi_msg[8]; /* SCSI message not handled by ISP */ |
770 | uint16_t reserved_5[8]; | 758 | __le16 reserved_5[8]; |
771 | uint8_t sense_data[18]; | 759 | uint8_t sense_data[18]; |
772 | }; | 760 | }; |
773 | 761 | ||
@@ -780,16 +768,16 @@ struct nack_entry { | |||
780 | uint8_t entry_count; /* Entry count. */ | 768 | uint8_t entry_count; /* Entry count. */ |
781 | uint8_t reserved_1; | 769 | uint8_t reserved_1; |
782 | uint8_t entry_status; /* Entry Status. */ | 770 | uint8_t entry_status; /* Entry Status. */ |
783 | uint32_t reserved_2; | 771 | __le32 reserved_2; |
784 | uint8_t lun; | 772 | uint8_t lun; |
785 | uint8_t initiator_id; | 773 | uint8_t initiator_id; |
786 | uint8_t reserved_3; | 774 | uint8_t reserved_3; |
787 | uint8_t target_id; | 775 | uint8_t target_id; |
788 | uint32_t option_flags; | 776 | __le32 option_flags; |
789 | uint8_t status; | 777 | uint8_t status; |
790 | uint8_t event; | 778 | uint8_t event; |
791 | uint16_t seq_id; | 779 | __le16 seq_id; |
792 | uint16_t reserved_4[22]; | 780 | __le16 reserved_4[22]; |
793 | }; | 781 | }; |
794 | 782 | ||
795 | /* | 783 | /* |
@@ -801,12 +789,12 @@ struct atio_entry { | |||
801 | uint8_t entry_count; /* Entry count. */ | 789 | uint8_t entry_count; /* Entry count. */ |
802 | uint8_t reserved_1; | 790 | uint8_t reserved_1; |
803 | uint8_t entry_status; /* Entry Status. */ | 791 | uint8_t entry_status; /* Entry Status. */ |
804 | uint32_t reserved_2; | 792 | __le32 reserved_2; |
805 | uint8_t lun; | 793 | uint8_t lun; |
806 | uint8_t initiator_id; | 794 | uint8_t initiator_id; |
807 | uint8_t cdb_len; | 795 | uint8_t cdb_len; |
808 | uint8_t target_id; | 796 | uint8_t target_id; |
809 | uint32_t option_flags; | 797 | __le32 option_flags; |
810 | uint8_t status; | 798 | uint8_t status; |
811 | uint8_t scsi_status; | 799 | uint8_t scsi_status; |
812 | uint8_t tag_value; /* Received queue tag message value */ | 800 | uint8_t tag_value; /* Received queue tag message value */ |
@@ -824,28 +812,28 @@ struct ctio_entry { | |||
824 | uint8_t entry_count; /* Entry count. */ | 812 | uint8_t entry_count; /* Entry count. */ |
825 | uint8_t reserved_1; | 813 | uint8_t reserved_1; |
826 | uint8_t entry_status; /* Entry Status. */ | 814 | uint8_t entry_status; /* Entry Status. */ |
827 | uint32_t reserved_2; | 815 | __le32 reserved_2; |
828 | uint8_t lun; /* SCSI LUN */ | 816 | uint8_t lun; /* SCSI LUN */ |
829 | uint8_t initiator_id; | 817 | uint8_t initiator_id; |
830 | uint8_t reserved_3; | 818 | uint8_t reserved_3; |
831 | uint8_t target_id; | 819 | uint8_t target_id; |
832 | uint32_t option_flags; | 820 | __le32 option_flags; |
833 | uint8_t status; | 821 | uint8_t status; |
834 | uint8_t scsi_status; | 822 | uint8_t scsi_status; |
835 | uint8_t tag_value; /* Received queue tag message value */ | 823 | uint8_t tag_value; /* Received queue tag message value */ |
836 | uint8_t tag_type; /* Received queue tag message type */ | 824 | uint8_t tag_type; /* Received queue tag message type */ |
837 | uint32_t transfer_length; | 825 | __le32 transfer_length; |
838 | uint32_t residual; | 826 | __le32 residual; |
839 | uint16_t timeout; /* 0 = 30 seconds, 0xFFFF = disable */ | 827 | __le16 timeout; /* 0 = 30 seconds, 0xFFFF = disable */ |
840 | uint16_t dseg_count; /* Data segment count. */ | 828 | __le16 dseg_count; /* Data segment count. */ |
841 | uint32_t dseg_0_address; /* Data segment 0 address. */ | 829 | __le32 dseg_0_address; /* Data segment 0 address. */ |
842 | uint32_t dseg_0_length; /* Data segment 0 length. */ | 830 | __le32 dseg_0_length; /* Data segment 0 length. */ |
843 | uint32_t dseg_1_address; /* Data segment 1 address. */ | 831 | __le32 dseg_1_address; /* Data segment 1 address. */ |
844 | uint32_t dseg_1_length; /* Data segment 1 length. */ | 832 | __le32 dseg_1_length; /* Data segment 1 length. */ |
845 | uint32_t dseg_2_address; /* Data segment 2 address. */ | 833 | __le32 dseg_2_address; /* Data segment 2 address. */ |
846 | uint32_t dseg_2_length; /* Data segment 2 length. */ | 834 | __le32 dseg_2_length; /* Data segment 2 length. */ |
847 | uint32_t dseg_3_address; /* Data segment 3 address. */ | 835 | __le32 dseg_3_address; /* Data segment 3 address. */ |
848 | uint32_t dseg_3_length; /* Data segment 3 length. */ | 836 | __le32 dseg_3_length; /* Data segment 3 length. */ |
849 | }; | 837 | }; |
850 | 838 | ||
851 | /* | 839 | /* |
@@ -857,24 +845,24 @@ struct ctio_ret_entry { | |||
857 | uint8_t entry_count; /* Entry count. */ | 845 | uint8_t entry_count; /* Entry count. */ |
858 | uint8_t reserved_1; | 846 | uint8_t reserved_1; |
859 | uint8_t entry_status; /* Entry Status. */ | 847 | uint8_t entry_status; /* Entry Status. */ |
860 | uint32_t reserved_2; | 848 | __le32 reserved_2; |
861 | uint8_t lun; /* SCSI LUN */ | 849 | uint8_t lun; /* SCSI LUN */ |
862 | uint8_t initiator_id; | 850 | uint8_t initiator_id; |
863 | uint8_t reserved_3; | 851 | uint8_t reserved_3; |
864 | uint8_t target_id; | 852 | uint8_t target_id; |
865 | uint32_t option_flags; | 853 | __le32 option_flags; |
866 | uint8_t status; | 854 | uint8_t status; |
867 | uint8_t scsi_status; | 855 | uint8_t scsi_status; |
868 | uint8_t tag_value; /* Received queue tag message value */ | 856 | uint8_t tag_value; /* Received queue tag message value */ |
869 | uint8_t tag_type; /* Received queue tag message type */ | 857 | uint8_t tag_type; /* Received queue tag message type */ |
870 | uint32_t transfer_length; | 858 | __le32 transfer_length; |
871 | uint32_t residual; | 859 | __le32 residual; |
872 | uint16_t timeout; /* 0 = 30 seconds, 0xFFFF = disable */ | 860 | __le16 timeout; /* 0 = 30 seconds, 0xFFFF = disable */ |
873 | uint16_t dseg_count; /* Data segment count. */ | 861 | __le16 dseg_count; /* Data segment count. */ |
874 | uint32_t dseg_0_address; /* Data segment 0 address. */ | 862 | __le32 dseg_0_address; /* Data segment 0 address. */ |
875 | uint32_t dseg_0_length; /* Data segment 0 length. */ | 863 | __le32 dseg_0_length; /* Data segment 0 length. */ |
876 | uint32_t dseg_1_address; /* Data segment 1 address. */ | 864 | __le32 dseg_1_address; /* Data segment 1 address. */ |
877 | uint16_t dseg_1_length; /* Data segment 1 length. */ | 865 | __le16 dseg_1_length; /* Data segment 1 length. */ |
878 | uint8_t sense_data[18]; | 866 | uint8_t sense_data[18]; |
879 | }; | 867 | }; |
880 | 868 | ||
@@ -887,25 +875,25 @@ struct ctio_a64_entry { | |||
887 | uint8_t entry_count; /* Entry count. */ | 875 | uint8_t entry_count; /* Entry count. */ |
888 | uint8_t reserved_1; | 876 | uint8_t reserved_1; |
889 | uint8_t entry_status; /* Entry Status. */ | 877 | uint8_t entry_status; /* Entry Status. */ |
890 | uint32_t reserved_2; | 878 | __le32 reserved_2; |
891 | uint8_t lun; /* SCSI LUN */ | 879 | uint8_t lun; /* SCSI LUN */ |
892 | uint8_t initiator_id; | 880 | uint8_t initiator_id; |
893 | uint8_t reserved_3; | 881 | uint8_t reserved_3; |
894 | uint8_t target_id; | 882 | uint8_t target_id; |
895 | uint32_t option_flags; | 883 | __le32 option_flags; |
896 | uint8_t status; | 884 | uint8_t status; |
897 | uint8_t scsi_status; | 885 | uint8_t scsi_status; |
898 | uint8_t tag_value; /* Received queue tag message value */ | 886 | uint8_t tag_value; /* Received queue tag message value */ |
899 | uint8_t tag_type; /* Received queue tag message type */ | 887 | uint8_t tag_type; /* Received queue tag message type */ |
900 | uint32_t transfer_length; | 888 | __le32 transfer_length; |
901 | uint32_t residual; | 889 | __le32 residual; |
902 | uint16_t timeout; /* 0 = 30 seconds, 0xFFFF = disable */ | 890 | __le16 timeout; /* 0 = 30 seconds, 0xFFFF = disable */ |
903 | uint16_t dseg_count; /* Data segment count. */ | 891 | __le16 dseg_count; /* Data segment count. */ |
904 | uint32_t reserved_4[2]; | 892 | __le32 reserved_4[2]; |
905 | uint32_t dseg_0_address[2]; /* Data segment 0 address. */ | 893 | __le32 dseg_0_address[2];/* Data segment 0 address. */ |
906 | uint32_t dseg_0_length; /* Data segment 0 length. */ | 894 | __le32 dseg_0_length; /* Data segment 0 length. */ |
907 | uint32_t dseg_1_address[2]; /* Data segment 1 address. */ | 895 | __le32 dseg_1_address[2];/* Data segment 1 address. */ |
908 | uint32_t dseg_1_length; /* Data segment 1 length. */ | 896 | __le32 dseg_1_length; /* Data segment 1 length. */ |
909 | }; | 897 | }; |
910 | 898 | ||
911 | /* | 899 | /* |
@@ -917,21 +905,21 @@ struct ctio_a64_ret_entry { | |||
917 | uint8_t entry_count; /* Entry count. */ | 905 | uint8_t entry_count; /* Entry count. */ |
918 | uint8_t reserved_1; | 906 | uint8_t reserved_1; |
919 | uint8_t entry_status; /* Entry Status. */ | 907 | uint8_t entry_status; /* Entry Status. */ |
920 | uint32_t reserved_2; | 908 | __le32 reserved_2; |
921 | uint8_t lun; /* SCSI LUN */ | 909 | uint8_t lun; /* SCSI LUN */ |
922 | uint8_t initiator_id; | 910 | uint8_t initiator_id; |
923 | uint8_t reserved_3; | 911 | uint8_t reserved_3; |
924 | uint8_t target_id; | 912 | uint8_t target_id; |
925 | uint32_t option_flags; | 913 | __le32 option_flags; |
926 | uint8_t status; | 914 | uint8_t status; |
927 | uint8_t scsi_status; | 915 | uint8_t scsi_status; |
928 | uint8_t tag_value; /* Received queue tag message value */ | 916 | uint8_t tag_value; /* Received queue tag message value */ |
929 | uint8_t tag_type; /* Received queue tag message type */ | 917 | uint8_t tag_type; /* Received queue tag message type */ |
930 | uint32_t transfer_length; | 918 | __le32 transfer_length; |
931 | uint32_t residual; | 919 | __le32 residual; |
932 | uint16_t timeout; /* 0 = 30 seconds, 0xFFFF = disable */ | 920 | __le16 timeout; /* 0 = 30 seconds, 0xFFFF = disable */ |
933 | uint16_t dseg_count; /* Data segment count. */ | 921 | __le16 dseg_count; /* Data segment count. */ |
934 | uint16_t reserved_4[7]; | 922 | __le16 reserved_4[7]; |
935 | uint8_t sense_data[18]; | 923 | uint8_t sense_data[18]; |
936 | }; | 924 | }; |
937 | 925 | ||
@@ -979,14 +967,6 @@ struct ctio_a64_ret_entry { | |||
979 | #define CS_RETRY 0x82 /* Driver defined */ | 967 | #define CS_RETRY 0x82 /* Driver defined */ |
980 | 968 | ||
981 | /* | 969 | /* |
982 | * ISP status entry - SCSI status byte bit definitions. | ||
983 | */ | ||
984 | #define SS_CHECK_CONDITION BIT_1 | ||
985 | #define SS_CONDITION_MET BIT_2 | ||
986 | #define SS_BUSY_CONDITION BIT_3 | ||
987 | #define SS_RESERVE_CONFLICT (BIT_4 | BIT_3) | ||
988 | |||
989 | /* | ||
990 | * ISP target entries - Option flags bit definitions. | 970 | * ISP target entries - Option flags bit definitions. |
991 | */ | 971 | */ |
992 | #define OF_ENABLE_TAG BIT_1 /* Tagged queue action enable */ | 972 | #define OF_ENABLE_TAG BIT_1 /* Tagged queue action enable */ |
@@ -1082,10 +1062,6 @@ struct scsi_qla_host { | |||
1082 | uint32_t reset_active:1; /* 3 */ | 1062 | uint32_t reset_active:1; /* 3 */ |
1083 | uint32_t abort_isp_active:1; /* 4 */ | 1063 | uint32_t abort_isp_active:1; /* 4 */ |
1084 | uint32_t disable_risc_code_load:1; /* 5 */ | 1064 | uint32_t disable_risc_code_load:1; /* 5 */ |
1085 | uint32_t enable_64bit_addressing:1; /* 6 */ | ||
1086 | uint32_t in_reset:1; /* 7 */ | ||
1087 | uint32_t ints_enabled:1; | ||
1088 | uint32_t ignore_nvram:1; | ||
1089 | #ifdef __ia64__ | 1065 | #ifdef __ia64__ |
1090 | uint32_t use_pci_vchannel:1; | 1066 | uint32_t use_pci_vchannel:1; |
1091 | #endif | 1067 | #endif |