Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:51

0001 #ifndef BSP_EARLY_ENET_LINK_STATUS_H
0002 #define BSP_EARLY_ENET_LINK_STATUS_H
0003 
0004 /* Determine link status of ethernet device before network is initialized */
0005 
0006 /* T. Straumann, 2005; see ../../LICENSE */
0007 
0008 #include <rtems.h>
0009 
0010 #ifdef __cplusplus
0011   extern "C" {
0012 #endif
0013 
0014 typedef struct {
0015     int             (*init)(int idx);   /* perform enough initialization to access (default) phy */
0016     int             (*read_phy)(int idx, unsigned reg);
0017     int             (*write_phy)(int idx, unsigned reg, unsigned val);
0018     const char      *name;              /* driver name */
0019     unsigned char   num_slots;          /* max number of supported devices */
0020     unsigned char   initialized;        /* must be initialized to 0;       */
0021 } rtems_bsdnet_early_link_check_ops;
0022 
0023 int
0024 BSP_early_check_link_status(int unit, rtems_bsdnet_early_link_check_ops *ops);
0025 
0026 #ifdef __cplusplus
0027   }
0028 #endif
0029 
0030 #endif