Mistake on this page?
Report an issue in GitHub or email us
emac_eapol.h
1 /*
2  * Copyright 2019 Cypress Semiconductor Corporation
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 #ifndef INCLUDED_EMAC_EAPOL_H_
18 #define INCLUDED_EMAC_EAPOL_H_
19 
20 #include "whd.h"
21 
22 #ifdef __cplusplus
23 extern "C"
24 {
25 #endif
26 
27 /******************************************************
28  * Macros
29  ******************************************************/
30 
31 /******************************************************
32  * Constants
33  ******************************************************/
34 #define EAPOL_PACKET_TYPE (0x888E)
35 
36 /******************************************************
37  * Enumerations
38  ******************************************************/
39 
40 /******************************************************
41  * Type Definitions
42  ******************************************************/
43 
44 typedef whd_buffer_t whd_eapol_packet_t;
45 
46 typedef void (*eapol_packet_handler_t)(whd_interface_t interface, whd_buffer_t buffer);
47 
48 /******************************************************
49  * Structures
50  ******************************************************/
51 
52 /******************************************************
53  * Global Variables
54  ******************************************************/
55 
56 /******************************************************
57  * Function Declarations
58  ******************************************************/
59 whd_result_t emac_register_eapol_packet_handler(eapol_packet_handler_t eapol_packet_handler);
60 void emac_unregister_eapol_packet_handler(void);
61 
62 #ifdef __cplusplus
63 } /* extern "C" */
64 #endif
65 #endif /* ifndef INCLUDED_EMAC_EAPOL_H_ */
Provides abstract pointer type to act as instance for: driver, interface, buffer funcs, network funcs, resource funcs and bus funcs.
uint32_t whd_result_t
WHD result is specified as uint32_t value.
Definition: whd_types.h:776
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.