The pciswap driver is generic and may be used on any board. It provides a drv_probe() routine so there is no need to add a node in the device tree for this driver.
The following sections give more information on the drivers that may need to be written when porting to a new board.
In the ChorusOS operating system the following Hot Swap Controller drivers are provided (one reference board per target family):
As the Hot Swap Controller is supposed to attach a handler to the ENUM# interrupt, this driver is very board specific.
The following are implemented as PciSwap clients: dec2115x(9DRV), dec2155x(9DRV). If the compact PCI bridge of the new board is not one of these, the PciswapEvents handlers need to be implemented.
A node for the Hot Swap Controller must be added in the device tree. The HSC_PROP_BUS_PATH property and its corresponding value must be added to this node. This property describes the bus from which the devices may be hot swapped.