Added routines to manipulate trigger registers.
Added reading and writing of trigger structure from sysfs