Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * dst-bt878.h: part of the DST driver for the TwinHan DST Frontend |
| 3 | * |
| 4 | * Copyright (C) 2003 Jamie Honan |
| 5 | */ |
| 6 | |
| 7 | struct dst_gpio_enable { |
| 8 | u32 mask; |
| 9 | u32 enable; |
| 10 | }; |
| 11 | |
| 12 | struct dst_gpio_output { |
| 13 | u32 mask; |
| 14 | u32 highvals; |
| 15 | }; |
| 16 | |
| 17 | struct dst_gpio_read { |
| 18 | unsigned long value; |
| 19 | }; |
| 20 | |
| 21 | union dst_gpio_packet { |
| 22 | struct dst_gpio_enable enb; |
| 23 | struct dst_gpio_output outp; |
| 24 | struct dst_gpio_read rd; |
| 25 | int psize; |
| 26 | }; |
| 27 | |
| 28 | #define DST_IG_ENABLE 0 |
| 29 | #define DST_IG_WRITE 1 |
| 30 | #define DST_IG_READ 2 |
| 31 | #define DST_IG_TS 3 |
| 32 | |
| 33 | struct bt878; |
| 34 | |
| 35 | int bt878_device_control(struct bt878 *bt, unsigned int cmd, union dst_gpio_packet *mp); |