Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/arm/pmu.h
Show All 27 Lines | |||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _ARM_PMU_H_ | #ifndef _ARM_PMU_H_ | ||||
#define _ARM_PMU_H_ | #define _ARM_PMU_H_ | ||||
#define MAX_RLEN 8 | #define MAX_RLEN MAXCPU | ||||
struct pmu_intr { | struct pmu_intr { | ||||
struct resource *res; | struct resource *res; | ||||
void *ih; | void *ih; | ||||
int cpuid; | int cpuid; | ||||
}; | }; | ||||
struct pmu_softc { | struct pmu_softc { | ||||
device_t dev; | device_t dev; | ||||
struct pmu_intr irq[MAX_RLEN]; | struct pmu_intr irq[MAX_RLEN]; | ||||
}; | }; | ||||
int pmu_attach(device_t dev); | int pmu_attach(device_t dev); | ||||
#endif | #endif |