dev2unit
#define DEV2UNIT(x) ((dev2unit(x) & 0xff00) >> 8)
#define DEV2SUB(x) (dev2unit(x) & 0xff)
#define DEV_FWMEM(x) (dev2unit(x) & FWMEM_FLAG)