File: methods.h

package info (click to toggle)
xmbmon 2.05-8
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 928 kB
  • ctags: 910
  • sloc: ansic: 6,089; sh: 2,151; perl: 87; makefile: 79
file content (27 lines) | stat: -rw-r--r-- 560 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* Winbond IO defaults address */  
#if !defined(__methods_h__)
#define	__methods_h__

#define IOP_ADDR	0x290
#define WBIO1	(IOP_ADDR + 0x05)
#define WBIO2	(IOP_ADDR + 0x06)

/* Winbond registor address for SMBus method */
#define LM_ADDR			0x5A
#define WBtemp1_ADDR	0x92
#define WBtemp2_ADDR	0x90

struct lm_methods {
	int	 (*Open)();
	void (*Close)();
	int	 (*Read)(int);
	void (*Write)(int, int);
	int	 (*ReadW)(int);
	void (*WriteW)(int, int);
	int	 (*ReadTemp1)();
	int	 (*ReadTemp2)();
};

typedef struct lm_methods LM_METHODS;

#endif	/*__methods_h__*/