Structures and offsets for device registers