cpcihp_zt5550.h 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* SPDX-License-Identifier: GPL-2.0+ */
  2. /*
  3. * cpcihp_zt5550.h
  4. *
  5. * Intel/Ziatech ZT5550 CompactPCI Host Controller driver definitions
  6. *
  7. * Copyright 2002 SOMA Networks, Inc.
  8. * Copyright 2001 Intel San Luis Obispo
  9. * Copyright 2000,2001 MontaVista Software Inc.
  10. *
  11. * Send feedback to <[email protected]>
  12. */
  13. #ifndef _CPCIHP_ZT5550_H
  14. #define _CPCIHP_ZT5550_H
  15. /* Direct registers */
  16. #define CSR_HCINDEX 0x00
  17. #define CSR_HCDATA 0x04
  18. #define CSR_INTSTAT 0x08
  19. #define CSR_INTMASK 0x09
  20. #define CSR_CNT0CMD 0x0C
  21. #define CSR_CNT1CMD 0x0E
  22. #define CSR_CNT0 0x10
  23. #define CSR_CNT1 0x14
  24. /* Masks for interrupt bits in CSR_INTMASK direct register */
  25. #define CNT0_INT_MASK 0x01
  26. #define CNT1_INT_MASK 0x02
  27. #define ENUM_INT_MASK 0x04
  28. #define ALL_DIRECT_INTS_MASK 0x07
  29. /* Indexed registers (through CSR_INDEX, CSR_DATA) */
  30. #define HC_INT_MASK_REG 0x04
  31. #define HC_STATUS_REG 0x08
  32. #define HC_CMD_REG 0x0C
  33. #define ARB_CONFIG_GNT_REG 0x10
  34. #define ARB_CONFIG_CFG_REG 0x12
  35. #define ARB_CONFIG_REG 0x10
  36. #define ISOL_CONFIG_REG 0x18
  37. #define FAULT_STATUS_REG 0x20
  38. #define FAULT_CONFIG_REG 0x24
  39. #define WD_CONFIG_REG 0x2C
  40. #define HC_DIAG_REG 0x30
  41. #define SERIAL_COMM_REG 0x34
  42. #define SERIAL_OUT_REG 0x38
  43. #define SERIAL_IN_REG 0x3C
  44. /* Masks for interrupt bits in HC_INT_MASK_REG indexed register */
  45. #define SERIAL_INT_MASK 0x01
  46. #define FAULT_INT_MASK 0x02
  47. #define HCF_INT_MASK 0x04
  48. #define ALL_INDEXED_INTS_MASK 0x07
  49. /* Digital I/O port storing ENUM# */
  50. #define ENUM_PORT 0xE1
  51. /* Mask to get to the ENUM# bit on the bus */
  52. #define ENUM_MASK 0x40
  53. #endif /* _CPCIHP_ZT5550_H */