2 * linux/include/linux/l3/algo-bit.h
4 * Copyright (C) 2001 Russell King, All Rights Reserved.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License.
10 * L3 Bus bit-banging algorithm. Derived from i2c-algo-bit.h by
14 #define L3_ALGO_BIT_H 1
16 #include <linux/l3/l3.h>
18 struct l3_algo_bit_data
{
19 void (*setdat
) (void *data
, int state
);
20 void (*setclk
) (void *data
, int state
);
21 void (*setmode
)(void *data
, int state
);
22 void (*setdir
) (void *data
, int in
); /* set data direction */
23 int (*getdat
) (void *data
);
27 /* bus timings (us) */
36 int l3_bit_add_bus(struct l3_adapter
*);
37 int l3_bit_del_bus(struct l3_adapter
*);