OpenNSL API Guide and Reference Manual
Data Structures | Macros | Typedefs | Functions
driver.h File Reference

Go to the source code of this file.

Data Structures

struct  opennsl_config_s
 

Macros

#define OPENNSL_F_FAST_BOOT   0x00000001 /* Fast boot mode */
 

Typedefs

typedef struct opennsl_config_s opennsl_init_t
 

Functions

unsigned int opennsl_driver_boot_flags_get (void)
 To get platform boot flags.
 
int opennsl_driver_exit ()
 Function to free up the resources and exit the driver.
 
int opennsl_driver_init (opennsl_init_t *init)
 Function to initialize the switch.
 
void platform_phy_cleanup ()
 
char * readline (const char *prompt)
 Get a line from a user with editing.
 

Macro Definition Documentation

#define OPENNSL_F_FAST_BOOT   0x00000001 /* Fast boot mode */

Definition at line 27 of file driver.h.

Typedef Documentation

Function Documentation

unsigned int opennsl_driver_boot_flags_get ( void  )

To get platform boot flags.

Returns
unsigned int Boot flags

Referenced by main().

int opennsl_driver_exit ( )

Function to free up the resources and exit the driver.

Returns
OPENNSL_E_XXX OpenNSL API return code

Referenced by main().

int opennsl_driver_init ( opennsl_init_t init)

Function to initialize the switch.

Parameters
init[IN] pointer to structure that contains path to platform customization config file, boot flags.
Returns
OPENNSL_E_XXX OpenNSL API return code

Referenced by main().

void platform_phy_cleanup ( )
char* readline ( const char *  prompt)

Get a line from a user with editing.

Parameters
prompt[IN] prompt string
Returns
char* NULL, if the line is empty empty string, if the line is blank text of the line read, otherwise.