Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
adb.c File Reference
#include <linux/types.h>
#include <linux/errno.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/adb.h>
#include <linux/cuda.h>
#include <linux/pmu.h>
#include <linux/notifier.h>
#include <linux/wait.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/spinlock.h>
#include <linux/completion.h>
#include <linux/device.h>
#include <linux/kthread.h>
#include <linux/platform_device.h>
#include <linux/mutex.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Data Structures

struct  adb_handler
 
struct  adbdev_state
 

Macros

#define ADB_MAJOR   56 /* major number for /dev/adb */
 

Functions

 EXPORT_SYMBOL (adb_client_list)
 
 BLOCKING_NOTIFIER_HEAD (adb_client_list)
 
int adb_reset_bus (void)
 
 device_initcall (adb_init)
 
void adb_poll (void)
 
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_input (unsigned char *buf, int nb, int autopoll)
 
int adb_try_handler_change (int address, int new_id)
 
int adb_get_infos (int address, int *original_address, int *handler_id)
 

Variables

struct adb_driver via_macii_driver
 
struct adb_driver via_maciisi_driver
 
struct adb_driver via_cuda_driver
 
struct adb_driver adb_iop_driver
 
struct adb_driver via_pmu_driver
 
struct adb_driver macio_adb_driver
 
int __adb_probe_sync
 

Macro Definition Documentation

#define ADB_MAJOR   56 /* major number for /dev/adb */

Definition at line 583 of file adb.c.

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 buf,
int  nb,
int  autopoll 
)

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.

BLOCKING_NOTIFIER_HEAD ( adb_client_list  )
device_initcall ( adb_init  )
EXPORT_SYMBOL ( adb_client_list  )

Variable Documentation

int __adb_probe_sync

Definition at line 89 of file adb.c.

struct adb_driver adb_iop_driver

Definition at line 56 of file adb-iop.c.

struct adb_driver macio_adb_driver

Definition at line 71 of file macio-adb.c.

struct adb_driver via_cuda_driver
struct adb_driver via_macii_driver

Definition at line 92 of file via-macii.c.

struct adb_driver via_maciisi_driver

Definition at line 91 of file via-maciisi.c.

struct adb_driver via_pmu_driver

Definition at line 120 of file via-pmu68k.c.