Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/bhnd/nvram/bhnd_spromvar.h
Show All 28 Lines | |||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#ifndef _BHND_NVRAM_BHND_SPROMVAR_H_ | #ifndef _BHND_NVRAM_BHND_SPROMVAR_H_ | ||||
#define _BHND_NVRAM_BHND_SPROMVAR_H_ | #define _BHND_NVRAM_BHND_SPROMVAR_H_ | ||||
#include <dev/bhnd/bhnd.h> | #include <dev/bhnd/bhnd.h> | ||||
#include "bhnd_sprom_parser.h" | #include "bhnd_nvram_store.h" | ||||
DECLARE_CLASS(bhnd_sprom_driver); | DECLARE_CLASS(bhnd_sprom_driver); | ||||
int bhnd_sprom_probe(device_t dev); | int bhnd_sprom_probe(device_t dev); | ||||
int bhnd_sprom_attach(device_t dev, bus_size_t offset); | int bhnd_sprom_attach(device_t dev, bus_size_t offset); | ||||
int bhnd_sprom_resume(device_t dev); | int bhnd_sprom_resume(device_t dev); | ||||
int bhnd_sprom_suspend(device_t dev); | int bhnd_sprom_suspend(device_t dev); | ||||
int bhnd_sprom_detach(device_t dev); | int bhnd_sprom_detach(device_t dev); | ||||
/** | /** | ||||
* bhnd_sprom driver instance state. Must be first member of all subclass | * bhnd_sprom driver instance state. Must be first member of all subclass | ||||
* softc structures. | * softc structures. | ||||
*/ | */ | ||||
struct bhnd_sprom_softc { | struct bhnd_sprom_softc { | ||||
device_t dev; | device_t dev; | ||||
struct bhnd_resource *sprom_res; /**< SPROM resource */ | struct bhnd_nvram_store *store; /**< nvram store */ | ||||
int sprom_rid; /**< SPROM RID */ | |||||
struct bhnd_sprom shadow; /**< SPROM shadow */ | |||||
struct mtx mtx; /**< SPROM shadow mutex */ | |||||
}; | }; | ||||
#endif /* _BHND_NVRAM_BHND_SPROMVAR_H_ */ | #endif /* _BHND_NVRAM_BHND_SPROMVAR_H_ */ |