1 /* SPDX-License-Identifier: GPL-2.0 */
3 * the read/write interfaces for Virtual Support Module(VSM)
5 * Copyright (C) 2009 Lemote, Inc.
6 * Author: Wu Zhangjin <wuzhangjin@gmail.com>
12 #include <linux/types.h>
14 typedef void (*cs5536_pci_vsm_write
)(int reg
, u32 value
);
15 typedef u32 (*cs5536_pci_vsm_read
)(int reg
);
17 #define DECLARE_CS5536_MODULE(name) \
18 extern void pci_##name##_write_reg(int reg, u32 value); \
19 extern u32 pci_##name##_read_reg(int reg);
22 DECLARE_CS5536_MODULE(ide
)
24 DECLARE_CS5536_MODULE(acc
)
26 DECLARE_CS5536_MODULE(ohci
)
28 DECLARE_CS5536_MODULE(isa
)
30 DECLARE_CS5536_MODULE(ehci
)
32 #endif /* _CS5536_VSM_H */