| * 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. |
| CPSW_CTRL_VERSION_2 /* am33xx like devices */ |
| struct cpsw_platform_data { |
| 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 */ |
| u32 bd_ram_ofs; /* Buffer Descriptor RAM offset */ |
| struct cpsw_slave_data *slave_data; |
| void (*control)(int enabled); |
| int cpsw_register(struct cpsw_platform_data *data); |