pc873xx.h 588 B

123456789101112131415161718192021222324252627282930313233343536
  1. #ifndef _PC873xx_H_
  2. #define _PC873xx_H_
  3. /*
  4. * Control Register Values
  5. */
  6. #define REG_FER 0x00
  7. #define REG_FAR 0x01
  8. #define REG_PTR 0x02
  9. #define REG_FCR 0x03
  10. #define REG_PCR 0x04
  11. #define REG_KRR 0x05
  12. #define REG_PMC 0x06
  13. #define REG_TUP 0x07
  14. #define REG_SID 0x08
  15. #define REG_ASC 0x09
  16. #define REG_IRC 0x0e
  17. /*
  18. * Model numbers
  19. */
  20. #define PC87303 0
  21. #define PC87306 1
  22. #define PC87312 2
  23. #define PC87332 3
  24. #define PC87334 4
  25. int pc873xx_probe(void);
  26. unsigned int pc873xx_get_base(void);
  27. char *pc873xx_get_model(void);
  28. void pc873xx_enable_epp19(void);
  29. void pc873xx_enable_ide(void);
  30. #endif