source: rtems/c/src/lib/libbsp/powerpc/beatnik/network/support/early_enet_link_status.h @ 9b4422a2

4.115
Last change on this file since 9b4422a2 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on May 3, 2012 at 3:09:24 PM

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 802 bytes
Line 
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
14typedef 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
Note: See TracBrowser for help on using the repository browser.