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