1 /* =================================================================================== 2 * Copyright (c) <2009> Synopsys, Inc. 3 * SPDX-License-Identifier: Apache-2.0 4 * 5 * Permission is hereby granted, free of charge, to any person obtaining a copy of 6 * this software annotated with this license and associated documentation files 7 * (the "Software"), to deal in the Software without restriction, including without 8 * limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, 9 * and/or sell copies of the Software, and to permit persons to whom the Software is 10 * furnished to do so, subject to the following conditions: 11 * 12 * The above copyright notice and this permission notice shall be included in all 13 * copies or substantial portions of the Software. 14 * 15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, 16 * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A 17 * PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 18 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE 20 * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 * 22 * =================================================================================== */ 23 24 /** \file 25 * Header file for the nework dependent functionality. 26 * The function prototype listed here are linux dependent. 27 * 28 * \internal 29 * ---------------------------REVISION HISTORY------------------- 30 * Synopsys 01/Aug/2007 Created 31 */ 32 #include "synopGMAC_Dev.h" 33 34 35 #ifndef SYNOP_GMAC_NETWORK_INTERFACE_H 36 #define SYNOP_GMAC_NETWORK_INTERFACE_H 1 37 38 //#define EMULATION 39 40 //#define TEST_RGMII 41 #define TEST_RMII 42 43 //#define CACHE_ON 44 45 46 s32 synopGMAC_open(int intf); 47 s32 synopGMAC_open_selftest(int intf); 48 s32 synopGMAC_close(int intf); 49 s32 synopGMAC_xmit_frames(struct sk_buff *, int intf, u32 offload_needed, u32 ts); 50 void synopGMAC_set_multicast_list(int intf); 51 s32 synopGMAC_set_mac_address(int intf, u8*); 52 s32 synopGMAC_change_mtu(int intf,s32); 53 void synop_handle_transmit_over(int intf); 54 //void synop_handle_received_data(int intf); 55 s32 synop_handle_received_data(int intf, u8 **buf); // Chris, to get RX buffer pointer 56 void synopGMAC_set_mode(int intf, int mode); 57 58 void synopGMAC_powerup_mac(synopGMACdevice *gmacdev); 59 void synopGMAC_powerdown_mac(synopGMACdevice *gmacdev); 60 s32 synopGMAC_setup_tx_desc_queue(synopGMACdevice * gmacdev,u32 no_of_desc, u32 desc_mode); 61 s32 synopGMAC_setup_rx_desc_queue(synopGMACdevice * gmacdev,u32 no_of_desc, u32 desc_mode); 62 63 64 #endif /* End of file */ 65