blob: bc8ccd48a48c57a1f85bdd342eeadea627179abd [file] [log] [blame]
Eric Biederman0ac6b412003-09-02 17:16:48 +00001#ifndef DEVICE_HYPERTRANSPORT_H
2#define DEVICE_HYPERTRANSPORT_H
3
Eric Biederman5cd81732004-03-11 15:01:31 +00004#include <device/hypertransport_def.h>
5
Kyösti Mälkki0a3d4e42015-02-23 00:34:26 +02006/* 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)
11bool ht_is_non_coherent_link(struct bus *link);
12
Kyösti Mälkkied7bc2c2015-02-22 08:27:13 +020013unsigned int hypertransport_scan_chain(struct bus *bus);
Kyösti Mälkki580e7222015-03-19 21:04:23 +020014void ht_scan_bridge(struct device *dev);
15
Yinghai Lu13f1c2a2005-07-08 02:49:49 +000016extern struct device_operations default_ht_ops_bus;
Eric Biederman0ac6b412003-09-02 17:16:48 +000017
18#define HT_IO_HOST_ALIGN 4096
19#define HT_MEM_HOST_ALIGN (1024*1024)
20
21#endif /* DEVICE_HYPERTRANSPORT_H */