forked from len0rd/rockbox
Fix some whitespace issues (including tabs that slipped in somehow) (FS#10144 by Tomer Shalev)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20731 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
a54e0b6dba
commit
463e20271b
2 changed files with 10 additions and 10 deletions
|
@ -107,7 +107,6 @@ struct usb_transfer_completion_event_data
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
void usb_init(void);
|
void usb_init(void);
|
||||||
void usb_enable(bool on);
|
void usb_enable(bool on);
|
||||||
void usb_attach(void);
|
void usb_attach(void);
|
||||||
|
@ -128,7 +127,8 @@ bool usb_charging_enabled(void);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_USBSTACK
|
#ifdef HAVE_USBSTACK
|
||||||
void usb_signal_transfer_completion(struct usb_transfer_completion_event_data* event_data);
|
void usb_signal_transfer_completion(
|
||||||
|
struct usb_transfer_completion_event_data *event_data);
|
||||||
bool usb_driver_enabled(int driver);
|
bool usb_driver_enabled(int driver);
|
||||||
bool usb_exclusive_storage(void); /* storage is available for usb */
|
bool usb_exclusive_storage(void); /* storage is available for usb */
|
||||||
void usb_storage_try_release_storage(void);
|
void usb_storage_try_release_storage(void);
|
||||||
|
|
|
@ -25,14 +25,14 @@
|
||||||
/* Common api, implemented by all class drivers */
|
/* Common api, implemented by all class drivers */
|
||||||
|
|
||||||
struct usb_class_driver {
|
struct usb_class_driver {
|
||||||
/* First some runtime data */
|
/* First some runtime data */
|
||||||
bool enabled;
|
bool enabled;
|
||||||
int first_interface;
|
int first_interface;
|
||||||
int last_interface;
|
int last_interface;
|
||||||
|
|
||||||
/* Driver api starts here */
|
/* Driver api starts here */
|
||||||
|
|
||||||
/* Set this to true if the driver needs exclusive disk access (e.g. usb storage) */
|
/* Set this to true if the driver needs exclusive disk access (e.g. usb storage) */
|
||||||
bool needs_exclusive_storage;
|
bool needs_exclusive_storage;
|
||||||
|
|
||||||
/* Let the driver request endpoints it need. Returns zero on success */
|
/* Let the driver request endpoints it need. Returns zero on success */
|
||||||
|
@ -52,7 +52,7 @@ struct usb_class_driver {
|
||||||
int (*get_config_descriptor)(unsigned char *dest, int max_packet_size);
|
int (*get_config_descriptor)(unsigned char *dest, int max_packet_size);
|
||||||
|
|
||||||
/* Tells the driver that a usb connection has been set up and is now
|
/* Tells the driver that a usb connection has been set up and is now
|
||||||
ready to use.
|
ready to use.
|
||||||
Optional function */
|
Optional function */
|
||||||
void (*init_connection)(void);
|
void (*init_connection)(void);
|
||||||
|
|
||||||
|
@ -62,24 +62,24 @@ struct usb_class_driver {
|
||||||
Optional function */
|
Optional function */
|
||||||
void (*init)(void);
|
void (*init)(void);
|
||||||
|
|
||||||
/* Tells the driver that the usb connection is no longer active
|
/* Tells the driver that the usb connection is no longer active
|
||||||
Optional function */
|
Optional function */
|
||||||
void (*disconnect)(void);
|
void (*disconnect)(void);
|
||||||
|
|
||||||
/* Tells the driver that a usb transfer has been completed. Note that "dir"
|
/* Tells the driver that a usb transfer has been completed. Note that "dir"
|
||||||
is relative to the host
|
is relative to the host
|
||||||
Optional function */
|
Optional function */
|
||||||
void (*transfer_complete)(int ep,int dir, int status, int length);
|
void (*transfer_complete)(int ep,int dir, int status, int length);
|
||||||
|
|
||||||
/* Tells the driver that a control request has come in. If the driver is
|
/* Tells the driver that a control request has come in. If the driver is
|
||||||
able to handle it, it should ack the request, and return true. Otherwise
|
able to handle it, it should ack the request, and return true. Otherwise
|
||||||
it should return false.
|
it should return false.
|
||||||
Optional function */
|
Optional function */
|
||||||
bool (*control_request)(struct usb_ctrlrequest* req);
|
bool (*control_request)(struct usb_ctrlrequest* req);
|
||||||
|
|
||||||
#ifdef HAVE_HOTSWAP
|
#ifdef HAVE_HOTSWAP
|
||||||
/* Tells the driver that a hotswappable disk/card was inserted or
|
/* Tells the driver that a hotswappable disk/card was inserted or
|
||||||
extracted
|
extracted
|
||||||
Optional function */
|
Optional function */
|
||||||
void (*notify_hotswap)(int volume, bool inserted);
|
void (*notify_hotswap)(int volume, bool inserted);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue