Skip to content

Commit

Permalink
vdp: usb gadget api...
Browse files Browse the repository at this point in the history
  • Loading branch information
Sheph committed Jan 2, 2017
1 parent c877b5c commit 96abdff
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions include/vdp/usb_gadget.h
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,13 @@ struct vdp_usb_gadget_ep
{
struct vdp_usb_gadget_ep_caps caps;
void* priv;

int stalled;
};

struct vdp_usb_gadget_ep* vdp_usb_gadget_ep_create(const struct vdp_usb_gadget_ep_caps* caps,
const struct vdp_usb_gadget_ep_ops* ops, void* priv);

int vdp_usb_gadget_ep_stalled(struct vdp_usb_gadget_ep* ep);

void vdp_usb_gadget_ep_destroy(struct vdp_usb_gadget_ep* ep);

/*
Expand Down Expand Up @@ -179,13 +179,13 @@ struct vdp_usb_gadget_interface
{
struct vdp_usb_gadget_interface_caps caps;
void* priv;

int active;
};

struct vdp_usb_gadget_interface* vdp_usb_gadget_interface_create(const struct vdp_usb_gadget_interface_caps* caps,
const struct vdp_usb_gadget_interface_ops* ops, void* priv);

int vdp_usb_gadget_interface_active(struct vdp_usb_gadget_interface* interface);

void vdp_usb_gadget_interface_destroy(struct vdp_usb_gadget_interface* interface);

/*
Expand Down Expand Up @@ -227,13 +227,13 @@ struct vdp_usb_gadget_config
{
struct vdp_usb_gadget_config_caps caps;
void* priv;

int active;
};

struct vdp_usb_gadget_config* vdp_usb_gadget_config_create(const struct vdp_usb_gadget_config_caps* caps,
const struct vdp_usb_gadget_config_ops* ops, void* priv);

int vdp_usb_gadget_config_active(struct vdp_usb_gadget_config* config);

void vdp_usb_gadget_config_destroy(struct vdp_usb_gadget_config* config);

/*
Expand All @@ -253,6 +253,8 @@ struct vdp_usb_gadget_ops

void (*power)(struct vdp_usb_gadget* /*gadget*/, int /*on*/);

void (*set_address)(struct vdp_usb_gadget* /*gadget*/, vdp_u32 /*address*/);

void (*destroy)(struct vdp_usb_gadget* /*gadget*/);
};

Expand All @@ -277,6 +279,8 @@ struct vdp_usb_gadget
{
struct vdp_usb_gadget_caps caps;
void* priv;

vdp_u32 address;
};

struct vdp_usb_gadget* vdp_usb_gadget_create(const struct vdp_usb_gadget_caps* caps,
Expand Down

0 comments on commit 96abdff

Please sign in to comment.