/* * BCM53xx RoboSwitch utility functions * * Copyright (C) 2002 Broadcom Corporation * $Id: nvports.h,v 1.1.1.1 2008/07/21 09:14:16 james26_jang Exp $ */ #ifndef _nvports_h_ #define _nvports_h_ #define uint32 unsigned long #define uint16 unsigned short #define uint unsigned int #define uint8 unsigned char #define uint64 unsigned long long enum FORCE_PORT { FORCE_OFF, FORCE_10H, FORCE_10F, FORCE_100H, FORCE_100F, FORCE_DOWN, POWER_OFF }; typedef struct _PORT_ATTRIBS { uint autoneg; uint force; uint native; } PORT_ATTRIBS; extern uint nvExistsPortAttrib(char *attrib, uint portno); extern int nvExistsAnyForcePortAttrib(uint portno); extern void nvSetPortAttrib(char *attrib, uint portno); extern void nvUnsetPortAttrib(char *attrib, uint portno); extern void nvUnsetAllForcePortAttrib(uint portno); extern PORT_ATTRIBS nvGetSwitchPortAttribs(uint portno); #endif /* _nvports_h_ */