File: kernelInterface.h

package info (click to toggle)
toshset 1.73-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 484 kB
  • ctags: 572
  • sloc: sh: 3,589; cpp: 2,938; ansic: 1,057; makefile: 190
file content (34 lines) | stat: -rw-r--r-- 484 bytes parent folder | download | duplicates (4)
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
28
29
30
31
32
33
34


#ifndef __kernelInterface_h__
#define __kernelInterface_h__

#ifdef __cplusplus
extern "C" {
#endif

#ifdef USE_KERNEL_INTERFACE
#  include<linux/toshiba.h>
#else
#  include "smm.h"
#endif

typedef struct {
  int major;
  int minor;
  int id;
} ToshProcInfo;

int procAccess(ToshProcInfo* proc);
int smmAccess(SMMRegisters *regs);

enum { ACCESS_DIRECT, ACCESS_KERNEL };
extern int accessMode;
void detAccessMode();


#ifdef __cplusplus
}
#endif

#endif /* __kernelInterface_h__ */