| 1 |
|
| 2 |
|
| 3 |
#ifndef THINKPAD_T400_DOCK_H |
| 4 |
#define THINKPAD_T400_DOCK_H |
| 5 |
|
| 6 |
#ifndef __ACPI__ |
| 7 |
int pc87382_early(void); |
| 8 |
|
| 9 |
void dock_connect(void); |
| 10 |
void dock_disconnect(void); |
| 11 |
int dock_present(void); |
| 12 |
void dock_info(void); |
| 13 |
#endif |
| 14 |
|
| 15 |
|
| 16 |
#define DLPC_CONTROL 0x164c |
| 17 |
#define DLPC_GPIO_BASE 0x1680 |
| 18 |
|
| 19 |
#define DLPC_GPDO0 (DLPC_GPIO_BASE + 0x0) |
| 20 |
#define DLPC_GPDI0 (DLPC_GPIO_BASE + 0x1) |
| 21 |
#define D_PLTRST 0x01 |
| 22 |
#define D_LPCPD 0x02 |
| 23 |
|
| 24 |
#define DLPC_GPDO2 (DLPC_GPIO_BASE + 0x8) |
| 25 |
#define DLPC_GPDI2 (DLPC_GPIO_BASE + 0x9) |
| 26 |
|
| 27 |
|
| 28 |
#define DOCK_TYPE_2504 1 |
| 29 |
#define DOCK_TYPE_2505 2 |
| 30 |
#define DOCK_TYPE_NONE 7 |
| 31 |
|
| 32 |
|
| 33 |
#define SUPERIO_DEV 0x2e |
| 34 |
#define DOCK_GPIO_BASE 0x1620 |
| 35 |
|
| 36 |
#endif |