Specifications
D
evice Driver Programming
14-8
DSP Component Files 14
Following are each of the component files that make up the typical DSP. Where possible,
an example has been included to show you what the component might look like. Some are
generic, while others are specific. Note that very few DSPs include all of the possible
components.
For more information on the files and file format described here, refer to the Section 4
manual pages. For more details about software packages in general, refer to System
Administration Volume 1
Sadapters 14
When a new driver has associated hardware, an entry for the new hardware must be
appended to the Sadapters file that resides in the
/etc/conf/sadapters.d/kernel.
The purpose of this file is to identify each type of adapter in the system and describe its
hardware characteristics. These characteristics are the adapter type, logical number, bus
type (HVME or VME), interrupt type, slot number, standard I/O address, and bus I/O
address. For additional information, refer to the Sadapters(4) manual page.
This file must be accessed directly. Note that the kernel must be rebuilt and the system
rebooted for the new assignment to take effect.
A sample Sadapters entry for the SYSTECH High Performance Serial (HPS) control-
ler device is presented as follows:
Sd Optional system shutdown script sd.d/module-name
Space.c Optional driver data structure allocations and
initializations
pack.d/module-name/space.c
Stubs.c Optional stubs for symbols defined in a driver
that are not installed
pack.d/module-name/stubs.c
Modstub.o Optional stub object file for loadable module pack.d/module-name/Modstub.o
Table 14-1. Components of Driver Software Package (DSP) (Cont.)
DSP
Module
Purpose File Affected in /etc/conf
# Adptr Logical Bus Intr Slot Standard Bus
# Name Adptr # Type Type No. I/O Addr1 I/O Addr2
# ----- ------- ---- ---- ---- --------- ---------
hps 0 hvme intr - e0140000 0