NG_DEVICE
NG_DEVICE,
if (type == NG_DEVICE) {
#define device2ng(d) ((d)->type == NG_DEVICE ? (struct ngdevice *)d : NULL)
case NG_DEVICE: