1*2874c5fdSThomas Gleixner /* SPDX-License-Identifier: GPL-2.0-or-later */ 2bd358132SIra W. Snyder /* 3bd358132SIra W. Snyder * Common Definitions for Janz MODULbus devices 4bd358132SIra W. Snyder * 5bd358132SIra W. Snyder * Copyright (c) 2010 Ira W. Snyder <iws@ovro.caltech.edu> 6bd358132SIra W. Snyder */ 7bd358132SIra W. Snyder 8bd358132SIra W. Snyder #ifndef JANZ_H 9bd358132SIra W. Snyder #define JANZ_H 10bd358132SIra W. Snyder 11bd358132SIra W. Snyder struct janz_platform_data { 12bd358132SIra W. Snyder /* MODULbus Module Number */ 13bd358132SIra W. Snyder unsigned int modno; 14bd358132SIra W. Snyder }; 15bd358132SIra W. Snyder 16bd358132SIra W. Snyder /* PLX bridge chip onboard registers */ 17bd358132SIra W. Snyder struct janz_cmodio_onboard_regs { 18bd358132SIra W. Snyder u8 unused1; 19bd358132SIra W. Snyder 20bd358132SIra W. Snyder /* 21bd358132SIra W. Snyder * Read access: interrupt status 22bd358132SIra W. Snyder * Write access: interrupt disable 23bd358132SIra W. Snyder */ 24bd358132SIra W. Snyder u8 int_disable; 25bd358132SIra W. Snyder u8 unused2; 26bd358132SIra W. Snyder 27bd358132SIra W. Snyder /* 28bd358132SIra W. Snyder * Read access: MODULbus number (hex switch) 29bd358132SIra W. Snyder * Write access: interrupt enable 30bd358132SIra W. Snyder */ 31bd358132SIra W. Snyder u8 int_enable; 32bd358132SIra W. Snyder u8 unused3; 33bd358132SIra W. Snyder 34bd358132SIra W. Snyder /* write-only */ 35bd358132SIra W. Snyder u8 reset_assert; 36bd358132SIra W. Snyder u8 unused4; 37bd358132SIra W. Snyder 38bd358132SIra W. Snyder /* write-only */ 39bd358132SIra W. Snyder u8 reset_deassert; 40bd358132SIra W. Snyder u8 unused5; 41bd358132SIra W. Snyder 42bd358132SIra W. Snyder /* read-write access to serial EEPROM */ 43bd358132SIra W. Snyder u8 eep; 44bd358132SIra W. Snyder u8 unused6; 45bd358132SIra W. Snyder 46bd358132SIra W. Snyder /* write-only access to EEPROM chip select */ 47bd358132SIra W. Snyder u8 enid; 48bd358132SIra W. Snyder }; 49bd358132SIra W. Snyder 50bd358132SIra W. Snyder #endif /* JANZ_H */ 51