RTEMS: bsps/powerpc/beatnik/include/bsp/early_enet_link_status.h Source File

| RTEMS 5.4-rc2

Loading...
Searching...
No Matches
early_enet_link_status.h
1#ifndef BSP_EARLY_ENET_LINK_STATUS_H
2#define BSP_EARLY_ENET_LINK_STATUS_H
3
4/* Determine link status of ethernet device before network is initialized */
5
6/* T. Straumann, 2005; see ../../LICENSE */
7
8#include <rtems.h>
9
10#ifdef __cplusplus
11 extern "C" {
12#endif
13
14 typedef struct {
15 int (*init)(int idx); /* perform enough initialization to access (default) phy */
16 int (*read_phy)(int idx, unsigned reg);
17 int (*write_phy)(int idx, unsigned reg, unsigned val);
18 const char *name; /* driver name */
19 unsigned char num_slots; /* max number of supported devices */
20 unsigned char initialized; /* must be initialized to 0; */
21} rtems_bsdnet_early_link_check_ops;
22
23int
24BSP_early_check_link_status(int unit, rtems_bsdnet_early_link_check_ops *ops);
25
26#ifdef __cplusplus
27 }
28#endif
29
30#endif
rtems.h
rtems_bsdnet_early_link_check_ops
Definition: early_enet_link_status.h:14