Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/bhnd/cores/chipc/pwrctl/bhnd_pwrctl_private.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_PWRCTL_BHND_PWRCTL_PRIVATE_H_ | ||||
#define _BHND_CORES_CHIPC_CHIPC_H_ | #define _BHND_PWRCTL_BHND_PWRCTL_PRIVATE_H_ | ||||
#include <dev/bhnd/bhnd.h> | #include "bhnd_pwrctlvar.h" | ||||
#include <dev/bhnd/nvram/bhnd_nvram.h> | |||||
#include "bhnd_chipc_if.h" | int bhnd_pwrctl_init(struct bhnd_pwrctl_softc *sc); | ||||
int bhnd_pwrctl_setclk(struct bhnd_pwrctl_softc *sc, | |||||
bhnd_clock clock); | |||||
uint32_t bhnd_pwrctl_getclk_speed(struct bhnd_pwrctl_softc *sc); | |||||
uint16_t bhnd_pwrctl_fast_pwrup_delay(struct bhnd_pwrctl_softc *sc); | |||||
#endif /* _BHND_CORES_CHIPC_CHIPC_H_ */ | #endif /* _BHND_PWRCTL_BHND_PWRCTL_PRIVATE_H_ */ |