linux/include/linux/greybus/interface.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Greybus Interface Block code
 *
 * Copyright 2014 Google Inc.
 * Copyright 2014 Linaro Ltd.
 */

#ifndef __INTERFACE_H
#define __INTERFACE_H

#include <linux/types.h>
#include <linux/device.h>

enum gb_interface_type {};

#define GB_INTERFACE_QUIRK_NO_CPORT_FEATURES
#define GB_INTERFACE_QUIRK_NO_INIT_STATUS
#define GB_INTERFACE_QUIRK_NO_GMP_IDS
#define GB_INTERFACE_QUIRK_FORCED_DISABLE
#define GB_INTERFACE_QUIRK_LEGACY_MODE_SWITCH
#define GB_INTERFACE_QUIRK_NO_BUNDLE_ACTIVATE
#define GB_INTERFACE_QUIRK_NO_PM

struct gb_interface {};
#define to_gb_interface(d)

struct gb_interface *gb_interface_create(struct gb_module *module,
					 u8 interface_id);
int gb_interface_activate(struct gb_interface *intf);
void gb_interface_deactivate(struct gb_interface *intf);
int gb_interface_enable(struct gb_interface *intf);
void gb_interface_disable(struct gb_interface *intf);
int gb_interface_add(struct gb_interface *intf);
void gb_interface_del(struct gb_interface *intf);
void gb_interface_put(struct gb_interface *intf);
void gb_interface_mailbox_event(struct gb_interface *intf, u16 result,
								u32 mailbox);

int gb_interface_request_mode_switch(struct gb_interface *intf);

#endif /* __INTERFACE_H */