How to Write a Reference Clock Driver