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