ae51c425eff2fd80adfc0503b4c3059756b432d6
2 * Realtek RTL8366 SMI interface driver defines
4 * Copyright (C) 2009-2010 Gabor Juhos <juhosg@openwrt.org>
6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms of the GNU General Public License version 2 as published
8 * by the Free Software Foundation.
11 #ifndef _RTL8366_SMI_H
12 #define _RTL8366_SMI_H
14 struct rtl8366_smi_ops
;
17 struct device
*parent
;
18 unsigned int gpio_sda
;
19 unsigned int gpio_sck
;
22 struct rtl8366_smi_ops
*ops
;
25 struct rtl8366_smi_ops
{
26 int (*detect
)(struct rtl8366_smi
*smi
);
29 int rtl8366_smi_init(struct rtl8366_smi
*smi
);
30 void rtl8366_smi_cleanup(struct rtl8366_smi
*smi
);
31 int rtl8366_smi_write_reg(struct rtl8366_smi
*smi
, u32 addr
, u32 data
);
32 int rtl8366_smi_read_reg(struct rtl8366_smi
*smi
, u32 addr
, u32
*data
);
34 #endif /* _RTL8366_SMI_H */
This page took 0.037129 seconds and 3 git commands to generate.