Skip to content

Commit c57e36a

Browse files
committed
Update and create nb headers
1 parent dc501a9 commit c57e36a

20 files changed

+183
-2
lines changed

include/nbapi/voltos/idb.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,21 @@
66
typedef uint32_t __idb_index;
77
typedef uint32_t __idb_sort_index;
88

9+
typedef enum idb_type
10+
{
11+
IDB_TYPE_UNKNOWN = 0,
12+
IDB_TYPE_HARDWARE = 1,
13+
IDB_TYPE_SOFTWARE = 2,
14+
__IDB_TYPE_MAX__,
15+
} __idb_type;
16+
17+
/* Hardware IDB Structure */
18+
struct hw_idb;
19+
20+
/* Software IDB Structure */
21+
struct sw_idb;
22+
23+
/* IDB Parent Structure */
24+
struct idb;
25+
926
#endif /* _NBAPI_VOLTOS_IDB_H_ */
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#ifndef _NBAPI_VOLTOS_IF_APPLETALK_H_
22
#define _NBAPI_VOLTOS_IF_APPLETALK_H_
33

4+
#include <stdint.h>
5+
6+
typedef uint8_t if_appletalk_stack;
7+
typedef uint8_t if_appletalk_slot;
8+
typedef uint16_t if_appletalk_port;
9+
10+
typedef struct if_appletalk_unit if_appletalk_unit;
411

512
#endif /* _NBAPI_VOLTOS_IF_APPLETALK_H_ */

include/nbapi/voltos/if_arcnet.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#ifndef _NBAPI_VOLTOS_IF_ARCNET_H_
22
#define _NBAPI_VOLTOS_IF_ARCNET_H_
33

4+
#include <stdint.h>
5+
6+
typedef uint8_t if_arcnet_stack;
7+
typedef uint8_t if_arcnet_slot;
8+
typedef uint16_t if_arcnet_port;
9+
10+
typedef struct if_arcnet_unit if_arcnet_unit;
411

512
#endif /* _NBAPI_VOLTOS_IF_ARCNET_H_ */

include/nbapi/voltos/if_async.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#ifndef _NBAPI_VOLTOS_IF_ASYNC_H_
22
#define _NBAPI_VOLTOS_IF_ASYNC_H_
33

4+
#include <stdint.h>
5+
6+
typedef uint8_t if_async_stack;
7+
typedef uint8_t if_async_slot;
8+
typedef uint16_t if_async_port;
9+
10+
typedef struct if_async_unit if_async_unit;
411

512
#endif /* _NBAPI_VOLTOS_IF_ASYNC_H_ */

include/nbapi/voltos/if_ethernet.h

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#ifndef _NBAPI_VOLTOS_IF_ETHERNET_H_
2+
#define _NBAPI_VOLTOS_IF_ETHERNET_H_
3+
4+
5+
6+
typedef enum if_duplex
7+
{
8+
IF_DUPLEX_AUTODETECT = 0,
9+
IF_DUPLEX_FULL = 1,
10+
IF_DUPLEX_HALF = 2,
11+
IF_DUPLEX_UNKNOWN = 3,
12+
__IF_DUPLEX_MAX__
13+
} if_duplex_t;
14+
15+
typedef enum if_media_type
16+
{
17+
IF_MEDIA_TYPE_NONE = 0,
18+
IF_MEDIA_TYPE_AUI = 1,
19+
IF_MEDIA_TYPE_10BASET = 2,
20+
IF_MEDIA_TYPE_NOTHING_HERE = 3,
21+
IF_MEDIA_TYPE_RJ45 = 4,
22+
IF_MEDIA_TYPE_MII = 5,
23+
IF_MEDIA_TYPE_AUTOSELECT = 6,
24+
IF_MEDIA_TYPE_EPIF_UTP = 7,
25+
IF_MEDIA_TYPE_EPIF_FX = 8,
26+
IF_MEDIA_TYPE_EPIF_LX = 9,
27+
} if_media_type_t;
28+
29+
#endif /* _NBAPI_VOLTOS_IF_ETHERNET_H_ */

include/nbapi/voltos/if_loopback.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#ifndef _NBAPI_VOLTOS_IF_LOOPBACK_H_
2+
#define _NBAPI_VOLTOS_IF_LOOPBACK_H_
3+
4+
#include <stdint.h>
5+
6+
#define IF_LOOPBACK_UNIT_MIN 0
7+
#define IF_LOOPBACK_UNIT_MAX 2147483647
8+
9+
typedef uint32_t if_loopback_unit;
10+
11+
#endif /* _NBAPI_VOLTOS_IF_LOOPBACK_H_ */

include/nbapi/voltos/if_null.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#ifndef _NBAPI_VOLTOS_IF_NULL_H_
2+
#define _NBAPI_VOLTOS_IF_NULL_H_
3+
4+
#include <stdint.h>
5+
6+
#define IF_NULL_DEFAULT_ID 0
7+
8+
typedef uint8_t if_null_unit;
9+
10+
#endif /* _NBAPI_VOLTOS_IF_NULL_H_ */
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#ifndef _NBAPI_VOLTOS_IF_OPENCONNECT_H_
2+
#define _NBAPI_VOLTOS_IF_OPENCONNECT_H_
3+
4+
#include <stdint.h>
5+
6+
typedef uint16_t if_openconnect_unit;
7+
8+
#endif /* _NBAPI_VOLTOS_IF_OPENCONNECT_H_ */

include/nbapi/voltos/if_openvpn.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#ifndef _NBAPI_VOLTOS_IF_OPENVPN_H_
2+
#define _NBAPI_VOLTOS_IF_OPENVPN_H_
3+
4+
#include <stdint.h>
5+
6+
typedef uint32_t if_openvpn_unit;
7+
8+
#endif /* _NBAPI_VOLTOS_IF_OPENVPN_H_ */

include/nbapi/voltos/if_serial.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,12 @@ typedef enum if_serial_idle_char
4747
__IF_SERIAL_IDLE_CHAR_MAX__
4848
} if_serial_idle_char_t;
4949

50+
typedef uint8_t if_serial_stack;
51+
52+
typedef uint8_t if_serial_slot;
53+
54+
typedef uint16_t if_serial_port;
55+
56+
typedef struct if_serial_unit if_serial_unit;
57+
5058
#endif /* _NBAPI_VOLTOS_IF_SERIAL_H_ */

0 commit comments

Comments
 (0)