fs_pd.h 752 B

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Platform information definitions.
  3. *
  4. * 2006 (c) MontaVista Software, Inc.
  5. * Vitaly Bordug <vbordug@ru.mvista.com>
  6. *
  7. * This file is licensed under the terms of the GNU General Public License
  8. * version 2. This program is licensed "as is" without any warranty of any
  9. * kind, whether express or implied.
  10. */
  11. #ifndef FS_PD_H
  12. #define FS_PD_H
  13. static inline int uart_baudrate(void)
  14. {
  15. int baud;
  16. bd_t *bd = (bd_t *) __res;
  17. if (bd->bi_baudrate)
  18. baud = bd->bi_baudrate;
  19. else
  20. baud = -1;
  21. return baud;
  22. }
  23. static inline int uart_clock(void)
  24. {
  25. return (((bd_t *) __res)->bi_intfreq);
  26. }
  27. #define cpm2_map(member) (&cpm2_immr->member)
  28. #define cpm2_map_size(member, size) (&cpm2_immr->member)
  29. #define cpm2_unmap(addr) do {} while(0)
  30. #endif