Eric Biederman | 0ac6b41 | 2003-09-02 17:16:48 +0000 | [diff] [blame] | 1 | #ifndef DEVICE_HYPERTRANSPORT_H |
| 2 | #define DEVICE_HYPERTRANSPORT_H |
| 3 | |
Eric Biederman | 5cd8173 | 2004-03-11 15:01:31 +0000 | [diff] [blame] | 4 | #include <device/hypertransport_def.h> |
| 5 | |
Kyösti Mälkki | 0a3d4e4 | 2015-02-23 00:34:26 +0200 | [diff] [blame] | 6 | /* TODO: Check HT specs for better names for these. */ |
| 7 | #define LinkConnected (1 << 0) |
| 8 | #define InitComplete (1 << 1) |
| 9 | #define NonCoherent (1 << 2) |
| 10 | #define ConnectionPending (1 << 4) |
| 11 | bool ht_is_non_coherent_link(struct bus *link); |
| 12 | |
Kyösti Mälkki | ed7bc2c | 2015-02-22 08:27:13 +0200 | [diff] [blame^] | 13 | unsigned int hypertransport_scan_chain(struct bus *bus); |
Kyösti Mälkki | 580e722 | 2015-03-19 21:04:23 +0200 | [diff] [blame] | 14 | void ht_scan_bridge(struct device *dev); |
| 15 | |
Yinghai Lu | 13f1c2a | 2005-07-08 02:49:49 +0000 | [diff] [blame] | 16 | extern struct device_operations default_ht_ops_bus; |
Eric Biederman | 0ac6b41 | 2003-09-02 17:16:48 +0000 | [diff] [blame] | 17 | |
| 18 | #define HT_IO_HOST_ALIGN 4096 |
| 19 | #define HT_MEM_HOST_ALIGN (1024*1024) |
| 20 | |
| 21 | #endif /* DEVICE_HYPERTRANSPORT_H */ |