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