Ok, thank you again.
Here is is the sources of the switch driver. It is not the latest version, but it let's understand what's inside.
And here is the datasheet with registers description for the very similar switch chip.
The driver provides access to the registers via ioctls. Also it...