Device Driver Initialization
Streaming I/O and Device Drivers 7-33
7.11 Device Driver Initialization
The driver function table Dxx_FXNS is initialized in dxx.c, as shown in section
7.10, Streaming DEV Structures, page 7-30.
Additional initialization is performed by Dxx_init. The Dxx module is initialized
when other application-level modules are initialized. Dxx_init typically calls
hardware initialization routines and initializes static driver structures as
shown in Example 7-22.
Example 7-22. Initialization by Dxx_init
Although Dxx_init is required in order to maintain consistency with DSP/BIOS
configuration and initialization standards, there are actually no DSP/BIOS
requirements for the internal operation of Dxx_init. There is in fact no
standard for hardware initialization, and it can be more appropriate on some
systems to perform certain hardware setup operations elsewhere in Dxx,
such as Dxx_open. Therefore, on some systems, Dxx_init might simply be an
empty function.
/*
* ======== Dxx_init ========
*/
Void Dxx_init()
{
`Perform hardware initialization`
}