local.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* local.h: local definitions
  2. *
  3. * Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
  4. * Written by David Howells (dhowells@redhat.com)
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the License, or (at your option) any later version.
  10. */
  11. #ifndef _FRV_LOCAL_H
  12. #define _FRV_LOCAL_H
  13. #include <asm/sections.h>
  14. #ifndef __ASSEMBLY__
  15. /* dma.c */
  16. extern unsigned long frv_dma_inprogress;
  17. extern void frv_dma_pause_all(void);
  18. extern void frv_dma_resume_all(void);
  19. /* sleep.S */
  20. extern asmlinkage void frv_cpu_suspend(unsigned long);
  21. extern asmlinkage void frv_cpu_core_sleep(void);
  22. /* setup.c */
  23. extern unsigned long __nongprelbss pdm_suspend_mode;
  24. extern void determine_clocks(int verbose);
  25. extern int __nongprelbss clock_p0_current;
  26. extern int __nongprelbss clock_cm_current;
  27. extern int __nongprelbss clock_cmode_current;
  28. #ifdef CONFIG_PM
  29. extern int __nongprelbss clock_cmodes_permitted;
  30. extern unsigned long __nongprelbss clock_bits_settable;
  31. #define CLOCK_BIT_CM 0x0000000f
  32. #define CLOCK_BIT_CM_H 0x00000001 /* CLKC.CM can be set to 0 */
  33. #define CLOCK_BIT_CM_M 0x00000002 /* CLKC.CM can be set to 1 */
  34. #define CLOCK_BIT_CM_L 0x00000004 /* CLKC.CM can be set to 2 */
  35. #define CLOCK_BIT_P0 0x00000010 /* CLKC.P0 can be changed */
  36. #define CLOCK_BIT_CMODE 0x00000020 /* CLKC.CMODE can be changed */
  37. extern void (*__power_switch_wake_setup)(void);
  38. extern int (*__power_switch_wake_check)(void);
  39. extern void (*__power_switch_wake_cleanup)(void);
  40. #endif
  41. /* time.c */
  42. extern void time_divisor_init(void);
  43. /* cmode.S */
  44. extern asmlinkage void frv_change_cmode(int);
  45. #endif /* __ASSEMBLY__ */
  46. #endif /* _FRV_LOCAL_H */