Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
adb.h File Reference
#include <uapi/linux/adb.h>

Go to the source code of this file.

Data Structures

struct  adb_request
 
struct  adb_ids
 
struct  adb_driver
 

Macros

#define ADBREQ_REPLY   1 /* expect reply */
 
#define ADBREQ_SYNC   2 /* poll until done */
 
#define ADBREQ_NOSEND   4 /* build the request, but don't send it */
 

Enumerations

enum  adb_message { ADB_MSG_POWERDOWN, ADB_MSG_PRE_RESET, ADB_MSG_POST_RESET }
 

Functions

int adb_request (struct adb_request *req, void(*done)(struct adb_request *), int flags, int nbytes,...)
 
int adb_register (int default_id, int handler_id, struct adb_ids *ids, void(*handler)(unsigned char *, int, int))
 
int adb_unregister (int index)
 
void adb_poll (void)
 
void adb_input (unsigned char *, int, int)
 
int adb_reset_bus (void)
 
int adb_try_handler_change (int address, int new_id)
 
int adb_get_infos (int address, int *original_address, int *handler_id)
 

Variables

struct blocking_notifier_head adb_client_list
 

Macro Definition Documentation

#define ADBREQ_NOSEND   4 /* build the request, but don't send it */

Definition at line 43 of file adb.h.

#define ADBREQ_REPLY   1 /* expect reply */

Definition at line 41 of file adb.h.

#define ADBREQ_SYNC   2 /* poll until done */

Definition at line 42 of file adb.h.

Enumeration Type Documentation

Enumerator:
ADB_MSG_POWERDOWN 
ADB_MSG_PRE_RESET 
ADB_MSG_POST_RESET 

Definition at line 47 of file adb.h.

Function Documentation

int adb_get_infos ( int  address,
int original_address,
int handler_id 
)

Definition at line 568 of file adb.c.

void adb_input ( unsigned char ,
int  ,
int   
)

Definition at line 502 of file adb.c.

void adb_poll ( void  )

Definition at line 389 of file adb.c.

int adb_register ( int  default_id,
int  handler_id,
struct adb_ids ids,
void(*)(unsigned char *, int, int handler 
)

Definition at line 453 of file adb.c.

int adb_request ( struct adb_request req,
void(*)(struct adb_request *)  done,
int  flags,
int  nbytes,
  ... 
)

Definition at line 404 of file adb.c.

int adb_reset_bus ( void  )

Definition at line 250 of file adb.c.

int adb_try_handler_change ( int  address,
int  new_id 
)

Definition at line 557 of file adb.c.

int adb_unregister ( int  index)

Definition at line 481 of file adb.c.

Variable Documentation

struct blocking_notifier_head adb_client_list