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 |
Lee Leahy | 0ca2a06 | 2017-03-06 18:01:04 -0800 | [diff] [blame^] | 8 | 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 Lu | 8d22a5d | 2006-10-04 21:00:01 +0000 | [diff] [blame] | 15 | |
Lee Leahy | 0ca2a06 | 2017-03-06 18:01:04 -0800 | [diff] [blame^] | 16 | unsigned int hcdn_reg[4]; // it will be used by get_sblk_pci1234 |
Yinghai Lu | 8d22a5d | 2006-10-04 21:00:01 +0000 | [diff] [blame] | 17 | |
| 18 | int enabled_apic_ext_id; |
Lee Leahy | 0ca2a06 | 2017-03-06 18:01:04 -0800 | [diff] [blame^] | 19 | unsigned int lift_bsp_apicid; |
Yinghai Lu | 8d22a5d | 2006-10-04 21:00:01 +0000 | [diff] [blame] | 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 |