cs5536_vsm.h 723 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * the read/write interfaces for Virtual Support Module(VSM)
  3. *
  4. * Copyright (C) 2009 Lemote, Inc.
  5. * Author: Wu Zhangjin <wuzhangjin@gmail.com>
  6. */
  7. #ifndef _CS5536_VSM_H
  8. #define _CS5536_VSM_H
  9. #include <linux/types.h>
  10. typedef void (*cs5536_pci_vsm_write)(int reg, u32 value);
  11. typedef u32 (*cs5536_pci_vsm_read)(int reg);
  12. #define DECLARE_CS5536_MODULE(name) \
  13. extern void pci_##name##_write_reg(int reg, u32 value); \
  14. extern u32 pci_##name##_read_reg(int reg);
  15. /* ide module */
  16. DECLARE_CS5536_MODULE(ide)
  17. /* acc module */
  18. DECLARE_CS5536_MODULE(acc)
  19. /* ohci module */
  20. DECLARE_CS5536_MODULE(ohci)
  21. /* isa module */
  22. DECLARE_CS5536_MODULE(isa)
  23. /* ehci module */
  24. DECLARE_CS5536_MODULE(ehci)
  25. #endif /* _CS5536_VSM_H */