Mistake on this page?
Report an issue in GitHub or email us
rza1_eth_ext.h
1 /* Copyright (c) 2020 Renesas Electronics Corporation.
2  * SPDX-License-Identifier: Apache-2.0
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #ifndef ETHERNETEXT_H
17 #define ETHERNETEXT_H
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /* PHY link mode */
24 #define NEGO_FAIL (0)
25 #define HALF_10M (1)
26 #define FULL_10M (2)
27 #define HALF_TX (3)
28 #define FULL_TX (4)
29 
30 typedef void (ethernetext_cb_fnc)(void);
31 
32 typedef struct tag_rza1_ethernet_cfg {
33  int int_priority;
34  ethernetext_cb_fnc *recv_cb;
35  char *ether_mac;
37 
38 extern int ethernetext_init(rza1_ethernet_cfg_t *p_ethcfg);
39 extern void ethernetext_start_stop(int32_t mode);
40 extern int ethernetext_chk_link_mode(void);
41 extern void ethernetext_set_link_mode(int32_t link);
42 extern void ethernetext_add_multicast_group(const uint8_t *addr);
43 extern void ethernetext_remove_multicast_group(const uint8_t *addr);
44 extern void ethernetext_set_all_multicast(int all);
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif
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.