ssp.h
上传用户:szlgq88
上传日期:2009-04-28
资源大小:48287k
文件大小:1k
源码类别:

嵌入式Linux

开发平台:

Unix_Linux

  1. /*
  2.  *  ssp.h
  3.  *
  4.  *  Copyright (C) 2003 Russell King, All Rights Reserved.
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License version 2 as
  8.  * published by the Free Software Foundation.
  9.  */
  10. #ifndef SSP_H
  11. #define SSP_H
  12. struct ssp_state {
  13. unsigned int cr0;
  14. unsigned int cr1;
  15. };
  16. int ssp_write_word(u16 data);
  17. int ssp_read_word(void);
  18. void ssp_flush(void);
  19. void ssp_enable(void);
  20. void ssp_disable(void);
  21. void ssp_save_state(struct ssp_state *ssp);
  22. void ssp_restore_state(struct ssp_state *ssp);
  23. int ssp_init(void);
  24. void ssp_exit(void);
  25. #endif