1/* 2 * BCM53xx RoboSwitch utility functions 3 * 4 * Copyright (C) 2002 Broadcom Corporation 5 * $Id: nvports.h,v 1.1.1.1 2008/10/15 03:25:54 james26_jang Exp $ 6 */ 7 8#ifndef _nvports_h_ 9#define _nvports_h_ 10 11#define uint32 unsigned long 12#define uint16 unsigned short 13#define uint unsigned int 14#define uint8 unsigned char 15#define uint64 unsigned long long 16 17enum FORCE_PORT { 18 FORCE_OFF, 19 FORCE_10H, 20 FORCE_10F, 21 FORCE_100H, 22 FORCE_100F, 23 FORCE_DOWN, 24 POWER_OFF 25}; 26 27typedef struct _PORT_ATTRIBS 28{ 29 uint autoneg; 30 uint force; 31 uint native; 32} PORT_ATTRIBS; 33 34extern uint 35nvExistsPortAttrib(char *attrib, uint portno); 36 37extern int 38nvExistsAnyForcePortAttrib(uint portno); 39 40extern void 41nvSetPortAttrib(char *attrib, uint portno); 42 43extern void 44nvUnsetPortAttrib(char *attrib, uint portno); 45 46extern void 47nvUnsetAllForcePortAttrib(uint portno); 48 49extern PORT_ATTRIBS 50nvGetSwitchPortAttribs(uint portno); 51 52#endif /* _nvports_h_ */ 53 54 55 56