blob: 665f9f96b9748078408da6428919aa1747e90869 [file] [log] [blame]
Yinghai Lu8d22a5d2006-10-04 21:00:01 +00001#ifndef AMDK8_SYSCONF_H
Roman Kononov09800492007-02-01 00:40:51 +00002#define AMDK8_SYSCONF_H
Yinghai Lu8d22a5d2006-10-04 21:00:01 +00003
4#define HC_POSSIBLE_NUM 8
5
6struct amdk8_sysconf_t {
7 //ht
Lee Leahy0ca2a062017-03-06 18:01:04 -08008 unsigned int nodes;
9 unsigned int hc_possible_num;
10 unsigned int pci1234[HC_POSSIBLE_NUM];
11 unsigned int hcdn[HC_POSSIBLE_NUM];
12 unsigned int hcid[HC_POSSIBLE_NUM]; //record ht chain type
13 unsigned int sbdn;
14 unsigned int sblk;
Yinghai Lu8d22a5d2006-10-04 21:00:01 +000015
Lee Leahy0ca2a062017-03-06 18:01:04 -080016 unsigned int hcdn_reg[4]; // it will be used by get_sblk_pci1234
Yinghai Lu8d22a5d2006-10-04 21:00:01 +000017
18 int enabled_apic_ext_id;
Lee Leahy0ca2a062017-03-06 18:01:04 -080019 unsigned int lift_bsp_apicid;
Yinghai Lu8d22a5d2006-10-04 21:00:01 +000020 int apicid_offset;
21
Martin Roth0cb07e32013-07-09 21:46:01 -060022 void *mb; // pointer for mb related struct
Stefan Reinauer14e22772010-04-27 06:56:47 +000023
Yinghai Lu8d22a5d2006-10-04 21:00:01 +000024};
25
26extern struct amdk8_sysconf_t sysconf;
27
Stefan Reinauere9de1e22010-04-07 15:30:11 +000028void get_sblk_pci1234(void);
29void get_bus_conf(void);
Yinghai Lu8d22a5d2006-10-04 21:00:01 +000030#endif