Blame view
include/cpsw.h
1.66 KB
2b62997ce cpsw: add driver ... |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
/* * CPSW Ethernet Switch Driver * * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/ * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation version 2. * * This program is distributed "as is" WITHOUT ANY WARRANTY of any * kind, whether express or implied; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ #ifndef _CPSW_H_ #define _CPSW_H_ struct cpsw_slave_data { u32 slave_reg_ofs; u32 sliver_reg_ofs; |
9c653aad1 drivers: net: cps... |
22 |
int phy_addr; |
2b62997ce cpsw: add driver ... |
23 |
int phy_if; |
cb3862277 drivers: net: cps... |
24 |
int phy_of_handle; |
2b62997ce cpsw: add driver ... |
25 26 27 28 29 30 31 32 33 34 |
}; enum { CPSW_CTRL_VERSION_1 = 0, CPSW_CTRL_VERSION_2 /* am33xx like devices */ }; struct cpsw_platform_data { u32 mdio_base; u32 cpsw_base; |
4cc77895e drivers: net: cps... |
35 36 |
u32 mac_id; u32 gmii_sel; |
2b62997ce cpsw: add driver ... |
37 38 39 40 41 42 43 44 |
int mdio_div; int channels; /* number of cpdma channels (symmetric) */ u32 cpdma_reg_ofs; /* cpdma register offset */ int slaves; /* number of slave cpgmac ports */ u32 ale_reg_ofs; /* address lookup engine reg offset */ int ale_entries; /* ale table size */ u32 host_port_reg_ofs; /* cpdma host port registers */ u32 hw_stats_reg_ofs; /* cpsw hw stats counters */ |
2bf36ac63 drivers: net: cps... |
45 |
u32 bd_ram_ofs; /* Buffer Descriptor RAM offset */ |
2b62997ce cpsw: add driver ... |
46 47 48 49 |
u32 mac_control; struct cpsw_slave_data *slave_data; void (*control)(int enabled); u32 host_port_num; |
7a0227534 drivers: net: cps... |
50 |
u32 active_slave; |
ab9715303 driver: net: cpsw... |
51 |
bool rmii_clock_external; |
2b62997ce cpsw: add driver ... |
52 53 54 55 |
u8 version; }; int cpsw_register(struct cpsw_platform_data *data); |
e4310566d drivers: net: cps... |
56 |
int ti_cm_get_macid(struct udevice *dev, int slave, u8 *mac_addr); |
e2597be5b drivers: net: cps... |
57 |
int cpsw_get_slave_phy_addr(struct udevice *dev, int slave); |
2b62997ce cpsw: add driver ... |
58 59 |
#endif /* _CPSW_H_ */ |