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

Method SetMaxSlotsEnabled

Kernel/include/xhci.h:158–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

156 uint32_t configure; // Configure
157
158 inline void SetMaxSlotsEnabled(uint8_t value){
159 uint32_t temp = configure;
160
161 temp &= ~((uint32_t)USB_CFG_MAXSLOTSEN);
162 temp |= temp & USB_CFG_MAXSLOTSEN;
163
164 configure = temp;
165 }
166
167 inline uint8_t MaxSlotsEnabled(){
168 return configure & USB_CFG_MAXSLOTSEN;

Callers 1

XHCIControllerMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected