Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hwpmc/hwpmc_armv7.c
| Show First 20 Lines • Show All 410 Lines • ▼ Show 20 Lines | |||||
| armv7_get_config(int cpu, int ri, struct pmc **ppm) | armv7_get_config(int cpu, int ri, struct pmc **ppm) | ||||
| { | { | ||||
| *ppm = armv7_pcpu[cpu]->pc_armv7pmcs[ri].phw_pmc; | *ppm = armv7_pcpu[cpu]->pc_armv7pmcs[ri].phw_pmc; | ||||
| return 0; | return 0; | ||||
| } | } | ||||
| /* | |||||
| * XXX don't know what we should do here. | |||||
| */ | |||||
| static int | static int | ||||
| armv7_switch_in(struct pmc_cpu *pc, struct pmc_process *pp) | |||||
| { | |||||
| return 0; | |||||
| } | |||||
| static int | |||||
| armv7_switch_out(struct pmc_cpu *pc, struct pmc_process *pp) | |||||
| { | |||||
| return 0; | |||||
| } | |||||
| static int | |||||
| armv7_pcpu_init(struct pmc_mdep *md, int cpu) | armv7_pcpu_init(struct pmc_mdep *md, int cpu) | ||||
| { | { | ||||
| struct armv7_cpu *pac; | struct armv7_cpu *pac; | ||||
| struct pmc_hw *phw; | struct pmc_hw *phw; | ||||
| struct pmc_cpu *pc; | struct pmc_cpu *pc; | ||||
| uint32_t pmnc; | uint32_t pmnc; | ||||
| int first_ri; | int first_ri; | ||||
| int i; | int i; | ||||
| ▲ Show 20 Lines • Show All 101 Lines • ▼ Show 20 Lines | pmc_armv7_initialize(void) | ||||
| pcd->pcd_describe = armv7_describe; | pcd->pcd_describe = armv7_describe; | ||||
| pcd->pcd_get_config = armv7_get_config; | pcd->pcd_get_config = armv7_get_config; | ||||
| pcd->pcd_read_pmc = armv7_read_pmc; | pcd->pcd_read_pmc = armv7_read_pmc; | ||||
| pcd->pcd_release_pmc = armv7_release_pmc; | pcd->pcd_release_pmc = armv7_release_pmc; | ||||
| pcd->pcd_start_pmc = armv7_start_pmc; | pcd->pcd_start_pmc = armv7_start_pmc; | ||||
| pcd->pcd_stop_pmc = armv7_stop_pmc; | pcd->pcd_stop_pmc = armv7_stop_pmc; | ||||
| pcd->pcd_write_pmc = armv7_write_pmc; | pcd->pcd_write_pmc = armv7_write_pmc; | ||||
| pmc_mdep->pmd_intr = armv7_intr; | pmc_mdep->pmd_intr = armv7_intr; | ||||
| pmc_mdep->pmd_switch_in = armv7_switch_in; | |||||
| pmc_mdep->pmd_switch_out = armv7_switch_out; | |||||
| pmc_mdep->pmd_npmc += armv7_npmcs; | pmc_mdep->pmd_npmc += armv7_npmcs; | ||||
| return (pmc_mdep); | return (pmc_mdep); | ||||
| } | } | ||||
| void | void | ||||
| pmc_armv7_finalize(struct pmc_mdep *md) | pmc_armv7_finalize(struct pmc_mdep *md) | ||||
| { | { | ||||
| } | } | ||||