aboutsummaryrefslogtreecommitdiffstats
path: root/include/nvports.h
blob: 74e62265a8fbe0553990cc3b7d4a195350a169c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*
 * 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_ */



bues.ch cgit interface