ar71xx: sync kernel configs
[openwrt-10.03/.git] / target / linux / ar71xx / files / drivers / net / phy / rtl8366_smi.h
1 /*
2  * Realtek RTL8366 SMI interface driver defines
3  *
4  * Copyright (C) 2009-2010 Gabor Juhos <juhosg@openwrt.org>
5  *
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.
9  */
10
11 #ifndef _RTL8366_SMI_H
12 #define _RTL8366_SMI_H
13
14 struct rtl8366_smi {
15         struct device           *parent;
16         unsigned int            gpio_sda;
17         unsigned int            gpio_sck;
18         spinlock_t              lock;
19 };
20
21 int rtl8366_smi_init(struct rtl8366_smi *smi);
22 void rtl8366_smi_cleanup(struct rtl8366_smi *smi);
23 int rtl8366_smi_write_reg(struct rtl8366_smi *smi, u32 addr, u32 data);
24 int rtl8366_smi_read_reg(struct rtl8366_smi *smi, u32 addr, u32 *data);
25
26 #endif /*  _RTL8366_SMI_H */