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