Sun Microsystems Logo
Products and Services
 
Support and Training
 
 

Writing Device Drivers
Copyright
Expand TOC  Preface
Expand TOC  1.  Solaris Kernel and Device Tree
Expand TOC  2.  Overview of Solaris Device Drivers
Expand TOC  3.  Multithreading
Expand TOC  4.  Properties and Events
Expand TOC  5.  Driver Autoconfiguration
Expand TOC  6.  Device Access -- Programmed I/O
Expand TOC  7.  Interrupt Handlers
Expand TOC  8.  Direct Memory Access (DMA)
Expand TOC  9.  Power Management
Expand TOC  10.  Drivers for Character Devices
Expand TOC  11.  Drivers for Block Devices
Expand TOC  12.  Mapping Device and Kernel Memory
Expand TOC  13.  Device Context Management
Collapse TOC  14.  SCSI Target Drivers
Introduction to Target Drivers
Sun Common SCSI Architecture Overview
General Flow of Control
SCSA Functions
Hardware Configuration File
Declarations and Data Structures
scsi_device Structure
scsi_pkt Structure
Autoconfiguration for SCSI Target Drivers
probe() Entry Point (SCSI Target Drivers)
attach() Entry Point (SCSI Target Drivers)
detach() Entry Point (SCSI Target Drivers)
getinfo() Entry Point (SCSI Target Drivers)
Resource Allocation
scsi_init_pkt() Function
scsi_sync_pkt() Function
scsi_destroy_pkt() Function
scsi_alloc_consistent_buf() Function
scsi_free_consistent_buf() Function
Building and Transporting a Command
Building a Command
Setting Target Capabilities
Transporting a Command
Command Completion
Reuse of Packets
Auto-Request Sense Mode
Dump Handling
SCSI Options
Expand TOC  15.  SCSI Host Bus Adapter Drivers
Expand TOC  16.  Drivers for Network Devices
Expand TOC  17.  Compiling, Loading, Packaging, and Testing Drivers
Expand TOC  18.  Debugging
Expand TOC  19.  Recommended Coding Practices
Expand TOC  A.   Hardware Overview
Expand TOC  B.   Summary of Solaris 9 DDI/DKI Services
Expand TOC  C.   Making a Device Driver 64-Bit Ready
Expand TOC  Index