Yinghai Lu | 8d22a5d | 2006-10-04 21:00:01 +0000 | [diff] [blame] | 1 | #ifndef AMDK8_SYSCONF_H |
Roman Kononov | 0980049 | 2007-02-01 00:40:51 +0000 | [diff] [blame] | 2 | #define AMDK8_SYSCONF_H |
Yinghai Lu | 8d22a5d | 2006-10-04 21:00:01 +0000 | [diff] [blame] | 3 | |
| 4 | #define HC_POSSIBLE_NUM 8 |
| 5 | |
| 6 | struct 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 Lu | 5f9624d | 2006-10-04 22:56:21 +0000 | [diff] [blame] | 12 | unsigned hcid[HC_POSSIBLE_NUM]; //record ht chain type |
Yinghai Lu | 8d22a5d | 2006-10-04 21:00:01 +0000 | [diff] [blame] | 13 | 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 Roth | 0cb07e3 | 2013-07-09 21:46:01 -0600 | [diff] [blame] | 22 | void *mb; // pointer for mb related struct |
Stefan Reinauer | 14e2277 | 2010-04-27 06:56:47 +0000 | [diff] [blame] | 23 | |
Yinghai Lu | 8d22a5d | 2006-10-04 21:00:01 +0000 | [diff] [blame] | 24 | }; |
| 25 | |
| 26 | extern struct amdk8_sysconf_t sysconf; |
| 27 | |
Stefan Reinauer | e9de1e2 | 2010-04-07 15:30:11 +0000 | [diff] [blame] | 28 | void get_sblk_pci1234(void); |
| 29 | void get_bus_conf(void); |
Yinghai Lu | 8d22a5d | 2006-10-04 21:00:01 +0000 | [diff] [blame] | 30 | #endif |