rdc321x.h 552 B

1234567891011121314151617181920212223242526
  1. #ifndef __RDC321X_MFD_H
  2. #define __RDC321X_MFD_H
  3. #include <linux/types.h>
  4. #include <linux/pci.h>
  5. /* Offsets to be accessed in the southbridge PCI
  6. * device configuration register */
  7. #define RDC321X_WDT_CTRL 0x44
  8. #define RDC321X_GPIO_CTRL_REG1 0x48
  9. #define RDC321X_GPIO_DATA_REG1 0x4c
  10. #define RDC321X_GPIO_CTRL_REG2 0x84
  11. #define RDC321X_GPIO_DATA_REG2 0x88
  12. #define RDC321X_NUM_GPIO 59
  13. struct rdc321x_gpio_pdata {
  14. struct pci_dev *sb_pdev;
  15. unsigned max_gpios;
  16. };
  17. struct rdc321x_wdt_pdata {
  18. struct pci_dev *sb_pdev;
  19. };
  20. #endif /* __RDC321X_MFD_H */