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 | |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 13 | unsigned int hypertransport_scan_chain(struct bus *bus, |
Kyösti Mälkki | b39714e | 2015-03-12 16:16:59 +0200 | [diff] [blame] | 14 | unsigned min_devfn, unsigned max_devfn, unsigned *ht_unit_base, unsigned offset_unitid); |
Kyösti Mälkki | 580e722 | 2015-03-19 21:04:23 +0200 | [diff] [blame] | 15 | void ht_scan_bridge(struct device *dev); |
| 16 | |
Yinghai Lu | 13f1c2a | 2005-07-08 02:49:49 +0000 | [diff] [blame] | 17 | extern struct device_operations default_ht_ops_bus; |
Eric Biederman | 0ac6b41 | 2003-09-02 17:16:48 +0000 | [diff] [blame] | 18 | |
| 19 | #define HT_IO_HOST_ALIGN 4096 |
| 20 | #define HT_MEM_HOST_ALIGN (1024*1024) |
| 21 | |
| 22 | #endif /* DEVICE_HYPERTRANSPORT_H */ |