ibm440gx_common.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*
  2. * PPC440GX system library
  3. *
  4. * Eugene Surovegin <eugene.surovegin@zultys.com> or <ebs@ebshome.net>
  5. * Copyright (c) 2003, 2004 Zultys Technologies
  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 as published by the
  9. * Free Software Foundation; either version 2 of the License, or (at your
  10. * option) any later version.
  11. *
  12. */
  13. #ifdef __KERNEL__
  14. #ifndef __PPC_SYSLIB_IBM440GX_COMMON_H
  15. #define __PPC_SYSLIB_IBM440GX_COMMON_H
  16. #ifndef __ASSEMBLY__
  17. #include <linux/config.h>
  18. #include <linux/init.h>
  19. #include <linux/seq_file.h>
  20. #include <syslib/ibm44x_common.h>
  21. /*
  22. * Please, refer to the Figure 14.1 in 440GX user manual
  23. *
  24. * if internal UART clock is used, ser_clk is ignored
  25. */
  26. void ibm440gx_get_clocks(struct ibm44x_clocks*, unsigned int sys_clk,
  27. unsigned int ser_clk) __init;
  28. /* Enable L2 cache */
  29. void ibm440gx_l2c_enable(void) __init;
  30. /* Disable L2 cache */
  31. void ibm440gx_l2c_disable(void) __init;
  32. /* Enable/disable L2 cache for a particular chip revision */
  33. void ibm440gx_l2c_setup(struct ibm44x_clocks*) __init;
  34. /* Get Ethernet Group */
  35. int ibm440gx_get_eth_grp(void) __init;
  36. /* Set Ethernet Group */
  37. void ibm440gx_set_eth_grp(int group) __init;
  38. /* Enable TAH devices */
  39. void ibm440gx_tah_enable(void) __init;
  40. /* Add L2C info to /proc/cpuinfo */
  41. int ibm440gx_show_cpuinfo(struct seq_file*);
  42. #endif /* __ASSEMBLY__ */
  43. #endif /* __PPC_SYSLIB_IBM440GX_COMMON_H */
  44. #endif /* __KERNEL__ */