1 #ifndef _CONFIG_MANAGER_DRIVER_H_ 2 #define _CONFIG_MANAGER_DRIVER_H_ 3 4 /* the magic is the ioctl */ 5 6 #define CM_GET_NEXT_DEVICE_INFO 'GNDI' 7 #define CM_GET_DEVICE_INFO_FOR 'GDIF' 8 #define CM_GET_SIZE_OF_CURRENT_CONFIGURATION_FOR 'GSCC' 9 #define CM_GET_CURRENT_CONFIGURATION_FOR 'GCCF' 10 #define CM_GET_SIZE_OF_POSSIBLE_CONFIGURATIONS_FOR 'GSPC' 11 #define CM_GET_POSSIBLE_CONFIGURATIONS_FOR 'GPCF' 12 13 #define CM_COUNT_RESOURCE_DESCRIPTORS_OF_TYPE 'CRDT' 14 #define CM_GET_NTH_RESOURCE_DESCRIPTOR_OF_TYPE 'GNRD' 15 16 struct cm_ioctl_data { 17 uint32 magic; 18 bus_type bus; 19 uint64 cookie; 20 void *config; 21 uint32 n; 22 uint32 type; 23 void *data; 24 uint32 data_len; 25 }; 26 27 #define CM_DEVICE_NAME "misc/config" 28 29 #endif 30