Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/bus_if.m
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | CODE { | ||||
static int null_reset_prepare(device_t bus, device_t dev) | static int null_reset_prepare(device_t bus, device_t dev) | ||||
{ | { | ||||
return (0); | return (0); | ||||
} | } | ||||
static ssize_t | static ssize_t | ||||
null_get_property(device_t dev, device_t child, const char *propname, | null_get_property(device_t dev, device_t child, const char *propname, | ||||
void *propvalue, size_t size) | void *propvalue, size_t size, device_property_type_t type) | ||||
{ | { | ||||
return (-1); | return (-1); | ||||
} | } | ||||
}; | }; | ||||
/** | /** | ||||
* @brief Print a description of a child device | * @brief Print a description of a child device | ||||
* | * | ||||
▲ Show 20 Lines • Show All 848 Lines • ▼ Show 20 Lines | |||||
* @returns size of property if successful otherwise -1 | * @returns size of property if successful otherwise -1 | ||||
*/ | */ | ||||
METHOD ssize_t get_property { | METHOD ssize_t get_property { | ||||
device_t _dev; | device_t _dev; | ||||
device_t _child; | device_t _child; | ||||
const char *_propname; | const char *_propname; | ||||
void *_propvalue; | void *_propvalue; | ||||
size_t _size; | size_t _size; | ||||
device_property_type_t type; | |||||
} DEFAULT null_get_property; | } DEFAULT null_get_property; |