diff options
Diffstat (limited to 'drivers/scsi/qla1280.h')
-rw-r--r-- | drivers/scsi/qla1280.h | 270 |
1 files changed, 135 insertions, 135 deletions
diff --git a/drivers/scsi/qla1280.h b/drivers/scsi/qla1280.h index 7c919db97a40..59915fb70301 100644 --- a/drivers/scsi/qla1280.h +++ b/drivers/scsi/qla1280.h | |||
@@ -516,23 +516,23 @@ struct cmd_entry { | |||
516 | uint8_t entry_count; /* Entry count. */ | 516 | uint8_t entry_count; /* Entry count. */ |
517 | uint8_t sys_define; /* System defined. */ | 517 | uint8_t sys_define; /* System defined. */ |
518 | uint8_t entry_status; /* Entry Status. */ | 518 | uint8_t entry_status; /* Entry Status. */ |
519 | uint32_t handle; /* System handle. */ | 519 | __le32 handle; /* System handle. */ |
520 | uint8_t lun; /* SCSI LUN */ | 520 | uint8_t lun; /* SCSI LUN */ |
521 | uint8_t target; /* SCSI ID */ | 521 | uint8_t target; /* SCSI ID */ |
522 | uint16_t cdb_len; /* SCSI command length. */ | 522 | __le16 cdb_len; /* SCSI command length. */ |
523 | uint16_t control_flags; /* Control flags. */ | 523 | __le16 control_flags; /* Control flags. */ |
524 | uint16_t reserved; | 524 | __le16 reserved; |
525 | uint16_t timeout; /* Command timeout. */ | 525 | __le16 timeout; /* Command timeout. */ |
526 | uint16_t dseg_count; /* Data segment count. */ | 526 | __le16 dseg_count; /* Data segment count. */ |
527 | uint8_t scsi_cdb[MAX_CMDSZ]; /* SCSI command words. */ | 527 | uint8_t scsi_cdb[MAX_CMDSZ]; /* SCSI command words. */ |
528 | uint32_t dseg_0_address; /* Data segment 0 address. */ | 528 | __le32 dseg_0_address; /* Data segment 0 address. */ |
529 | uint32_t dseg_0_length; /* Data segment 0 length. */ | 529 | __le32 dseg_0_length; /* Data segment 0 length. */ |
530 | uint32_t dseg_1_address; /* Data segment 1 address. */ | 530 | __le32 dseg_1_address; /* Data segment 1 address. */ |
531 | uint32_t dseg_1_length; /* Data segment 1 length. */ | 531 | __le32 dseg_1_length; /* Data segment 1 length. */ |
532 | uint32_t dseg_2_address; /* Data segment 2 address. */ | 532 | __le32 dseg_2_address; /* Data segment 2 address. */ |
533 | uint32_t dseg_2_length; /* Data segment 2 length. */ | 533 | __le32 dseg_2_length; /* Data segment 2 length. */ |
534 | uint32_t dseg_3_address; /* Data segment 3 address. */ | 534 | __le32 dseg_3_address; /* Data segment 3 address. */ |
535 | uint32_t dseg_3_length; /* Data segment 3 length. */ | 535 | __le32 dseg_3_length; /* Data segment 3 length. */ |
536 | }; | 536 | }; |
537 | 537 | ||
538 | /* | 538 | /* |
@@ -544,21 +544,21 @@ struct cont_entry { | |||
544 | uint8_t entry_count; /* Entry count. */ | 544 | uint8_t entry_count; /* Entry count. */ |
545 | uint8_t sys_define; /* System defined. */ | 545 | uint8_t sys_define; /* System defined. */ |
546 | uint8_t entry_status; /* Entry Status. */ | 546 | uint8_t entry_status; /* Entry Status. */ |
547 | uint32_t reserved; /* Reserved */ | 547 | __le32 reserved; /* Reserved */ |
548 | uint32_t dseg_0_address; /* Data segment 0 address. */ | 548 | __le32 dseg_0_address; /* Data segment 0 address. */ |
549 | uint32_t dseg_0_length; /* Data segment 0 length. */ | 549 | __le32 dseg_0_length; /* Data segment 0 length. */ |
550 | uint32_t dseg_1_address; /* Data segment 1 address. */ | 550 | __le32 dseg_1_address; /* Data segment 1 address. */ |
551 | uint32_t dseg_1_length; /* Data segment 1 length. */ | 551 | __le32 dseg_1_length; /* Data segment 1 length. */ |
552 | uint32_t dseg_2_address; /* Data segment 2 address. */ | 552 | __le32 dseg_2_address; /* Data segment 2 address. */ |
553 | uint32_t dseg_2_length; /* Data segment 2 length. */ | 553 | __le32 dseg_2_length; /* Data segment 2 length. */ |
554 | uint32_t dseg_3_address; /* Data segment 3 address. */ | 554 | __le32 dseg_3_address; /* Data segment 3 address. */ |
555 | uint32_t dseg_3_length; /* Data segment 3 length. */ | 555 | __le32 dseg_3_length; /* Data segment 3 length. */ |
556 | uint32_t dseg_4_address; /* Data segment 4 address. */ | 556 | __le32 dseg_4_address; /* Data segment 4 address. */ |
557 | uint32_t dseg_4_length; /* Data segment 4 length. */ | 557 | __le32 dseg_4_length; /* Data segment 4 length. */ |
558 | uint32_t dseg_5_address; /* Data segment 5 address. */ | 558 | __le32 dseg_5_address; /* Data segment 5 address. */ |
559 | uint32_t dseg_5_length; /* Data segment 5 length. */ | 559 | __le32 dseg_5_length; /* Data segment 5 length. */ |
560 | uint32_t dseg_6_address; /* Data segment 6 address. */ | 560 | __le32 dseg_6_address; /* Data segment 6 address. */ |
561 | uint32_t dseg_6_length; /* Data segment 6 length. */ | 561 | __le32 dseg_6_length; /* Data segment 6 length. */ |
562 | }; | 562 | }; |
563 | 563 | ||
564 | /* | 564 | /* |
@@ -574,22 +574,22 @@ struct response { | |||
574 | #define RF_FULL BIT_1 /* Full */ | 574 | #define RF_FULL BIT_1 /* Full */ |
575 | #define RF_BAD_HEADER BIT_2 /* Bad header. */ | 575 | #define RF_BAD_HEADER BIT_2 /* Bad header. */ |
576 | #define RF_BAD_PAYLOAD BIT_3 /* Bad payload. */ | 576 | #define RF_BAD_PAYLOAD BIT_3 /* Bad payload. */ |
577 | uint32_t handle; /* System handle. */ | 577 | __le32 handle; /* System handle. */ |
578 | uint16_t scsi_status; /* SCSI status. */ | 578 | __le16 scsi_status; /* SCSI status. */ |
579 | uint16_t comp_status; /* Completion status. */ | 579 | __le16 comp_status; /* Completion status. */ |
580 | uint16_t state_flags; /* State flags. */ | 580 | __le16 state_flags; /* State flags. */ |
581 | #define SF_TRANSFER_CMPL BIT_14 /* Transfer Complete. */ | 581 | #define SF_TRANSFER_CMPL BIT_14 /* Transfer Complete. */ |
582 | #define SF_GOT_SENSE BIT_13 /* Got Sense */ | 582 | #define SF_GOT_SENSE BIT_13 /* Got Sense */ |
583 | #define SF_GOT_STATUS BIT_12 /* Got Status */ | 583 | #define SF_GOT_STATUS BIT_12 /* Got Status */ |
584 | #define SF_TRANSFERRED_DATA BIT_11 /* Transferred data */ | 584 | #define SF_TRANSFERRED_DATA BIT_11 /* Transferred data */ |
585 | #define SF_SENT_CDB BIT_10 /* Send CDB */ | 585 | #define SF_SENT_CDB BIT_10 /* Send CDB */ |
586 | #define SF_GOT_TARGET BIT_9 /* */ | 586 | #define SF_GOT_TARGET BIT_9 /* */ |
587 | #define SF_GOT_BUS BIT_8 /* */ | 587 | #define SF_GOT_BUS BIT_8 /* */ |
588 | uint16_t status_flags; /* Status flags. */ | 588 | __le16 status_flags; /* Status flags. */ |
589 | uint16_t time; /* Time. */ | 589 | __le16 time; /* Time. */ |
590 | uint16_t req_sense_length; /* Request sense data length. */ | 590 | __le16 req_sense_length;/* Request sense data length. */ |
591 | uint32_t residual_length; /* Residual transfer length. */ | 591 | __le32 residual_length; /* Residual transfer length. */ |
592 | uint16_t reserved[4]; | 592 | __le16 reserved[4]; |
593 | uint8_t req_sense_data[32]; /* Request sense data. */ | 593 | uint8_t req_sense_data[32]; /* Request sense data. */ |
594 | }; | 594 | }; |
595 | 595 | ||
@@ -602,7 +602,7 @@ struct mrk_entry { | |||
602 | uint8_t entry_count; /* Entry count. */ | 602 | uint8_t entry_count; /* Entry count. */ |
603 | uint8_t sys_define; /* System defined. */ | 603 | uint8_t sys_define; /* System defined. */ |
604 | uint8_t entry_status; /* Entry Status. */ | 604 | uint8_t entry_status; /* Entry Status. */ |
605 | uint32_t reserved; | 605 | __le32 reserved; |
606 | uint8_t lun; /* SCSI LUN */ | 606 | uint8_t lun; /* SCSI LUN */ |
607 | uint8_t target; /* SCSI ID */ | 607 | uint8_t target; /* SCSI ID */ |
608 | uint8_t modifier; /* Modifier (7-0). */ | 608 | uint8_t modifier; /* Modifier (7-0). */ |
@@ -626,11 +626,11 @@ struct ecmd_entry { | |||
626 | uint32_t handle; /* System handle. */ | 626 | uint32_t handle; /* System handle. */ |
627 | uint8_t lun; /* SCSI LUN */ | 627 | uint8_t lun; /* SCSI LUN */ |
628 | uint8_t target; /* SCSI ID */ | 628 | uint8_t target; /* SCSI ID */ |
629 | uint16_t cdb_len; /* SCSI command length. */ | 629 | __le16 cdb_len; /* SCSI command length. */ |
630 | uint16_t control_flags; /* Control flags. */ | 630 | __le16 control_flags; /* Control flags. */ |
631 | uint16_t reserved; | 631 | __le16 reserved; |
632 | uint16_t timeout; /* Command timeout. */ | 632 | __le16 timeout; /* Command timeout. */ |
633 | uint16_t dseg_count; /* Data segment count. */ | 633 | __le16 dseg_count; /* Data segment count. */ |
634 | uint8_t scsi_cdb[88]; /* SCSI command words. */ | 634 | uint8_t scsi_cdb[88]; /* SCSI command words. */ |
635 | }; | 635 | }; |
636 | 636 | ||
@@ -643,20 +643,20 @@ typedef struct { | |||
643 | uint8_t entry_count; /* Entry count. */ | 643 | uint8_t entry_count; /* Entry count. */ |
644 | uint8_t sys_define; /* System defined. */ | 644 | uint8_t sys_define; /* System defined. */ |
645 | uint8_t entry_status; /* Entry Status. */ | 645 | uint8_t entry_status; /* Entry Status. */ |
646 | uint32_t handle; /* System handle. */ | 646 | __le32 handle; /* System handle. */ |
647 | uint8_t lun; /* SCSI LUN */ | 647 | uint8_t lun; /* SCSI LUN */ |
648 | uint8_t target; /* SCSI ID */ | 648 | uint8_t target; /* SCSI ID */ |
649 | uint16_t cdb_len; /* SCSI command length. */ | 649 | __le16 cdb_len; /* SCSI command length. */ |
650 | uint16_t control_flags; /* Control flags. */ | 650 | __le16 control_flags; /* Control flags. */ |
651 | uint16_t reserved; | 651 | __le16 reserved; |
652 | uint16_t timeout; /* Command timeout. */ | 652 | __le16 timeout; /* Command timeout. */ |
653 | uint16_t dseg_count; /* Data segment count. */ | 653 | __le16 dseg_count; /* Data segment count. */ |
654 | uint8_t scsi_cdb[MAX_CMDSZ]; /* SCSI command words. */ | 654 | uint8_t scsi_cdb[MAX_CMDSZ]; /* SCSI command words. */ |
655 | uint32_t reserved_1[2]; /* unused */ | 655 | __le32 reserved_1[2]; /* unused */ |
656 | uint32_t dseg_0_address[2]; /* Data segment 0 address. */ | 656 | __le32 dseg_0_address[2]; /* Data segment 0 address. */ |
657 | uint32_t dseg_0_length; /* Data segment 0 length. */ | 657 | __le32 dseg_0_length; /* Data segment 0 length. */ |
658 | uint32_t dseg_1_address[2]; /* Data segment 1 address. */ | 658 | __le32 dseg_1_address[2]; /* Data segment 1 address. */ |
659 | uint32_t dseg_1_length; /* Data segment 1 length. */ | 659 | __le32 dseg_1_length; /* Data segment 1 length. */ |
660 | } cmd_a64_entry_t, request_t; | 660 | } cmd_a64_entry_t, request_t; |
661 | 661 | ||
662 | /* | 662 | /* |
@@ -668,16 +668,16 @@ struct cont_a64_entry { | |||
668 | uint8_t entry_count; /* Entry count. */ | 668 | uint8_t entry_count; /* Entry count. */ |
669 | uint8_t sys_define; /* System defined. */ | 669 | uint8_t sys_define; /* System defined. */ |
670 | uint8_t entry_status; /* Entry Status. */ | 670 | uint8_t entry_status; /* Entry Status. */ |
671 | uint32_t dseg_0_address[2]; /* Data segment 0 address. */ | 671 | __le32 dseg_0_address[2]; /* Data segment 0 address. */ |
672 | uint32_t dseg_0_length; /* Data segment 0 length. */ | 672 | __le32 dseg_0_length; /* Data segment 0 length. */ |
673 | uint32_t dseg_1_address[2]; /* Data segment 1 address. */ | 673 | __le32 dseg_1_address[2]; /* Data segment 1 address. */ |
674 | uint32_t dseg_1_length; /* Data segment 1 length. */ | 674 | __le32 dseg_1_length; /* Data segment 1 length. */ |
675 | uint32_t dseg_2_address[2]; /* Data segment 2 address. */ | 675 | __le32 dseg_2_address[2]; /* Data segment 2 address. */ |
676 | uint32_t dseg_2_length; /* Data segment 2 length. */ | 676 | __le32 dseg_2_length; /* Data segment 2 length. */ |
677 | uint32_t dseg_3_address[2]; /* Data segment 3 address. */ | 677 | __le32 dseg_3_address[2]; /* Data segment 3 address. */ |
678 | uint32_t dseg_3_length; /* Data segment 3 length. */ | 678 | __le32 dseg_3_length; /* Data segment 3 length. */ |
679 | uint32_t dseg_4_address[2]; /* Data segment 4 address. */ | 679 | __le32 dseg_4_address[2]; /* Data segment 4 address. */ |
680 | uint32_t dseg_4_length; /* Data segment 4 length. */ | 680 | __le32 dseg_4_length; /* Data segment 4 length. */ |
681 | }; | 681 | }; |
682 | 682 | ||
683 | /* | 683 | /* |
@@ -689,10 +689,10 @@ struct elun_entry { | |||
689 | uint8_t entry_count; /* Entry count. */ | 689 | uint8_t entry_count; /* Entry count. */ |
690 | uint8_t reserved_1; | 690 | uint8_t reserved_1; |
691 | uint8_t entry_status; /* Entry Status not used. */ | 691 | uint8_t entry_status; /* Entry Status not used. */ |
692 | uint32_t reserved_2; | 692 | __le32 reserved_2; |
693 | uint16_t lun; /* Bit 15 is bus number. */ | 693 | __le16 lun; /* Bit 15 is bus number. */ |
694 | uint16_t reserved_4; | 694 | __le16 reserved_4; |
695 | uint32_t option_flags; | 695 | __le32 option_flags; |
696 | uint8_t status; | 696 | uint8_t status; |
697 | uint8_t reserved_5; | 697 | uint8_t reserved_5; |
698 | uint8_t command_count; /* Number of ATIOs allocated. */ | 698 | uint8_t command_count; /* Number of ATIOs allocated. */ |
@@ -702,8 +702,8 @@ struct elun_entry { | |||
702 | /* commands (2-26). */ | 702 | /* commands (2-26). */ |
703 | uint8_t group_7_length; /* SCSI CDB length for group 7 */ | 703 | uint8_t group_7_length; /* SCSI CDB length for group 7 */ |
704 | /* commands (2-26). */ | 704 | /* commands (2-26). */ |
705 | uint16_t timeout; /* 0 = 30 seconds, 0xFFFF = disable */ | 705 | __le16 timeout; /* 0 = 30 seconds, 0xFFFF = disable */ |
706 | uint16_t reserved_6[20]; | 706 | __le16 reserved_6[20]; |
707 | }; | 707 | }; |
708 | 708 | ||
709 | /* | 709 | /* |
@@ -717,20 +717,20 @@ struct modify_lun_entry { | |||
717 | uint8_t entry_count; /* Entry count. */ | 717 | uint8_t entry_count; /* Entry count. */ |
718 | uint8_t reserved_1; | 718 | uint8_t reserved_1; |
719 | uint8_t entry_status; /* Entry Status. */ | 719 | uint8_t entry_status; /* Entry Status. */ |
720 | uint32_t reserved_2; | 720 | __le32 reserved_2; |
721 | uint8_t lun; /* SCSI LUN */ | 721 | uint8_t lun; /* SCSI LUN */ |
722 | uint8_t reserved_3; | 722 | uint8_t reserved_3; |
723 | uint8_t operators; | 723 | uint8_t operators; |
724 | uint8_t reserved_4; | 724 | uint8_t reserved_4; |
725 | uint32_t option_flags; | 725 | __le32 option_flags; |
726 | uint8_t status; | 726 | uint8_t status; |
727 | uint8_t reserved_5; | 727 | uint8_t reserved_5; |
728 | uint8_t command_count; /* Number of ATIOs allocated. */ | 728 | uint8_t command_count; /* Number of ATIOs allocated. */ |
729 | uint8_t immed_notify_count; /* Number of Immediate Notify */ | 729 | uint8_t immed_notify_count; /* Number of Immediate Notify */ |
730 | /* entries allocated. */ | 730 | /* entries allocated. */ |
731 | uint16_t reserved_6; | 731 | __le16 reserved_6; |
732 | uint16_t timeout; /* 0 = 30 seconds, 0xFFFF = disable */ | 732 | __le16 timeout; /* 0 = 30 seconds, 0xFFFF = disable */ |
733 | uint16_t reserved_7[20]; | 733 | __le16 reserved_7[20]; |
734 | }; | 734 | }; |
735 | 735 | ||
736 | /* | 736 | /* |
@@ -742,20 +742,20 @@ struct notify_entry { | |||
742 | uint8_t entry_count; /* Entry count. */ | 742 | uint8_t entry_count; /* Entry count. */ |
743 | uint8_t reserved_1; | 743 | uint8_t reserved_1; |
744 | uint8_t entry_status; /* Entry Status. */ | 744 | uint8_t entry_status; /* Entry Status. */ |
745 | uint32_t reserved_2; | 745 | __le32 reserved_2; |
746 | uint8_t lun; | 746 | uint8_t lun; |
747 | uint8_t initiator_id; | 747 | uint8_t initiator_id; |
748 | uint8_t reserved_3; | 748 | uint8_t reserved_3; |
749 | uint8_t target_id; | 749 | uint8_t target_id; |
750 | uint32_t option_flags; | 750 | __le32 option_flags; |
751 | uint8_t status; | 751 | uint8_t status; |
752 | uint8_t reserved_4; | 752 | uint8_t reserved_4; |
753 | uint8_t tag_value; /* Received queue tag message value */ | 753 | uint8_t tag_value; /* Received queue tag message value */ |
754 | uint8_t tag_type; /* Received queue tag message type */ | 754 | uint8_t tag_type; /* Received queue tag message type */ |
755 | /* entries allocated. */ | 755 | /* entries allocated. */ |
756 | uint16_t seq_id; | 756 | __le16 seq_id; |
757 | uint8_t scsi_msg[8]; /* SCSI message not handled by ISP */ | 757 | uint8_t scsi_msg[8]; /* SCSI message not handled by ISP */ |
758 | uint16_t reserved_5[8]; | 758 | __le16 reserved_5[8]; |
759 | uint8_t sense_data[18]; | 759 | uint8_t sense_data[18]; |
760 | }; | 760 | }; |
761 | 761 | ||
@@ -768,16 +768,16 @@ struct nack_entry { | |||
768 | uint8_t entry_count; /* Entry count. */ | 768 | uint8_t entry_count; /* Entry count. */ |
769 | uint8_t reserved_1; | 769 | uint8_t reserved_1; |
770 | uint8_t entry_status; /* Entry Status. */ | 770 | uint8_t entry_status; /* Entry Status. */ |
771 | uint32_t reserved_2; | 771 | __le32 reserved_2; |
772 | uint8_t lun; | 772 | uint8_t lun; |
773 | uint8_t initiator_id; | 773 | uint8_t initiator_id; |
774 | uint8_t reserved_3; | 774 | uint8_t reserved_3; |
775 | uint8_t target_id; | 775 | uint8_t target_id; |
776 | uint32_t option_flags; | 776 | __le32 option_flags; |
777 | uint8_t status; | 777 | uint8_t status; |
778 | uint8_t event; | 778 | uint8_t event; |
779 | uint16_t seq_id; | 779 | __le16 seq_id; |
780 | uint16_t reserved_4[22]; | 780 | __le16 reserved_4[22]; |
781 | }; | 781 | }; |
782 | 782 | ||
783 | /* | 783 | /* |
@@ -789,12 +789,12 @@ struct atio_entry { | |||
789 | uint8_t entry_count; /* Entry count. */ | 789 | uint8_t entry_count; /* Entry count. */ |
790 | uint8_t reserved_1; | 790 | uint8_t reserved_1; |
791 | uint8_t entry_status; /* Entry Status. */ | 791 | uint8_t entry_status; /* Entry Status. */ |
792 | uint32_t reserved_2; | 792 | __le32 reserved_2; |
793 | uint8_t lun; | 793 | uint8_t lun; |
794 | uint8_t initiator_id; | 794 | uint8_t initiator_id; |
795 | uint8_t cdb_len; | 795 | uint8_t cdb_len; |
796 | uint8_t target_id; | 796 | uint8_t target_id; |
797 | uint32_t option_flags; | 797 | __le32 option_flags; |
798 | uint8_t status; | 798 | uint8_t status; |
799 | uint8_t scsi_status; | 799 | uint8_t scsi_status; |
800 | uint8_t tag_value; /* Received queue tag message value */ | 800 | uint8_t tag_value; /* Received queue tag message value */ |
@@ -812,28 +812,28 @@ struct ctio_entry { | |||
812 | uint8_t entry_count; /* Entry count. */ | 812 | uint8_t entry_count; /* Entry count. */ |
813 | uint8_t reserved_1; | 813 | uint8_t reserved_1; |
814 | uint8_t entry_status; /* Entry Status. */ | 814 | uint8_t entry_status; /* Entry Status. */ |
815 | uint32_t reserved_2; | 815 | __le32 reserved_2; |
816 | uint8_t lun; /* SCSI LUN */ | 816 | uint8_t lun; /* SCSI LUN */ |
817 | uint8_t initiator_id; | 817 | uint8_t initiator_id; |
818 | uint8_t reserved_3; | 818 | uint8_t reserved_3; |
819 | uint8_t target_id; | 819 | uint8_t target_id; |
820 | uint32_t option_flags; | 820 | __le32 option_flags; |
821 | uint8_t status; | 821 | uint8_t status; |
822 | uint8_t scsi_status; | 822 | uint8_t scsi_status; |
823 | uint8_t tag_value; /* Received queue tag message value */ | 823 | uint8_t tag_value; /* Received queue tag message value */ |
824 | uint8_t tag_type; /* Received queue tag message type */ | 824 | uint8_t tag_type; /* Received queue tag message type */ |
825 | uint32_t transfer_length; | 825 | __le32 transfer_length; |
826 | uint32_t residual; | 826 | __le32 residual; |
827 | uint16_t timeout; /* 0 = 30 seconds, 0xFFFF = disable */ | 827 | __le16 timeout; /* 0 = 30 seconds, 0xFFFF = disable */ |
828 | uint16_t dseg_count; /* Data segment count. */ | 828 | __le16 dseg_count; /* Data segment count. */ |
829 | uint32_t dseg_0_address; /* Data segment 0 address. */ | 829 | __le32 dseg_0_address; /* Data segment 0 address. */ |
830 | uint32_t dseg_0_length; /* Data segment 0 length. */ | 830 | __le32 dseg_0_length; /* Data segment 0 length. */ |
831 | uint32_t dseg_1_address; /* Data segment 1 address. */ | 831 | __le32 dseg_1_address; /* Data segment 1 address. */ |
832 | uint32_t dseg_1_length; /* Data segment 1 length. */ | 832 | __le32 dseg_1_length; /* Data segment 1 length. */ |
833 | uint32_t dseg_2_address; /* Data segment 2 address. */ | 833 | __le32 dseg_2_address; /* Data segment 2 address. */ |
834 | uint32_t dseg_2_length; /* Data segment 2 length. */ | 834 | __le32 dseg_2_length; /* Data segment 2 length. */ |
835 | uint32_t dseg_3_address; /* Data segment 3 address. */ | 835 | __le32 dseg_3_address; /* Data segment 3 address. */ |
836 | uint32_t dseg_3_length; /* Data segment 3 length. */ | 836 | __le32 dseg_3_length; /* Data segment 3 length. */ |
837 | }; | 837 | }; |
838 | 838 | ||
839 | /* | 839 | /* |
@@ -845,24 +845,24 @@ struct ctio_ret_entry { | |||
845 | uint8_t entry_count; /* Entry count. */ | 845 | uint8_t entry_count; /* Entry count. */ |
846 | uint8_t reserved_1; | 846 | uint8_t reserved_1; |
847 | uint8_t entry_status; /* Entry Status. */ | 847 | uint8_t entry_status; /* Entry Status. */ |
848 | uint32_t reserved_2; | 848 | __le32 reserved_2; |
849 | uint8_t lun; /* SCSI LUN */ | 849 | uint8_t lun; /* SCSI LUN */ |
850 | uint8_t initiator_id; | 850 | uint8_t initiator_id; |
851 | uint8_t reserved_3; | 851 | uint8_t reserved_3; |
852 | uint8_t target_id; | 852 | uint8_t target_id; |
853 | uint32_t option_flags; | 853 | __le32 option_flags; |
854 | uint8_t status; | 854 | uint8_t status; |
855 | uint8_t scsi_status; | 855 | uint8_t scsi_status; |
856 | uint8_t tag_value; /* Received queue tag message value */ | 856 | uint8_t tag_value; /* Received queue tag message value */ |
857 | uint8_t tag_type; /* Received queue tag message type */ | 857 | uint8_t tag_type; /* Received queue tag message type */ |
858 | uint32_t transfer_length; | 858 | __le32 transfer_length; |
859 | uint32_t residual; | 859 | __le32 residual; |
860 | uint16_t timeout; /* 0 = 30 seconds, 0xFFFF = disable */ | 860 | __le16 timeout; /* 0 = 30 seconds, 0xFFFF = disable */ |
861 | uint16_t dseg_count; /* Data segment count. */ | 861 | __le16 dseg_count; /* Data segment count. */ |
862 | uint32_t dseg_0_address; /* Data segment 0 address. */ | 862 | __le32 dseg_0_address; /* Data segment 0 address. */ |
863 | uint32_t dseg_0_length; /* Data segment 0 length. */ | 863 | __le32 dseg_0_length; /* Data segment 0 length. */ |
864 | uint32_t dseg_1_address; /* Data segment 1 address. */ | 864 | __le32 dseg_1_address; /* Data segment 1 address. */ |
865 | uint16_t dseg_1_length; /* Data segment 1 length. */ | 865 | __le16 dseg_1_length; /* Data segment 1 length. */ |
866 | uint8_t sense_data[18]; | 866 | uint8_t sense_data[18]; |
867 | }; | 867 | }; |
868 | 868 | ||
@@ -875,25 +875,25 @@ struct ctio_a64_entry { | |||
875 | uint8_t entry_count; /* Entry count. */ | 875 | uint8_t entry_count; /* Entry count. */ |
876 | uint8_t reserved_1; | 876 | uint8_t reserved_1; |
877 | uint8_t entry_status; /* Entry Status. */ | 877 | uint8_t entry_status; /* Entry Status. */ |
878 | uint32_t reserved_2; | 878 | __le32 reserved_2; |
879 | uint8_t lun; /* SCSI LUN */ | 879 | uint8_t lun; /* SCSI LUN */ |
880 | uint8_t initiator_id; | 880 | uint8_t initiator_id; |
881 | uint8_t reserved_3; | 881 | uint8_t reserved_3; |
882 | uint8_t target_id; | 882 | uint8_t target_id; |
883 | uint32_t option_flags; | 883 | __le32 option_flags; |
884 | uint8_t status; | 884 | uint8_t status; |
885 | uint8_t scsi_status; | 885 | uint8_t scsi_status; |
886 | uint8_t tag_value; /* Received queue tag message value */ | 886 | uint8_t tag_value; /* Received queue tag message value */ |
887 | uint8_t tag_type; /* Received queue tag message type */ | 887 | uint8_t tag_type; /* Received queue tag message type */ |
888 | uint32_t transfer_length; | 888 | __le32 transfer_length; |
889 | uint32_t residual; | 889 | __le32 residual; |
890 | uint16_t timeout; /* 0 = 30 seconds, 0xFFFF = disable */ | 890 | __le16 timeout; /* 0 = 30 seconds, 0xFFFF = disable */ |
891 | uint16_t dseg_count; /* Data segment count. */ | 891 | __le16 dseg_count; /* Data segment count. */ |
892 | uint32_t reserved_4[2]; | 892 | __le32 reserved_4[2]; |
893 | uint32_t dseg_0_address[2]; /* Data segment 0 address. */ | 893 | __le32 dseg_0_address[2];/* Data segment 0 address. */ |
894 | uint32_t dseg_0_length; /* Data segment 0 length. */ | 894 | __le32 dseg_0_length; /* Data segment 0 length. */ |
895 | uint32_t dseg_1_address[2]; /* Data segment 1 address. */ | 895 | __le32 dseg_1_address[2];/* Data segment 1 address. */ |
896 | uint32_t dseg_1_length; /* Data segment 1 length. */ | 896 | __le32 dseg_1_length; /* Data segment 1 length. */ |
897 | }; | 897 | }; |
898 | 898 | ||
899 | /* | 899 | /* |
@@ -905,21 +905,21 @@ struct ctio_a64_ret_entry { | |||
905 | uint8_t entry_count; /* Entry count. */ | 905 | uint8_t entry_count; /* Entry count. */ |
906 | uint8_t reserved_1; | 906 | uint8_t reserved_1; |
907 | uint8_t entry_status; /* Entry Status. */ | 907 | uint8_t entry_status; /* Entry Status. */ |
908 | uint32_t reserved_2; | 908 | __le32 reserved_2; |
909 | uint8_t lun; /* SCSI LUN */ | 909 | uint8_t lun; /* SCSI LUN */ |
910 | uint8_t initiator_id; | 910 | uint8_t initiator_id; |
911 | uint8_t reserved_3; | 911 | uint8_t reserved_3; |
912 | uint8_t target_id; | 912 | uint8_t target_id; |
913 | uint32_t option_flags; | 913 | __le32 option_flags; |
914 | uint8_t status; | 914 | uint8_t status; |
915 | uint8_t scsi_status; | 915 | uint8_t scsi_status; |
916 | uint8_t tag_value; /* Received queue tag message value */ | 916 | uint8_t tag_value; /* Received queue tag message value */ |
917 | uint8_t tag_type; /* Received queue tag message type */ | 917 | uint8_t tag_type; /* Received queue tag message type */ |
918 | uint32_t transfer_length; | 918 | __le32 transfer_length; |
919 | uint32_t residual; | 919 | __le32 residual; |
920 | uint16_t timeout; /* 0 = 30 seconds, 0xFFFF = disable */ | 920 | __le16 timeout; /* 0 = 30 seconds, 0xFFFF = disable */ |
921 | uint16_t dseg_count; /* Data segment count. */ | 921 | __le16 dseg_count; /* Data segment count. */ |
922 | uint16_t reserved_4[7]; | 922 | __le16 reserved_4[7]; |
923 | uint8_t sense_data[18]; | 923 | uint8_t sense_data[18]; |
924 | }; | 924 | }; |
925 | 925 | ||