@@ -60,20 +60,6 @@ uint64_t parseHex(const char *str) {
60
60
return num ;
61
61
}
62
62
63
- /* pciParseAddress(): parses a string in the format of bb.ss.ff
64
- * params: str - source string
65
- * params: bus - destination buffer for the bus
66
- * params: slot - destination buffer for the slot
67
- * params: function - destination buffer for the function
68
- * returns: nothing
69
- */
70
-
71
- static void pciParseAddress (const char * str , uint8_t * bus , uint8_t * slot , uint8_t * function ) {
72
- * bus = parseHex (str );
73
- * slot = parseHex (str + 3 );
74
- * function = parseHex (str + 6 );
75
- }
76
-
77
63
/* pciReadFile(): reads from a PCI configuration space file under /dev/pci/
78
64
* params: rcmd - read command message
79
65
* returns: nothing, response relayed to devfs
@@ -87,14 +73,14 @@ void pciReadFile(RWCommand *rcmd) {
87
73
if (!file ) {
88
74
rcmd -> header .header .status = - ENOENT ;
89
75
rcmd -> length = 0 ;
90
- luxSendDependency (rcmd );
76
+ luxSendKernel (rcmd );
91
77
return ;
92
78
}
93
79
94
80
if (rcmd -> position >= file -> size ) {
95
81
rcmd -> header .header .status = - EIO ;
96
82
rcmd -> length = 0 ;
97
- luxSendDependency (rcmd );
83
+ luxSendKernel (rcmd );
98
84
return ;
99
85
}
100
86
@@ -107,5 +93,5 @@ void pciReadFile(RWCommand *rcmd) {
107
93
rcmd -> header .header .status = truelen ;
108
94
rcmd -> header .header .length += truelen ;
109
95
rcmd -> position += truelen ;
110
- luxSendDependency (rcmd );
96
+ luxSendKernel (rcmd );
111
97
}
0 commit comments