ReactOS 0.4.15-dev-7934-g1dc8d80
media.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _DC_MEDIA
 
struct  _DC_MII_MEDIA
 

Macros

#define MEDIA_10T   0
 
#define MEDIA_BNC   1
 
#define MEDIA_AUI   2
 
#define MEDIA_100TX_HD   3
 
#define MEDIA_10T_HD   MEDIA_100TX_HD /* 21041 only */
 
#define MEDIA_10T_FD   4
 
#define MEDIA_100TX_FD   5
 
#define MEDIA_100T4   6
 
#define MEDIA_100FX_HD   7
 
#define MEDIA_100FX_FD   8
 
#define MEDIA_HMR   9
 
#define MEDIA_LIST_MAX   10
 
#define MEDIA_AUTO   MEDIA_LIST_MAX
 
#define MEDIA_MII   MEDIA_LIST_MAX
 
#define MEDIA_MAX   (MEDIA_LIST_MAX + 1)
 
#define MEDIA_MII_OVERRIDE_MASK
 
#define MEDIA_FD_MASK
 
#define MEDIA_AUI_BNC_MASK
 
#define MEDIA_10T_MASK
 
#define MEDIA_100_MASK
 
#define MEDIA_FX_MASK
 
#define MEDIA_MII_OVERRIDE(MediaNumber)    (((1 << (MediaNumber)) & MEDIA_MII_OVERRIDE_MASK) != 0)
 
#define MEDIA_IS_FD(MediaNumber)    (((1 << (MediaNumber)) & MEDIA_FD_MASK) != 0)
 
#define MEDIA_IS_AUI_BNC(MediaNumber)    (((1 << (MediaNumber)) & MEDIA_AUI_BNC_MASK) != 0)
 
#define MEDIA_IS_10T(MediaNumber)    (((1 << (MediaNumber)) & MEDIA_10T_MASK) != 0)
 
#define MEDIA_IS_100(MediaNumber)    (((1 << (MediaNumber)) & MEDIA_100_MASK) != 0)
 
#define MEDIA_IS_FX(MediaNumber)    (((1 << (MediaNumber)) & MEDIA_FX_MASK) != 0)
 
#define MEDIA_IS_FIXED(Adapter)    (((Adapter)->Flags & DC_AUTOSENSE) == 0)
 

Typedefs

typedef struct _DC_MEDIA DC_MEDIA
 
typedef struct _DC_MEDIAPDC_MEDIA
 
typedef struct _DC_MII_MEDIA DC_MII_MEDIA
 
typedef struct _DC_MII_MEDIAPDC_MII_MEDIA
 

Macro Definition Documentation

◆ MEDIA_100_MASK

