diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-03-07 09:52:04 -0600 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-03-07 09:52:04 -0600 |
commit | a9153ec3040f54fa52b68e14dafed2aba7b780ae (patch) | |
tree | fda80e3380dfebf7d97868507aa185757852e882 /rtems/freebsd/local/device_if.c | |
download | rtems-libbsd-a9153ec3040f54fa52b68e14dafed2aba7b780ae.tar.bz2 |
Initial import
Code is based on FreeBSD 8.2 with USB support from Sebastian Huber
and Thomas Doerfler. Initial TCP/IP stack work is from Kevel Kirspel.
Diffstat (limited to 'rtems/freebsd/local/device_if.c')
-rw-r--r-- | rtems/freebsd/local/device_if.c | 106 |
1 files changed, 106 insertions, 0 deletions
diff --git a/rtems/freebsd/local/device_if.c b/rtems/freebsd/local/device_if.c new file mode 100644 index 00000000..0b7ea6e8 --- /dev/null +++ b/rtems/freebsd/local/device_if.c @@ -0,0 +1,106 @@ +#include <rtems/freebsd/machine/rtems-bsd-config.h> + +/* + * This file is produced automatically. + * Do not modify anything in here by hand. + * + * Created from source file + * kern/device_if.m + * with + * makeobjops.awk + * + * See the source file for legal information + */ + +#include <rtems/freebsd/sys/param.h> +#include <rtems/freebsd/sys/queue.h> +#include <rtems/freebsd/sys/kernel.h> +#include <rtems/freebsd/sys/kobj.h> +#include <rtems/freebsd/sys/bus.h> +#include <rtems/freebsd/local/device_if.h> + + +static int null_shutdown(device_t dev) +{ + return 0; +} + +static int null_suspend(device_t dev) +{ + return 0; +} + +static int null_resume(device_t dev) +{ + return 0; +} + +static int null_quiesce(device_t dev) +{ + return EOPNOTSUPP; +} + +struct kobj_method device_probe_method_default = { + &device_probe_desc, (kobjop_t) kobj_error_method +}; + +struct kobjop_desc device_probe_desc = { + 0, &device_probe_method_default +}; + +struct kobj_method device_identify_method_default = { + &device_identify_desc, (kobjop_t) kobj_error_method +}; + +struct kobjop_desc device_identify_desc = { + 0, &device_identify_method_default +}; + +struct kobj_method device_attach_method_default = { + &device_attach_desc, (kobjop_t) kobj_error_method +}; + +struct kobjop_desc device_attach_desc = { + 0, &device_attach_method_default +}; + +struct kobj_method device_detach_method_default = { + &device_detach_desc, (kobjop_t) kobj_error_method +}; + +struct kobjop_desc device_detach_desc = { + 0, &device_detach_method_default +}; + +struct kobj_method device_shutdown_method_default = { + &device_shutdown_desc, (kobjop_t) null_shutdown +}; + +struct kobjop_desc device_shutdown_desc = { + 0, &device_shutdown_method_default +}; + +struct kobj_method device_suspend_method_default = { + &device_suspend_desc, (kobjop_t) null_suspend +}; + +struct kobjop_desc device_suspend_desc = { + 0, &device_suspend_method_default +}; + +struct kobj_method device_resume_method_default = { + &device_resume_desc, (kobjop_t) null_resume +}; + +struct kobjop_desc device_resume_desc = { + 0, &device_resume_method_default +}; + +struct kobj_method device_quiesce_method_default = { + &device_quiesce_desc, (kobjop_t) null_quiesce +}; + +struct kobjop_desc device_quiesce_desc = { + 0, &device_quiesce_method_default +}; + |