Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/bhnd/cores/pmu/bhnd_pmu.h
- This file was copied from sys/dev/bhnd/cores/chipc/chipc.h.
/*- | /*- | ||||
* Copyright (c) 2015-2016 Landon Fuller <landon@landonf.org> | * Copyright (c) 2016 Landon Fuller <landonf@FreeBSD.org> | ||||
* All rights reserved. | * All rights reserved. | ||||
* | * | ||||
* Redistribution and use in source and binary forms, with or without | * Redistribution and use in source and binary forms, with or without | ||||
* modification, are permitted provided that the following conditions | * modification, are permitted provided that the following conditions | ||||
* are met: | * are met: | ||||
* 1. Redistributions of source code must retain the above copyright | * 1. Redistributions of source code must retain the above copyright | ||||
* notice, this list of conditions and the following disclaimer, | * notice, this list of conditions and the following disclaimer, | ||||
* without modification. | * without modification. | ||||
Show All 13 Lines | |||||
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER | ||||
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF | ||||
* THE POSSIBILITY OF SUCH DAMAGES. | * THE POSSIBILITY OF SUCH DAMAGES. | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _BHND_CORES_CHIPC_CHIPC_H_ | #ifndef _BHND_CORES_PMU_BHND_PMU_H_ | ||||
#define _BHND_CORES_CHIPC_CHIPC_H_ | #define _BHND_CORES_PMU_BHND_PMU_H_ | ||||
#include <dev/bhnd/bhnd.h> | #include <sys/types.h> | ||||
#include <dev/bhnd/nvram/bhnd_nvram.h> | |||||
#include "bhnd_chipc_if.h" | #include "bhnd_pmu_if.h" | ||||
#endif /* _BHND_CORES_CHIPC_CHIPC_H_ */ | /** | ||||
* Per-core PMU register information. | |||||
*/ | |||||
struct bhnd_core_pmu_info { | |||||
device_t pm_dev; /**< core device */ | |||||
device_t pm_pmu; /**< PMU device */ | |||||
struct bhnd_resource *pm_res; /**< Resource containing PMU | |||||
register block for this | |||||
device (if any). */ | |||||
bus_size_t pm_regs; /**< Offset to PMU register | |||||
* block in @p pm_res */ | |||||
}; | |||||
#endif /* _BHND_CORES_PMU_BHND_PMU_H_ */ |