drivers/scsi/aic7xxx/scsi_iu.h
Source file repositories/reference/linux-study-clean/drivers/scsi/aic7xxx/scsi_iu.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/scsi/aic7xxx/scsi_iu.h- Extension
.h- Size
- 1063 bytes
- Lines
- 40
- Domain
- Driver Families
- Bucket
- drivers/scsi
- Inferred role
- Driver Families: implementation source
- Status
- source implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct scsi_status_iu_header
Annotated Snippet
#ifndef _SCSI_SCSI_IU_H
#define _SCSI_SCSI_IU_H 1
struct scsi_status_iu_header
{
u_int8_t reserved[2];
u_int8_t flags;
#define SIU_SNSVALID 0x2
#define SIU_RSPVALID 0x1
u_int8_t status;
u_int8_t sense_length[4];
u_int8_t pkt_failures_length[4];
u_int8_t pkt_failures[1];
};
#define SIU_PKTFAIL_OFFSET(siu) 12
#define SIU_PKTFAIL_CODE(siu) (scsi_4btoul((siu)->pkt_failures) & 0xFF)
#define SIU_PFC_NONE 0
#define SIU_PFC_CIU_FIELDS_INVALID 2
#define SIU_PFC_TMF_NOT_SUPPORTED 4
#define SIU_PFC_TMF_FAILED 5
#define SIU_PFC_INVALID_TYPE_CODE 6
#define SIU_PFC_ILLEGAL_REQUEST 7
#define SIU_SENSE_OFFSET(siu) \
(12 + (((siu)->flags & SIU_RSPVALID) \
? scsi_4btoul((siu)->pkt_failures_length) \
: 0))
#define SIU_TASKMGMT_NONE 0x00
#define SIU_TASKMGMT_ABORT_TASK 0x01
#define SIU_TASKMGMT_ABORT_TASK_SET 0x02
#define SIU_TASKMGMT_CLEAR_TASK_SET 0x04
#define SIU_TASKMGMT_LUN_RESET 0x08
#define SIU_TASKMGMT_TARGET_RESET 0x20
#define SIU_TASKMGMT_CLEAR_ACA 0x40
#endif /*_SCSI_SCSI_IU_H*/
Annotation
- Detected declarations: `struct scsi_status_iu_header`.
- Atlas domain: Driver Families / drivers/scsi.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.