Function report |
Source Code:arch\x86\kernel\apb_timer.c |
Create Date:2022-07-28 08:43:25 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:apbt_set_mapping
Proto:static inline void apbt_set_mapping(void)
Type:void
Parameter:Nothing
| 81 | phy_cs_timer_id = 0 |
| 83 | If apbt_virt_address Then |
| 84 | pr_debug("APBT base already mapped\n") |
| 85 | Return |
| 88 | If (mtmr == NULL) Then |
| 89 | printk(r conditions "Failed to get MTMR %d from SFI\n", APBT_CLOCKEVENT0_NUM) |
| 91 | Return |
| 94 | If Not apbt_address Then |
| 95 | printk(warning conditions "No timer base from SFI, use default\n") |
| 99 | If Not apbt_virt_address Then |
| 101 | pr_debug("Failed mapping APBT phy address at %lu\n", (unsignedlong)apbt_address) |
| 102 | Go to panic_noapbt |
| 105 | sfi_free_mtmr(mtmr) |
| 108 | mtmr = sfi_get_mtmr(APBT_CLOCKSOURCE_NUM) |
| 109 | If (mtmr == NULL) Then Go to panic_noapbt |
| 113 | pr_debug("Use timer %d for clocksource\n", (int)( phy base addr for the timer & 0xff) / APBTMRS_REG_SIZE) |
| 115 | phy_cs_timer_id = ( phy base addr for the timer & 0xff) / APBTMRS_REG_SIZE |
| 118 | clocksource_apbt = dw_apb_clocksource_init(APBT_CLOCKSOURCE_RATING, "apbt0", apbt_virt_address + phy_cs_timer_id * APBTMRS_REG_SIZE, Common DW APB timer info) |
| 121 | Return |
| 123 | panic_noapbt : |
| Name | Describe |
|---|---|
| apbt_time_init | Early setup the APBT timer, only use timer 0 for booting then switch to* per CPU timer if possible.* returns 1 if per cpu apbt is setup* returns 0 if no per cpu apbt is chosen* panic if set up failed, this is the only platform timer on Moorestown. |
| apbt_quick_calibrate | alled before apb_timer_enable, use early map |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |