2c2
< * Copyright (c) 2016 Michael Zhilin <mizhka@gmail.com>
---
> * Copyright (c) 2016 Landon Fuller <landon@freebsd.org>
27a28,29
> *
> * $FreeBSD: head/sys/dev/bhnd/bhnd_nexusvar.h 301410 2016-06-04 19:53:47Z landonf $
30,34c32,33
< /*
< * $FreeBSD: head/sys/dev/bhnd/soc/bhnd_soc.h 300252 2016-05-20 01:02:58Z adrian $
< */
< #ifndef _BHND_SOC_BHND_SOC_H_
< #define _BHND_SOC_BHND_SOC_H_
---
> #ifndef _BHND_BHND_NEXUSVAR_H_
> #define _BHND_BHND_NEXUSVAR_H_
36,38c35,38
< #define BHND_SOC_MAXNUM_CORES 0x20
< #define BHND_SOC_RAM_OFFSET 0x0
< #define BHND_SOC_RAM_SIZE 0x20000000
---
> #include <sys/param.h>
> #include <sys/kernel.h>
> #include <sys/bus.h>
> #include <sys/module.h>
40,45c40
< struct bhnd_soc_softc {
< device_t dev;
< device_t bridge;
< device_t bus;
< struct bhnd_chipid chipid; /* chip identification */
< };
---
> #include "bhndvar.h"
47,49c42
< struct bhnd_soc_devinfo {
< struct resource_list resources;
< };
---
> DECLARE_CLASS(bhnd_nexus_driver);
51c44,46
< #endif /* _BHND_SOC_BHND_SOC_H_ */
---
> int bhnd_nexus_read_chipid(device_t dev, struct bhnd_chipid *chipid);
>
> #endif /* _BHND_BHND_NEXUSVAR_H_ */
< * Copyright (c) 2016 Michael Zhilin <mizhka@gmail.com>
---
> * Copyright (c) 2016 Landon Fuller <landon@freebsd.org>
27a28,29
> *
> * $FreeBSD: head/sys/dev/bhnd/bhnd_nexusvar.h 301410 2016-06-04 19:53:47Z landonf $
30,34c32,33
< /*
< * $FreeBSD: head/sys/dev/bhnd/soc/bhnd_soc.h 300252 2016-05-20 01:02:58Z adrian $
< */
< #ifndef _BHND_SOC_BHND_SOC_H_
< #define _BHND_SOC_BHND_SOC_H_
---
> #ifndef _BHND_BHND_NEXUSVAR_H_
> #define _BHND_BHND_NEXUSVAR_H_
36,38c35,38
< #define BHND_SOC_MAXNUM_CORES 0x20
< #define BHND_SOC_RAM_OFFSET 0x0
< #define BHND_SOC_RAM_SIZE 0x20000000
---
> #include <sys/param.h>
> #include <sys/kernel.h>
> #include <sys/bus.h>
> #include <sys/module.h>
40,45c40
< struct bhnd_soc_softc {
< device_t dev;
< device_t bridge;
< device_t bus;
< struct bhnd_chipid chipid; /* chip identification */
< };
---
> #include "bhndvar.h"
47,49c42
< struct bhnd_soc_devinfo {
< struct resource_list resources;
< };
---
> DECLARE_CLASS(bhnd_nexus_driver);
51c44,46
< #endif /* _BHND_SOC_BHND_SOC_H_ */
---
> int bhnd_nexus_read_chipid(device_t dev, struct bhnd_chipid *chipid);
>
> #endif /* _BHND_BHND_NEXUSVAR_H_ */