blob: 7c3feb7e98a88df53b1432459aa0e82728baa947 [file] [log] [blame]
/*
* Greybus interfaces
*
* Copyright 2014 Google Inc.
*
* Released under the GPLv2 only.
*/
#ifndef __INTERFACE_H
#define __INTERFACE_H
#include <linux/list.h>
struct gb_interface {
struct gb_module *gmod;
u8 interface_id;
struct list_head functions;
struct list_head links; /* module->interfaces */
};
struct gb_interface *gb_interface_create(struct gb_module *gmod, u8 module_id);
void gb_interface_destroy(struct gb_interface *interface);
#endif /* __INTERFACE_H */