Browse Source

创建了usb驱动程序文件

fslongjin 2 years ago
parent
commit
d53c7bd1c7

+ 8 - 0
kernel/driver/usb/Makefile

@@ -0,0 +1,8 @@
+
+all: usb.o xhci.o
+
+usb.o: usb,c
+	gcc $(CFLAGS) -c usb.c -o usb.o
+
+xhci.o: xhci.c
+	gcc $(CFLAGS) -c xhci/xhci.c -o xhci/xhci.o

+ 1 - 0
kernel/driver/usb/usb.c

@@ -0,0 +1 @@
+#include "usb.h"

+ 1 - 0
kernel/driver/usb/usb.h

@@ -0,0 +1 @@
+#pragma once

+ 1 - 0
kernel/driver/usb/xhci/xhci.c

@@ -0,0 +1 @@
+#include "xhci.h"

+ 1 - 0
kernel/driver/usb/xhci/xhci.h

@@ -0,0 +1 @@
+#pragma once