The Go-HotSwap package provides source code for the utilities listed above,
along with other samples, which demonstrate how the Go-HotSwap and WinDriver
APIs can be used in various applications. Find the sample which is closest to
the driver/application you need. Use it to jump-start your driver development
- Go-HotSwap Samples
(GoHotSwap/hotswap/...) – Samples
that demonstrate how various hot swap tasks are performed using Go-HotSwap
The hs_detect utility prints messages
to the screen upon hot swap events.
The application first activates the Go-HotSwap Hot Swap Engine,
and registers itself to receive notifications regarding hot swap
events according to a user predefined set of criteria. The default
is to receive notifications regarding all hot swap events.
When activated by the hs_detect
utility, the Hot Swap Engine detects the insertion and removal of
CompactPCI boards, dynamically allocates/de-allocates resources
required by these boards and sends the relevant notifications to the
When the hs_detect application
receives such notifications, it prints a message to the screen
accordingly. For example, if a cPCI board is removed, then
hs_detect prints a message saying that
a board of bus x, slot y, function z has been removed.
– The hs_activate utility
activates any desired application upon insertion or removal of a
CompactPCI board, according to the user's pre-configuration.
This utility activates the Go-HotSwap Engine and upon each
insertion/removal of a CompactPCI card, performs the actions defined in
a special configuration file
The file hs_conf.rul can be edited and
its configuration altered according to your requirements. This file
contains the database of the actions to be carried out upon
insertion/removal of each device. Please refer to
hs_activate utility to see how
hs_conf.rul is implemented.
The hs_reenum utility performs
re-enumeration according to user permissions.
It can be referred to as a sample for implementing the Go-HotSwap
WD_HsEventSend() for re-enumeration purposes.
- WinDriver Samples (GoHotSwap/samples)
– Samples that demonstrate different common drivers. For more
information, please refer to the relevant chapter in the WinDriver PCI Manual.
- WinDriver for PLX, Altera, AMCC and Xilinx (for example –
GoHotSwap/plx/p9054_diag, etc.) –
Source code of the diagnostic applications for the specific chipsets that
WinDriver supports. For more information, please refer to the relevant chapter
in the WinDriver PCI Manual.