MACIO_DEV_COUNT_RESOURCES
struct resource resource[MACIO_DEV_COUNT_RESOURCES];
if (index >= MACIO_DEV_COUNT_RESOURCES)