MCPcopy Create free account
hub / github.com/LemonOSProject/LemonOS / Wait

Function Wait

Kernel/src/arch/x86_64/mouse.cpp:80–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 inline void Wait(uint8_t type)
81 {
82 int timeout = 100000;
83 if (type == 0) {
84 while (timeout--) //Data
85 if ((inportb(0x64) & 1) == 1)
86 return;
87 } else
88 while (timeout--) //Signal
89 if ((inportb(0x64) & 2) == 0)
90 return;
91 }
92
93 inline void Write(uint8_t data)
94 {

Callers 12

WriteFunction · 0.70
ReadFunction · 0.70
InstallFunction · 0.70
ControllerMethod · 0.50
PortMethod · 0.50
AccessMethod · 0.50
IdentifyMethod · 0.50
DetectDriveFunction · 0.50
InitFunction · 0.50
XHCIControllerMethod · 0.50
TakeOwnershipMethod · 0.50
InitializePortsMethod · 0.50

Calls 1

inportbFunction · 0.85

Tested by

no test coverage detected