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
Overview of SR-IOV Device Driver
Device Configuration Parameters
Setting Device Configuration Parameters
SR-IOV Configuration on Sparc OVM Platform
SR-IOV Configuration on Bare Metal Platforms
pci_param_get_ioctl() Interface
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
C. Making a Device Driver 64-Bit Ready
The SR-IOV capable PF driver performs the following actions during attachment :
Calls the pciv_vf_config() function to obtain the number of VFs.
Obtains the device specific parameters for both the PF and VF and validates them.
Initializes the hardware accordingly
Calls the pciv_vf_config() interface to enable the VF
If the PF driver is a network driver, the driver will register with the GLDv3 framework using the mac_register() interface during attachment. The PF driver also performs class-specific initialization. This results in the following set of actions:
The GLDv3 interface becomes aware of the existence of the PF device.
A new set of MAC provider interfaces are exported by the PF driver. This process enables the MAC layer to become aware that the driver is a PF driver. The MAC layer also obtains more information about the VF driver.
See Chapter 19, Drivers for Network Devices and the Oracle Solaris Administration: Network Interfaces and Network Virtualization chapter in for more information about network drivers and interfaces.
The VF instances are now initialized. A VF driver is attached only if the VF is assigned to the root domain.