Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/extres/syscon/syscon_generic.h
Show All 24 Lines | |||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef DEV_SYSCON_GENERIC_H | #ifndef DEV_SYSCON_GENERIC_H | ||||
#define DEV_SYSCON_GENERIC_H | #define DEV_SYSCON_GENERIC_H | ||||
struct syscon_generic_softc { | struct syscon_generic_softc { | ||||
struct simplebus_softc sc_simplebus; | |||||
skibo: Adding this broke sys/arm/allwinner/aw_syscon.c. Add #include <dev/fdt/simplebus.h> to… | |||||
mmelUnsubmitted Done Inline Actionsyou should #include <dev/fdt/simplebus.h> on top of this header. (because simplebus functionality is fully transparent for most of users) mmel: you should #include <dev/fdt/simplebus.h> on top of this header. (because simplebus… | |||||
device_t dev; | device_t dev; | ||||
struct syscon *syscon; | struct syscon *syscon; | ||||
struct resource *mem_res; | struct resource *mem_res; | ||||
struct mtx mtx; | struct mtx mtx; | ||||
}; | }; | ||||
DECLARE_CLASS(syscon_generic_driver); | DECLARE_CLASS(syscon_generic_driver); | ||||
#endif /* DEV_SYSCON_GENERIC_H */ | #endif /* DEV_SYSCON_GENERIC_H */ |
Adding this broke sys/arm/allwinner/aw_syscon.c. Add #include <dev/fdt/simplebus.h> to aw_syscon.c?