30 #include <asm/types.h>
33 #include "../../lms2012/source/lms2012.h"
34 #include "../../lms2012/source/am1808.h"
37 #define MODULE_NAME "usbhost_module"
38 #define DEVICE1_NAME USBHOST_DEVICE
40 static int ModuleInit(
void);
41 static void ModuleExit(
void);
45 #include <linux/kernel.h>
48 #include <linux/sched.h>
52 #include <linux/hrtimer.h>
55 #include <linux/hrtimer.h>
57 #include <linux/init.h>
58 #include <linux/uaccess.h>
59 #include <linux/debugfs.h>
61 #include <linux/ioport.h>
64 #include <linux/module.h>
65 #include <linux/miscdevice.h>
66 #include <asm/uaccess.h>
84 static ssize_t Device1Write(
struct file *File,
const char *
Buffer,
size_t Count,loff_t *Data)
94 static ssize_t Device1Read(
struct file *File,
char *Buffer,
size_t Count,loff_t *Offset)
104 static const struct file_operations Device1Entries =
106 .owner = THIS_MODULE,
108 .write = Device1Write
112 static struct miscdevice Device1 =
120 static int Device1Init(
void)
124 Result = misc_register(&Device1);
140 static void Device1Exit(
void)
142 misc_deregister(&Device1);
152 static int ModuleInit(
void)
164 static void ModuleExit(
void)
MODULE_SUPPORTED_DEVICE(DEVICE1_NAME)
MODULE_AUTHOR("The LEGO Group")
MODULE_DESCRIPTION(MODULE_NAME)