Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * the read/write interfaces for Virtual Support Module(VSM)
0004  *
0005  * Copyright (C) 2009 Lemote, Inc.
0006  * Author: Wu Zhangjin <wuzhangjin@gmail.com>
0007  */
0008 
0009 #ifndef _CS5536_VSM_H
0010 #define _CS5536_VSM_H
0011 
0012 #include <linux/types.h>
0013 
0014 typedef void (*cs5536_pci_vsm_write)(int reg, u32 value);
0015 typedef u32 (*cs5536_pci_vsm_read)(int reg);
0016 
0017 #define DECLARE_CS5536_MODULE(name) \
0018 extern void pci_##name##_write_reg(int reg, u32 value); \
0019 extern u32 pci_##name##_read_reg(int reg);
0020 
0021 /* ide module */
0022 DECLARE_CS5536_MODULE(ide)
0023 /* acc module */
0024 DECLARE_CS5536_MODULE(acc)
0025 /* ohci module */
0026 DECLARE_CS5536_MODULE(ohci)
0027 /* isa module */
0028 DECLARE_CS5536_MODULE(isa)
0029 /* ehci module */
0030 DECLARE_CS5536_MODULE(ehci)
0031 
0032 #endif              /* _CS5536_VSM_H */