com9026.h 665 B

123456789101112131415161718
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef __COM9026_H
  3. #define __COM9026_H
  4. /* COM 9026 controller chip --> ARCnet register addresses */
  5. #define COM9026_REG_W_INTMASK 0 /* writable */
  6. #define COM9026_REG_R_STATUS 0 /* readable */
  7. #define COM9026_REG_W_COMMAND 1 /* writable, returns random vals on read (?) */
  8. #define COM9026_REG_RW_CONFIG 2 /* Configuration register */
  9. #define COM9026_REG_R_RESET 8 /* software reset (on read) */
  10. #define COM9026_REG_RW_MEMDATA 12 /* Data port for IO-mapped memory */
  11. #define COM9026_REG_W_ADDR_LO 14 /* Control registers for said */
  12. #define COM9026_REG_W_ADDR_HI 15
  13. #define COM9026_REG_R_STATION 1 /* Station ID */
  14. #endif