Newer
Older
honey-os / src / userland / usb / xhci / commands.h
#ifndef COMMANDS_H
#define COMMANDS_H

#include <stdint.h>
#include <usb.h>

extern void addressDevice(SlotXHCI *slot, bool BSR);
extern void configureEndpoint(XHCIController *controller, void *inputContext,
                              uint32_t slotNumber, bool deconfigure);
extern void evaluateContext(XHCIController *controller, void *inputContext,
                            uint32_t slotNumber);

extern uint32_t requestSlotIndex(XHCIController *controller);

extern void *usbGetDeviceDescriptor(SlotXHCI *slot, uint32_t value,
                                    uint32_t index, void *buffer);

extern TrbRing *createSlotTRB(SlotXHCI *slot);

#endif