#define MEDIA_100_MASK
Value:
((1 << MEDIA_100TX_HD) | \
(1 << MEDIA_100TX_FD) | \
(1 << MEDIA_100T4) | \
(1 << MEDIA_100FX_HD) | \
#define MEDIA_100TX_FD
Definition: media.h:52
#define MEDIA_100FX_FD
Definition: media.h:55
#define MEDIA_100FX_HD
Definition: media.h:54
#define MEDIA_100T4
Definition: media.h:53
#define MEDIA_100TX_HD
Definition: media.h:49

Definition at line 90 of file media.h.

◆ MEDIA_100FX_FD

#define MEDIA_100FX_FD   8

Definition at line 55 of file media.h.

◆ MEDIA_100FX_HD

#define MEDIA_100FX_HD   7

Definition at line 54 of file media.h.

◆ MEDIA_100T4

#define MEDIA_100T4   6

Definition at line 53 of file media.h.

◆ MEDIA_100TX_FD

#define MEDIA_100TX_FD   5

Definition at line 52 of file media.h.

◆ MEDIA_100TX_HD

#define MEDIA_100TX_HD   3

Definition at line 49 of file media.h.

◆ MEDIA_10T

#define MEDIA_10T   0

Definition at line 46 of file media.h.

◆ MEDIA_10T_FD

#define MEDIA_10T_FD   4

Definition at line 51 of file media.h.

◆ MEDIA_10T_HD

#define MEDIA_10T_HD   MEDIA_100TX_HD /* 21041 only */

Definition at line 50 of file media.h.

◆ MEDIA_10T_MASK

#define MEDIA_10T_MASK
Value:
((1 << MEDIA_10T) | \
(1 << MEDIA_10T_FD))
#define MEDIA_10T_FD
Definition: media.h:51
#define MEDIA_10T
Definition: media.h:46

Definition at line 86 of file media.h.

◆ MEDIA_AUI

#define MEDIA_AUI   2

Definition at line 48 of file media.h.

◆ MEDIA_AUI_BNC_MASK

#define MEDIA_AUI_BNC_MASK
Value:
((1 << MEDIA_AUI) | \
(1 << MEDIA_BNC))
#define MEDIA_AUI
Definition: media.h:48
#define MEDIA_BNC
Definition: media.h:47

Definition at line 82 of file media.h.

◆ MEDIA_AUTO

#define MEDIA_AUTO   MEDIA_LIST_MAX

Definition at line 62 of file media.h.

◆ MEDIA_BNC

#define MEDIA_BNC   1

Definition at line 47 of file media.h.

◆ MEDIA_FD_MASK

#define MEDIA_FD_MASK
Value:
((1 << MEDIA_10T_FD) | \
(1 << MEDIA_100TX_FD) | \

Definition at line 77 of file media.h.

◆ MEDIA_FX_MASK

#define MEDIA_FX_MASK
Value:
((1 << MEDIA_100FX_HD) | \

Definition at line 97 of file media.h.

◆ MEDIA_HMR

#define MEDIA_HMR   9

Definition at line 56 of file media.h.

◆ MEDIA_IS_100

#define MEDIA_IS_100 (   MediaNumber)     (((1 << (MediaNumber)) & MEDIA_100_MASK) != 0)

Definition at line 118 of file media.h.

◆ MEDIA_IS_10T

#define MEDIA_IS_10T (   MediaNumber)     (((1 << (MediaNumber)) & MEDIA_10T_MASK) != 0)

Definition at line 114 of file media.h.

◆ MEDIA_IS_AUI_BNC

#define MEDIA_IS_AUI_BNC (   MediaNumber)     (((1 << (MediaNumber)) & MEDIA_AUI_BNC_MASK) != 0)

Definition at line 110 of file media.h.

◆ MEDIA_IS_FD

#define MEDIA_IS_FD (   MediaNumber)     (((1 << (MediaNumber)) & MEDIA_FD_MASK) != 0)

Definition at line 106 of file media.h.

◆ MEDIA_IS_FIXED

#define MEDIA_IS_FIXED (   Adapter)     (((Adapter)->Flags & DC_AUTOSENSE) == 0)

Definition at line 126 of file media.h.

◆ MEDIA_IS_FX

#define MEDIA_IS_FX (   MediaNumber)     (((1 << (MediaNumber)) & MEDIA_FX_MASK) != 0)

Definition at line 122 of file media.h.

◆ MEDIA_LIST_MAX

#define MEDIA_LIST_MAX   10

Definition at line 57 of file media.h.

◆ MEDIA_MAX

#define MEDIA_MAX   (MEDIA_LIST_MAX + 1)

Definition at line 68 of file media.h.

◆ MEDIA_MII

#define MEDIA_MII   MEDIA_LIST_MAX

Definition at line 67 of file media.h.

◆ MEDIA_MII_OVERRIDE

#define MEDIA_MII_OVERRIDE (   MediaNumber)     (((1 << (MediaNumber)) & MEDIA_MII_OVERRIDE_MASK) != 0)

Definition at line 102 of file media.h.

◆ MEDIA_MII_OVERRIDE_MASK

#define MEDIA_MII_OVERRIDE_MASK
Value:
((1 << MEDIA_AUI) | \
(1 << MEDIA_BNC) | \
(1 << MEDIA_100FX_HD) | \
(1 << MEDIA_100FX_FD) | \
(1 << MEDIA_HMR))
#define MEDIA_HMR
Definition: media.h:56

Definition at line 70 of file media.h.

Typedef Documentation

◆ DC_MEDIA

◆ DC_MII_MEDIA

◆ PDC_MEDIA

◆ PDC_MII_MEDIA