Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
arch
mips
include
asm
mach-loongson
cs5536
cs5536_vsm.h
Go to the documentation of this file.
1
/*
2
* the read/write interfaces for Virtual Support Module(VSM)
3
*
4
* Copyright (C) 2009 Lemote, Inc.
5
* Author: Wu Zhangjin <
[email protected]
>
6
*/
7
8
#ifndef _CS5536_VSM_H
9
#define _CS5536_VSM_H
10
11
#include <linux/types.h>
12
13
typedef
void
(*
cs5536_pci_vsm_write
)(
int
reg
,
u32
value
);
14
typedef
u32
(*
cs5536_pci_vsm_read
)(
int
reg
);
15
16
#define DECLARE_CS5536_MODULE(name) \
17
extern void pci_##name##_write_reg(int reg, u32 value); \
18
extern u32 pci_##name##_read_reg(int reg);
19
20
/* ide module */
21
DECLARE_CS5536_MODULE
(ide)
22
/* acc module */
23
DECLARE_CS5536_MODULE
(acc)
24
/* ohci module */
25
DECLARE_CS5536_MODULE
(
ohci
)
26
/* isa module */
27
DECLARE_CS5536_MODULE
(
isa
)
28
/* ehci module */
29
DECLARE_CS5536_MODULE
(ehci)
30
31
#endif
/* _CS5536_VSM_H */
Generated on Thu Jan 10 2013 13:09:46 for Linux Kernel by
1.8.2