isci.h (cc9203bf381a465cd115762b9cf7c9a313c874bc) | isci.h (f1f52e75939b56c40b3d153ae99faf2720250242) |
---|---|
1/* 2 * This file is provided under a dual BSD/GPLv2 license. When using or 3 * redistributing this file, you may do so under either license. 4 * 5 * GPL LICENSE SUMMARY 6 * 7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 8 * --- 507 unchanged lines hidden (view full) --- 516 SCI_TASK_FAILURE_TERMINATED = SCI_FAILURE_IO_TERMINATED, 517 SCI_TASK_FAILURE_INVALID_PARAMETER_VALUE = SCI_FAILURE_INVALID_PARAMETER_VALUE, 518 519 SCI_TASK_FAILURE_REMOTE_DEVICE_RESET_REQUIRED = SCI_FAILURE_REMOTE_DEVICE_RESET_REQUIRED, 520 SCI_TASK_FAILURE_RESET_DEVICE_PARTIAL_SUCCESS = SCI_FAILURE_RESET_DEVICE_PARTIAL_SUCCESS 521 522}; 523 | 1/* 2 * This file is provided under a dual BSD/GPLv2 license. When using or 3 * redistributing this file, you may do so under either license. 4 * 5 * GPL LICENSE SUMMARY 6 * 7 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 8 * --- 507 unchanged lines hidden (view full) --- 516 SCI_TASK_FAILURE_TERMINATED = SCI_FAILURE_IO_TERMINATED, 517 SCI_TASK_FAILURE_INVALID_PARAMETER_VALUE = SCI_FAILURE_INVALID_PARAMETER_VALUE, 518 519 SCI_TASK_FAILURE_REMOTE_DEVICE_RESET_REQUIRED = SCI_FAILURE_REMOTE_DEVICE_RESET_REQUIRED, 520 SCI_TASK_FAILURE_RESET_DEVICE_PARTIAL_SUCCESS = SCI_FAILURE_RESET_DEVICE_PARTIAL_SUCCESS 521 522}; 523 |
524/** 525 * sci_swab32_cpy - convert between scsi and scu-hardware byte format 526 * @dest: receive the 4-byte endian swapped version of src 527 * @src: word aligned source buffer 528 * 529 * scu hardware handles SSP/SMP control, response, and unidentified 530 * frames in "big endian dword" order. Regardless of host endian this 531 * is always a swab32()-per-dword conversion of the standard definition, 532 * i.e. single byte fields swapped and multi-byte fields in little- 533 * endian 534 */ 535static inline void sci_swab32_cpy(void *_dest, void *_src, ssize_t word_cnt) 536{ 537 u32 *dest = _dest, *src = _src; 538 539 while (--word_cnt >= 0) 540 dest[word_cnt] = swab32(src[word_cnt]); 541} 542 |
|
524extern unsigned char no_outbound_task_to; 525extern u16 ssp_max_occ_to; 526extern u16 stp_max_occ_to; 527extern u16 ssp_inactive_to; 528extern u16 stp_inactive_to; 529extern unsigned char phy_gen; 530extern unsigned char max_concurr_spinup; 531 532irqreturn_t isci_msix_isr(int vec, void *data); 533irqreturn_t isci_intx_isr(int vec, void *data); 534irqreturn_t isci_error_isr(int vec, void *data); 535#endif /* __ISCI_H__ */ | 543extern unsigned char no_outbound_task_to; 544extern u16 ssp_max_occ_to; 545extern u16 stp_max_occ_to; 546extern u16 ssp_inactive_to; 547extern u16 stp_inactive_to; 548extern unsigned char phy_gen; 549extern unsigned char max_concurr_spinup; 550 551irqreturn_t isci_msix_isr(int vec, void *data); 552irqreturn_t isci_intx_isr(int vec, void *data); 553irqreturn_t isci_error_isr(int vec, void *data); 554#endif /* __ISCI_H__ */ |