GREYBUS_TYPE_STRING = 0x02,
GREYBUS_TYPE_BUNDLE = 0x03,
GREYBUS_TYPE_CPORT = 0x04,
- GREYBUS_TYPE_CLASS = 0x05,
};
enum greybus_protocol {
__u8 protocol_id; /* enum greybus_protocol */
} __packed;
-/*
- * A class descriptor defines functionality supplied by a module.
- * Beyond that, not much else is defined yet...
- */
-struct greybus_descriptor_class {
- __u8 class; /* enum greybus_class_type */
-} __packed;
-
struct greybus_descriptor_header {
__le16 size;
__u8 type; /* enum greybus_descriptor_type */
struct greybus_descriptor_interface interface;
struct greybus_descriptor_bundle bundle;
struct greybus_descriptor_cport cport;
- struct greybus_descriptor_class class;
};
} __packed;
return "cport";
case GREYBUS_TYPE_BUNDLE:
return "bundle";
- case GREYBUS_TYPE_CLASS:
- return "class";
default:
WARN_ON(1);
return "unknown";
case GREYBUS_TYPE_CPORT:
expected_size += sizeof(struct greybus_descriptor_cport);
break;
- case GREYBUS_TYPE_CLASS:
- pr_warn("class descriptor found (ignoring)\n");
- break;
case GREYBUS_TYPE_INVALID:
default:
pr_err("invalid descriptor type (%hhu)\n", desc_header->type);