Skip Navigation Links | |
Exit Print View | |
Writing Device Drivers Oracle Solaris 11.1 Information Library |
Part I Designing Device Drivers for the Oracle Solaris Platform
1. Overview of Oracle Solaris Device Drivers
2. Oracle Solaris Kernel and Device Tree
5. Managing Events and Queueing Tasks
7. Device Access: Programmed I/O
10. Mapping Device and Kernel Memory
13. Hardening Oracle Solaris Drivers
14. Layered Driver Interface (LDI)
Part II Designing Specific Kinds of Device Drivers
15. Drivers for Character Devices
18. SCSI Host Bus Adapter Drivers
19. Drivers for Network Devices
Part III Building a Device Driver
22. Compiling, Loading, Packaging, and Testing Drivers
23. Debugging, Testing, and Tuning Device Drivers
24. Recommended Coding Practices
B. Summary of Oracle Solaris DDI/DKI Services
Device Information Tree Node (dev_info_t) Functions
Device Software State Functions
Memory Allocation and Deallocation Functions
Kernel Thread Control and Synchronization Functions
Task Queue Management Functions
Direct Memory Access (DMA) Functions
User Process Information Functions
User Application Kernel and Device Access Functions
Kernel Logging and Printing Functions
Resource Map Management Functions
C. Making a Device Driver 64-Bit Ready
The interrupt functions are:
Adds an interrupt handler.
Adds a soft interrupt handler.
Allocates system resources and interrupt vectors for the specified type of interrupt.
Disables the specified range of interrupts. For MSI only.
Enables the specified range of interrupts. For MSI only.
Clears an interrupt mask if the specified interrupt is enabled.
Disables the specified interrupt.
Use with MSI-X only. Copies an address and data pair for an allocated interrupt vector to an unused interrupt vector on the same device.
Enables the specified interrupt.
Releases the system resources and interrupt vectors for a specified interrupt handle.
Returns interrupt capability flags for the specified interrupt.
Returns the minimum priority level for a high-level interrupt.
Returns the number of interrupts available for a particular hardware device and given interrupt type.
Get the number of interrupts that the device supports for the given interrupt type.
Read the interrupt pending bit if one is supported by either the host bridge or the device.
Returns the current software priority setting for the specified interrupt.
Returns the soft interrupt priority for the specified interrupt.
Returns the hardware interrupt types that are supported by both the device and the host.
Removes the specified interrupt handler.
Remove the specified soft interrupt handler.
Sets the DDI_INTR_FLAG_LEVEL or DDI_INTR_FLAG_EDGE flag for the specified interrupt.
Sets an interrupt mask if the specified interrupt is enabled.
Sets the interrupt priority level for the specified interrupt.
Changes the relative soft interrupt priority for the specified soft interrupt.
Trigger the specified soft interrupt.
To take advantage of the features of the new framework, use the above interfaces. Do not use the deprecated interfaces that are listed in the following table. These deprecated interfaces are retained for compatibility purposes only.
Table B-3 Deprecated Interrupt Functions
|