# csl_sgmii.h File Reference

`#include <ti/csl/cslr_sgmii.h>`
`#include <ti/csl/soc.h>`

## Data Structures

struct | SGMII_Config
struct | SGMII_Status

## Defines

#define | SGMII_MODE_OF_OPERATION_WITH_AN 0x1
#define | SGMII_MODE_OF_OPERATION_WITHOUT_AN 0x2
#define | SGMII_STATUS_FIB_SIG_DETECT 0x00000020
#define | SGMII_STATUS_LOCK 0x00000010
#define | SGMII_STATUS_MR_PAGE_NEXT 0x00000008
#define | SGMII_STATUS_MR_AN_COMPLTE 0x00000004
#define | SGMII_STATUS_AN_ERROR 0x00000002
#define | SGMII_STATUS_LINK 0x00000001
#define | SGMII_ERROR_INVALID 1
#define | SGMII_ERROR_DEVICE 2

## Functions

Uint32 | SGMII_reset ()
Uint32 | SGMII_config (SGMII_Config *config)
Uint32 | SGMII_getStatus (SGMII_Status *pStatus)
Uint32 | SGMII_getLinkPartnerStatus ()
Uint32 | SGMII_getAnErrorStatus ()
Uint32 | SGMII_getStatusReg ()

## Detailed Description

============================================================================

Header file for functional layer CSL of SGMII

Copyright 2012, Texas Instruments Incorporated