summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-09-05 01:06:28 +0000
committerobrien <obrien@FreeBSD.org>2001-09-05 01:06:28 +0000
commit138bfe8027cddec05e361c97fe764f0a9603bc70 (patch)
treefc2c122b1d5921ad7e068be058b40de8966cc40a /sys
parentc1c22aa95811f14c864a920cab1a495208b41119 (diff)
downloadFreeBSD-src-138bfe8027cddec05e361c97fe764f0a9603bc70.zip
FreeBSD-src-138bfe8027cddec05e361c97fe764f0a9603bc70.tar.gz
Style(9)
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/bus_private.h94
1 files changed, 47 insertions, 47 deletions
diff --git a/sys/sys/bus_private.h b/sys/sys/bus_private.h
index dfdc025..2ba550b 100644
--- a/sys/sys/bus_private.h
+++ b/sys/sys/bus_private.h
@@ -27,7 +27,7 @@
*/
#ifndef _SYS_BUS_PRIVATE_H_
-#define _SYS_BUS_PRIVATE_H_
+#define _SYS_BUS_PRIVATE_H_
#include <sys/bus.h>
@@ -36,8 +36,8 @@
*/
typedef struct driverlink *driverlink_t;
struct driverlink {
- driver_t *driver;
- TAILQ_ENTRY(driverlink) link; /* list of drivers in devclass */
+ driver_t *driver;
+ TAILQ_ENTRY(driverlink) link; /* list of drivers in devclass */
};
/*
@@ -48,61 +48,61 @@ typedef TAILQ_HEAD(driver_list, driverlink) driver_list_t;
typedef TAILQ_HEAD(device_list, device) device_list_t;
struct devclass {
- TAILQ_ENTRY(devclass) link;
- driver_list_t drivers; /* bus devclasses store drivers for bus */
- char *name;
- device_t *devices; /* array of devices indexed by unit */
- int maxunit; /* size of devices array */
+ TAILQ_ENTRY(devclass) link;
+ driver_list_t drivers; /* bus devclasses store drivers for bus */
+ char *name;
+ device_t *devices; /* array of devices indexed by unit */
+ int maxunit; /* size of devices array */
};
/*
* Implementation of device.
*/
struct device {
- /*
- * A device is a kernel object. The first field must be the
- * current ops table for the object.
- */
- KOBJ_FIELDS;
+ /*
+ * A device is a kernel object. The first field must be the
+ * current ops table for the object.
+ */
+ KOBJ_FIELDS;
- /*
- * Device hierarchy.
- */
- TAILQ_ENTRY(device) link; /* list of devices in parent */
- TAILQ_ENTRY(device) devlink; /* global device list membership */
- device_t parent;
- device_list_t children; /* list of subordinate devices */
+ /*
+ * Device hierarchy.
+ */
+ TAILQ_ENTRY(device) link; /* list of devices in parent */
+ TAILQ_ENTRY(device) devlink; /* global device list membership */
+ device_t parent;
+ device_list_t children; /* list of subordinate devices */
- /*
- * Details of this device.
- */
- driver_t *driver;
- devclass_t devclass; /* device class which we are in */
- int unit;
- char* nameunit; /* name+unit e.g. foodev0 */
- char* desc; /* driver specific description */
- int busy; /* count of calls to device_busy() */
- device_state_t state;
- u_int32_t devflags; /* api level flags for device_get_flags() */
- u_short flags;
-#define DF_ENABLED 1 /* device should be probed/attached */
-#define DF_FIXEDCLASS 2 /* devclass specified at create time */
-#define DF_WILDCARD 4 /* unit was originally wildcard */
-#define DF_DESCMALLOCED 8 /* description was malloced */
-#define DF_QUIET 16 /* don't print verbose attach message */
-#define DF_DONENOMATCH 32 /* don't execute DEVICE_NOMATCH again */
-#define DF_EXTERNALSOFTC 64 /* softc not allocated by us */
- u_char order; /* order from device_add_child_ordered() */
- u_char pad;
- void *ivars;
- void *softc;
+ /*
+ * Details of this device.
+ */
+ driver_t *driver;
+ devclass_t devclass; /* device class which we are in */
+ int unit;
+ char* nameunit; /* name+unit e.g. foodev0 */
+ char* desc; /* driver specific description */
+ int busy; /* count of calls to device_busy() */
+ device_state_t state;
+ u_int32_t devflags; /* api level flags for device_get_flags() */
+ u_short flags;
+#define DF_ENABLED 1 /* device should be probed/attached */
+#define DF_FIXEDCLASS 2 /* devclass specified at create time */
+#define DF_WILDCARD 4 /* unit was originally wildcard */
+#define DF_DESCMALLOCED 8 /* description was malloced */
+#define DF_QUIET 16 /* don't print verbose attach message */
+#define DF_DONENOMATCH 32 /* don't execute DEVICE_NOMATCH again */
+#define DF_EXTERNALSOFTC 64 /* softc not allocated by us */
+ u_char order; /* order from device_add_child_ordered() */
+ u_char pad;
+ void *ivars;
+ void *softc;
};
struct device_op_desc {
- unsigned int offset; /* offset in driver ops */
- struct method* method; /* internal method implementation */
- devop_t deflt; /* default implementation */
- const char* name; /* unique name (for registration) */
+ unsigned int offset; /* offset in driver ops */
+ struct method* method; /* internal method implementation */
+ devop_t deflt; /* default implementation */
+ const char* name; /* unique name (for registration) */
};
#endif /* !_SYS_BUS_PRIVATE_H_ */
OpenPOWER on IntegriCloud