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

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.