Skip to Content
Sun and Oracle
Channel Sun
How to Buy
Log In
繁體中文
docs.sun.com 首頁
>
Solaris 2.5.1 Driver Developer AnswerBook
> Writing Device Drivers
Writing Device Drivers
只搜尋這本書
搜尋說明
包含在
Solaris 2.5.1 Driver Developer AnswerBook
尋找其他文件
瀏覽文件標題
瀏覽產品文件
熱門支援資源
Sun 訓練課程
BigAdmin 系統管理入口網站
Sun 支援中心
Sun Solve
Writing Device Drivers
Cover
Credits
Contents
Figures
Tables
Preface
1 The SunOS Kernel and Device Tree
What is the Kernel?
Multithreading
Virtual Memory
Special Files
Dynamic Loading of Kernel Modules
Overview of the Solaris 2.x DDI/DKI
The Device Tree
2 Hardware Overview
SPARC Processor Issues
x86 Processor Issues
PowerPC Processor Issues
Store Buffers
System Memory Model
Bus Architectures
Bus Specifics
Device Issues
The PROM on SPARC Machines
Reading and Writing
3 Overview of SunOS Device Drivers
What is a Device Driver?
Types of Device Drivers
Bus Address Spaces
Driver Interfaces
Callback functions
Interrupt Handling
Driver Context
Printing Messages
Dynamic Memory Allocation
Software State Management
Properties
Driver Layout
Driver Structure Overview
The C Language and Compiler Modes
4 Multithreading
Threads
Multiprocessing Changes Since SunOS 4.x
Locking Primitives
Thread Synchronization
Choosing a Locking Scheme
5 Autoconfiguration
Overview
State Structure
Driver Loading and Configuration
Data Structures
Loadable Driver Interface
Device Configuration
6 Interrupt Handlers
Overview
Types of Interrupts
Registering Interrupts
Responsibilities of an Interrupt Handler
State Structure
Handling High-Level Interrupts
7 DMA
The DMA Model
Types of Device DMA
DMA and DVMA
Handles, Windows and Cookies
DMA Operations
Cancelling DMA Callbacks
Synchronizing Memory Objects
DMA Windows
Allocating Private DMA Buffers
8 Drivers for Character Devices
Driver Structure Overview
Entry Points
Autoconfiguration
Controlling Device Access
I/O Request Handling
Mapping Device Memory
Multiplexing I/O on File Descriptors
Miscellaneous I/O Control
9 Drivers for Block Devices
Driver Structure Overview
File I/O
State Structure
Entry Points
Autoconfiguration
Controlling Device Access
Data Transfers
Synchronous Data Transfers
Asynchronous Data Transfers
Miscellaneous Entry Points
10 Device Context Management
What Is A Device Context?
Context Management Model
Context Management Operation
11 SCSI Target Drivers
Overview
Reference Documents
Sun Common SCSI Architecture Overview
SCSA Functions
SCSA Compatibility Functions
SCSI Target Drivers
Building and Transporting a Command
12 SCSI Host Bus Adapter Drivers
Overview
SCSA HBA Interfaces
HBA Driver Dependency and Configuration Issues
SCSA HBA Entry Points
Driver Installation
13 Loading and Unloading Drivers
Preparing for Installation
Installing and Removing Drivers
Removing the Driver
Loading Drivers
Getting the Driver Module's ID
Unloading Drivers
14 Debugging
Machine Configuration
Coding Hints
Debugging Tools
Testing
A Converting a 4.x Device Driver to SunOS 5.5
Before Starting the Conversion
Development Environment
Overview of Changes
Conversion Notes
B Interface Transition List
Data Access Methods
DMA Device Access
SCSI HBA DMA Management
Device Memory Mapping
Open Boot PROM Device Properties
C Summary of Solaris 2.5 DDI/DKI Services
buf (9S) Handling
Copying Data
Device Access
Device Configuration
Device Information
DMA Handling
Flow of Control
Interrupt Handling
Kernel Statistics
Memory Allocation
Common Device Access Functions
Polling
Printing System Messages
Process Signaling
Properties
Register and Memory Mapping
PCI Configuration
I/O Port Access
SCSI and SCSA
Soft State Management
String Manipulation
System Information
Thread Synchronization
Timing
uio (9S) Handling
Utility Functions
D Sample Driver Source Code Listings
E Driver Code Layout Structure
Header Files
xx.c Files
driver .conf Files
F Advanced Topics
Multithreading
Sun Disk Device Drivers
SCSA
Index
credits_fr
News Center
About Sun
Contact Sun
Terms of Use
Privacy
Copyright
1994-2009
Sun Microsystems, Inc.