clock.h 762 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * arch/arm/mach-ns9xxx/clock.h
  3. *
  4. * Copyright (C) 2007 by Digi International Inc.
  5. * All rights reserved.
  6. *
  7. * This program is free software; you can redistribute it and/or modify it
  8. * under the terms of the GNU General Public License version 2 as published by
  9. * the Free Software Foundation.
  10. */
  11. #ifndef __NS9XXX_CLOCK_H
  12. #define __NS9XXX_CLOCK_H
  13. #include <linux/list.h>
  14. struct clk {
  15. struct module *owner;
  16. const char *name;
  17. int id;
  18. struct clk *parent;
  19. unsigned long rate;
  20. int (*endisable)(struct clk *, int enable);
  21. unsigned long (*get_rate)(struct clk *);
  22. struct list_head node;
  23. unsigned long refcount;
  24. unsigned long usage;
  25. };
  26. int clk_register(struct clk *clk);
  27. int clk_unregister(struct clk *clk);
  28. #endif /* ifndef __NS9XXX_CLOCK_H */