Private Property data types. More...
Data Structures | |
struct | dyn_prop_t |
Dynamic property descriptor. More... | |
struct | device_desc_t |
An internal device descriptor. More... | |
Defines | |
#define | MAX_INDEX 128 |
Maximum possible array index. | |
#define | NAMELENGTH 64 |
Maximum possible property name lngth. | |
#define | INDEX_FROMTOKEN(t) ( t & PROP_MASK ) |
Get the property table index from token. | |
#define | OFFSET_FROMTOKEN(t) (( t & ACCESS_MASK ) >> 12) |
Get the array offset from token. | |
#define | DEVICE_TOKEN(x) ( x << 28 ) |
Create a device root node token. | |
Typedefs | |
typedef struct dyn_prop_t | DynPropertyDesc |
Dynamic property descriptor. | |
typedef struct device_desc_t | DeviceDesc |
An internal device descriptor. | |
Enumerations | |
enum | PNodeType { DC_HUB, DC_PORT, DC_DEVICE } |
Dynamic property node type. More... |
This file contains the token encodings. Since tokens are do not a priori have to be a static entity, the encoding can change over time. It is entirely up to the slave to define the token arrangements and internal decoding structure. Changing the token structure will NOT break netpp compatibility.
However, note that there are reserved tokens which can never be used in user space, see devlib_types.h
#define DEVICE_TOKEN | ( | x | ) | ( x << 28 ) |
'x' = device index
typedef struct device_desc_t DeviceDesc |
This is generated by the XML processor and contains all the necessary information for the device control. It is typically instanced in proplist.c.
typedef struct dyn_prop_t DynPropertyDesc |
Needed for parameters changing during the entire netpp session. Currently, we use only Hubs, Ports, and Devices. See ports.h.