blob: 87bd4d5dc56266f7e61728be4b0794bbba585135 [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
8 unsigned nodes;
9 unsigned hc_possible_num;
10 unsigned pci1234[HC_POSSIBLE_NUM];
11 unsigned hcdn[HC_POSSIBLE_NUM];
Yinghai Lu5f9624d2006-10-04 22:56:21 +000012 unsigned hcid[HC_POSSIBLE_NUM]; //record ht chain type
Yinghai Lu8d22a5d2006-10-04 21:00:01 +000013 unsigned sbdn;
14 unsigned sblk;
15
16 unsigned hcdn_reg[4]; // it will be used by get_sblk_pci1234
17
18 int enabled_apic_ext_id;
19 unsigned lift_bsp_apicid;
20 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